rust/compiler/rustc_trait_selection
Yuki Okushi 46aef0e375
Rollup merge of #81990 - matsujika:suggest-mut-reference, r=estebank
Make suggestion of changing mutability of arguments broader

Fix #81421

Previously rustc tries to emit the suggestion of changing mutablity unless `!trait_ref.has_infer_types_or_consts() && self.predicate_can_apply(obligation.param_env, trait_ref)` and this led to some false negatives to occur.
2021-02-12 19:32:14 +09:00
..
src Rollup merge of #81990 - matsujika:suggest-mut-reference, r=estebank 2021-02-12 19:32:14 +09:00
Cargo.toml