mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 19:58:32 +00:00
Fix overflow when calculating expected_min in generics diagnostics
This commit is contained in:
parent
e91405b9d5
commit
2fd874d0d5
@ -613,7 +613,6 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
|||||||
param_counts.consts + named_type_param_count
|
param_counts.consts + named_type_param_count
|
||||||
- default_counts.types
|
- default_counts.types
|
||||||
- default_counts.consts
|
- default_counts.consts
|
||||||
- synth_type_param_count
|
|
||||||
};
|
};
|
||||||
debug!("expected_min: {:?}", expected_min);
|
debug!("expected_min: {:?}", expected_min);
|
||||||
debug!("arg_counts.lifetimes: {:?}", gen_args.num_lifetime_params());
|
debug!("arg_counts.lifetimes: {:?}", gen_args.num_lifetime_params());
|
||||||
|
Loading…
Reference in New Issue
Block a user