Skip to content

Commit 2fd874d

Browse files
committed
Fix overflow when calculating expected_min in generics diagnostics
1 parent e91405b commit 2fd874d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_typeck/src/astconv/generics.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,6 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
613613
param_counts.consts + named_type_param_count
614614
- default_counts.types
615615
- default_counts.consts
616-
- synth_type_param_count
617616
};
618617
debug!("expected_min: {:?}", expected_min);
619618
debug!("arg_counts.lifetimes: {:?}", gen_args.num_lifetime_params());

0 commit comments

Comments
 (0)