rust/compiler/rustc_borrowck/src/diagnostics
Yuki Okushi fe075319e6
Rollup merge of #106410 - clubby789:borrow-mut-self-mut-self-diag, r=compiler-errors
Suggest `mut self: &mut Self` for `?Sized` impls

Closes #106325
Closes #93078

The suggestion is _probably_ not what the user wants (hence `MaybeIncorrect`) but at least makes the problem in the above issues clearer. It might be better to add a note explaining why this is the case, but I'm not sure how best to word that so this is a start.

``@rustbot`` label +A-diagnostics
2023-01-08 17:01:46 +09:00
..
bound_region_errors.rs rustc_borrowck: remove ref patterns 2022-12-06 14:45:58 +00:00
conflict_errors.rs Detect closures assigned to binding in block 2023-01-05 21:29:36 +00:00
explain_borrow.rs Detect closures assigned to binding in block 2023-01-05 21:29:36 +00:00
find_all_local_uses.rs rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
find_use.rs lint auto pass 2022-11-09 20:42:16 +08:00
mod.rs review comments 2022-12-26 13:35:35 -08:00
move_errors.rs Account for dereference expressions 2022-12-13 10:06:15 -08:00
mutability_errors.rs Rollup merge of #106410 - clubby789:borrow-mut-self-mut-self-diag, r=compiler-errors 2023-01-08 17:01:46 +09:00
outlives_suggestion.rs Revert "Make ClosureOutlivesRequirement not rely on an unresolved type" 2022-10-27 16:15:11 +00:00
region_errors.rs Suggests adding named lifetime when the return contains value borrowed from more than one lifetimes of the function's inputs 2023-01-05 21:09:27 -08:00
region_name.rs Detect closures assigned to binding in block 2023-01-05 21:29:36 +00:00
var_name.rs lint auto pass 2022-11-09 20:42:16 +08:00