@@ -218,7 +218,7 @@ impl<'a> Range<'a> {
218
218
hir:: ExprKind :: Call ( path, args)
219
219
if matches ! (
220
220
path. kind,
221
- hir:: ExprKind :: Path ( hir:: QPath :: LangItem ( hir:: LangItem :: RangeInclusiveNew , _ ) )
221
+ hir:: ExprKind :: Path ( hir:: QPath :: LangItem ( hir:: LangItem :: RangeInclusiveNew , .. ) )
222
222
) =>
223
223
{
224
224
Some ( Range {
@@ -228,27 +228,27 @@ impl<'a> Range<'a> {
228
228
} )
229
229
} ,
230
230
hir:: ExprKind :: Struct ( path, fields, None ) => match & path {
231
- hir:: QPath :: LangItem ( hir:: LangItem :: RangeFull , _ ) => Some ( Range {
231
+ hir:: QPath :: LangItem ( hir:: LangItem :: RangeFull , .. ) => Some ( Range {
232
232
start : None ,
233
233
end : None ,
234
234
limits : ast:: RangeLimits :: HalfOpen ,
235
235
} ) ,
236
- hir:: QPath :: LangItem ( hir:: LangItem :: RangeFrom , _ ) => Some ( Range {
236
+ hir:: QPath :: LangItem ( hir:: LangItem :: RangeFrom , .. ) => Some ( Range {
237
237
start : Some ( get_field ( "start" , fields) ?) ,
238
238
end : None ,
239
239
limits : ast:: RangeLimits :: HalfOpen ,
240
240
} ) ,
241
- hir:: QPath :: LangItem ( hir:: LangItem :: Range , _ ) => Some ( Range {
241
+ hir:: QPath :: LangItem ( hir:: LangItem :: Range , .. ) => Some ( Range {
242
242
start : Some ( get_field ( "start" , fields) ?) ,
243
243
end : Some ( get_field ( "end" , fields) ?) ,
244
244
limits : ast:: RangeLimits :: HalfOpen ,
245
245
} ) ,
246
- hir:: QPath :: LangItem ( hir:: LangItem :: RangeToInclusive , _ ) => Some ( Range {
246
+ hir:: QPath :: LangItem ( hir:: LangItem :: RangeToInclusive , .. ) => Some ( Range {
247
247
start : None ,
248
248
end : Some ( get_field ( "end" , fields) ?) ,
249
249
limits : ast:: RangeLimits :: Closed ,
250
250
} ) ,
251
- hir:: QPath :: LangItem ( hir:: LangItem :: RangeTo , _ ) => Some ( Range {
251
+ hir:: QPath :: LangItem ( hir:: LangItem :: RangeTo , .. ) => Some ( Range {
252
252
start : None ,
253
253
end : Some ( get_field ( "end" , fields) ?) ,
254
254
limits : ast:: RangeLimits :: HalfOpen ,
0 commit comments