Fix overflow when calculating expected_min in generics diagnostics

This commit is contained in:
Giacomo Stevanato 2021-08-03 13:18:06 +02:00
parent e91405b9d5
commit 2fd874d0d5

View File

@ -613,7 +613,6 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
param_counts.consts + named_type_param_count
- default_counts.types
- default_counts.consts
- synth_type_param_count
};
debug!("expected_min: {:?}", expected_min);
debug!("arg_counts.lifetimes: {:?}", gen_args.num_lifetime_params());