File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2577,17 +2577,17 @@ impl<'tcx> TyCtxt<'tcx> {
2577
2577
#[ inline( always) ]
2578
2578
fn check_substs (
2579
2579
self ,
2580
- def_id : DefId ,
2580
+ _def_id : DefId ,
2581
2581
substs : impl IntoIterator < Item = impl Into < GenericArg < ' tcx > > > ,
2582
2582
) -> SubstsRef < ' tcx > {
2583
2583
let substs = substs. into_iter ( ) . map ( Into :: into) ;
2584
2584
#[ cfg( debug_assertions) ]
2585
2585
{
2586
- let n = self . generics_of ( def_id ) . count ( ) ;
2586
+ let n = self . generics_of ( _def_id ) . count ( ) ;
2587
2587
assert_eq ! (
2588
2588
( n, Some ( n) ) ,
2589
2589
substs. size_hint( ) ,
2590
- "wrong number of generic parameters for {def_id :?}: {:?}" ,
2590
+ "wrong number of generic parameters for {_def_id :?}: {:?}" ,
2591
2591
substs. collect:: <Vec <_>>( ) ,
2592
2592
) ;
2593
2593
}
You can’t perform that action at this time.
0 commit comments