We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4953666 commit 18373faCopy full SHA for 18373fa
compiler/rustc_middle/src/ty/context.rs
@@ -2577,17 +2577,17 @@ impl<'tcx> TyCtxt<'tcx> {
2577
#[inline(always)]
2578
fn check_substs(
2579
self,
2580
- def_id: DefId,
+ _def_id: DefId,
2581
substs: impl IntoIterator<Item = impl Into<GenericArg<'tcx>>>,
2582
) -> SubstsRef<'tcx> {
2583
let substs = substs.into_iter().map(Into::into);
2584
#[cfg(debug_assertions)]
2585
{
2586
- let n = self.generics_of(def_id).count();
+ let n = self.generics_of(_def_id).count();
2587
assert_eq!(
2588
(n, Some(n)),
2589
substs.size_hint(),
2590
- "wrong number of generic parameters for {def_id:?}: {:?}",
+ "wrong number of generic parameters for {_def_id:?}: {:?}",
2591
substs.collect::<Vec<_>>(),
2592
);
2593
}
0 commit comments