@@ -228,7 +228,7 @@ fn deref_kind(t: Ty, context: DerefKindContext) -> McResult<deref_kind> {
228
228
Ok ( deref_interior ( InteriorField ( PositionalField ( 0 ) ) ) )
229
229
}
230
230
231
- ty:: TyArray ( _ , _ ) | ty:: TySlice ( _) => {
231
+ ty:: TyArray ( .. ) | ty:: TySlice ( _) => {
232
232
// no deref of indexed content without supplying InteriorOffsetKind
233
233
if let Some ( context) = context {
234
234
Ok ( deref_interior ( InteriorElement ( context, ElementKind :: VecElement ) ) )
@@ -318,7 +318,7 @@ impl MutabilityCategory {
318
318
fn from_local ( tcx : TyCtxt , id : ast:: NodeId ) -> MutabilityCategory {
319
319
let ret = match tcx. map . get ( id) {
320
320
ast_map:: NodeLocal ( p) => match p. node {
321
- PatKind :: Binding ( bind_mode, _ , _ ) => {
321
+ PatKind :: Binding ( bind_mode, .. ) => {
322
322
if bind_mode == hir:: BindByValue ( hir:: MutMutable ) {
323
323
McDeclared
324
324
} else {
@@ -419,7 +419,7 @@ impl<'a, 'gcx, 'tcx> MemCategorizationContext<'a, 'gcx, 'tcx> {
419
419
// *being borrowed* is. But ideally we would put in a more
420
420
// fundamental fix to this conflated use of the node id.
421
421
let ret_ty = match pat. node {
422
- PatKind :: Binding ( hir:: BindByRef ( _) , _ , _ ) => {
422
+ PatKind :: Binding ( hir:: BindByRef ( _) , .. ) => {
423
423
// a bind-by-ref means that the base_ty will be the type of the ident itself,
424
424
// but what we want here is the type of the underlying value being borrowed.
425
425
// So peel off one-level, turning the &T into T.
@@ -761,7 +761,7 @@ impl<'a, 'gcx, 'tcx> MemCategorizationContext<'a, 'gcx, 'tcx> {
761
761
} ;
762
762
763
763
match fn_expr. node {
764
- hir:: ExprClosure ( _ , _ , ref body, _) => body. id ,
764
+ hir:: ExprClosure ( .. , ref body, _) => body. id ,
765
765
_ => bug ! ( )
766
766
}
767
767
} ;
@@ -1185,7 +1185,7 @@ impl<'a, 'gcx, 'tcx> MemCategorizationContext<'a, 'gcx, 'tcx> {
1185
1185
}
1186
1186
}
1187
1187
1188
- PatKind :: Binding ( _ , _ , Some ( ref subpat) ) => {
1188
+ PatKind :: Binding ( .. , Some ( ref subpat) ) => {
1189
1189
self . cat_pattern_ ( cmt, & subpat, op) ?;
1190
1190
}
1191
1191
@@ -1225,7 +1225,7 @@ impl<'a, 'gcx, 'tcx> MemCategorizationContext<'a, 'gcx, 'tcx> {
1225
1225
}
1226
1226
}
1227
1227
1228
- PatKind :: Path ( ..) | PatKind :: Binding ( _ , _ , None ) |
1228
+ PatKind :: Path ( ..) | PatKind :: Binding ( .. , None ) |
1229
1229
PatKind :: Lit ( ..) | PatKind :: Range ( ..) | PatKind :: Wild => {
1230
1230
// always ok
1231
1231
}
@@ -1275,9 +1275,9 @@ impl<'tcx> cmt_<'tcx> {
1275
1275
Categorization :: Rvalue ( ..) |
1276
1276
Categorization :: StaticItem |
1277
1277
Categorization :: Local ( ..) |
1278
- Categorization :: Deref ( _ , _ , UnsafePtr ( ..) ) |
1279
- Categorization :: Deref ( _ , _ , BorrowedPtr ( ..) ) |
1280
- Categorization :: Deref ( _ , _ , Implicit ( ..) ) |
1278
+ Categorization :: Deref ( .. , UnsafePtr ( ..) ) |
1279
+ Categorization :: Deref ( .. , BorrowedPtr ( ..) ) |
1280
+ Categorization :: Deref ( .. , Implicit ( ..) ) |
1281
1281
Categorization :: Upvar ( ..) => {
1282
1282
Rc :: new ( ( * self ) . clone ( ) )
1283
1283
}
@@ -1320,7 +1320,7 @@ impl<'tcx> cmt_<'tcx> {
1320
1320
Categorization :: Rvalue ( ..) |
1321
1321
Categorization :: Local ( ..) |
1322
1322
Categorization :: Upvar ( ..) |
1323
- Categorization :: Deref ( _ , _ , UnsafePtr ( ..) ) => { // yes, it's aliasable, but...
1323
+ Categorization :: Deref ( .. , UnsafePtr ( ..) ) => { // yes, it's aliasable, but...
1324
1324
NonAliasable
1325
1325
}
1326
1326
@@ -1349,9 +1349,9 @@ impl<'tcx> cmt_<'tcx> {
1349
1349
match self . note {
1350
1350
NoteClosureEnv ( ..) | NoteUpvarRef ( ..) => {
1351
1351
Some ( match self . cat {
1352
- Categorization :: Deref ( ref inner, _ , _ ) => {
1352
+ Categorization :: Deref ( ref inner, .. ) => {
1353
1353
match inner. cat {
1354
- Categorization :: Deref ( ref inner, _ , _ ) => inner. clone ( ) ,
1354
+ Categorization :: Deref ( ref inner, .. ) => inner. clone ( ) ,
1355
1355
Categorization :: Upvar ( ..) => inner. clone ( ) ,
1356
1356
_ => bug ! ( )
1357
1357
}
@@ -1379,7 +1379,7 @@ impl<'tcx> cmt_<'tcx> {
1379
1379
"local variable" . to_string ( )
1380
1380
}
1381
1381
}
1382
- Categorization :: Deref ( _ , _ , pk) => {
1382
+ Categorization :: Deref ( .. , pk) => {
1383
1383
let upvar = self . upvar ( ) ;
1384
1384
match upvar. as_ref ( ) . map ( |i| & i. cat ) {
1385
1385
Some ( & Categorization :: Upvar ( ref var) ) => {
0 commit comments