Skip to content

Commit e3b5dd0

Browse files
committed
Remove traversable impl for usize
1 parent e4e5491 commit e3b5dd0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

compiler/rustc_mir_transform/src/function_item_references.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl<'tcx> FunctionItemRefChecker<'_, 'tcx> {
171171
let ty_params = fn_args.types().map(|ty| format!("{ty}"));
172172
let const_params = fn_args.consts().map(|c| format!("{c}"));
173173
let params = ty_params.chain(const_params).join(", ");
174-
let num_args = fn_sig.inputs().map_bound(|inputs| inputs.len()).skip_binder();
174+
let num_args = fn_sig.inputs().skip_binder().len();
175175
let variadic = if fn_sig.c_variadic() { ", ..." } else { "" };
176176
let ret = if fn_sig.output().skip_binder().is_unit() { "" } else { " -> _" };
177177
let sugg = format!(

compiler/rustc_type_ir/src/macros.rs

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ macro_rules! TrivialTypeTraversalImpls {
4242

4343
TrivialTypeTraversalImpls! {
4444
(),
45-
usize,
4645
crate::AliasRelationDirection,
4746
crate::UniverseIndex,
4847
}

0 commit comments

Comments
 (0)