-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Suggest mut self: &mut Self
for ?Sized
impls
#106410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
@bors r+ rollup |
📌 Commit b40533999d808946faf2f325e11eb833a1ac49a9 has been approved by It is now in the queue for this repository. |
Actually..... hm.... This is very likely not what the user wants, to the point that I think the suggestion may be misleading... Let me think about this a bit. @bors r- |
Might it be more helpful here to suggest adding a |
I would probably avoid doing any suggestion here, and explaining that |
b405339
to
6f97993
Compare
I'm not entirely sure here about the wording, or if @rustbot ready |
6f97993
to
23c3a30
Compare
@bors r+ rollup |
…-diag, r=compiler-errors Suggest `mut self: &mut Self` for `?Sized` impls Closes rust-lang#106325 Closes rust-lang#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
Rollup of 8 pull requests Successful merges: - rust-lang#103104 (Stabilize `main_separator_str`) - rust-lang#106410 (Suggest `mut self: &mut Self` for `?Sized` impls) - rust-lang#106457 (Adjust comments about pre-push.sh hook) - rust-lang#106546 (jsondoclint: Check local items in `paths` are also in `index`.) - rust-lang#106557 (Add some UI tests and reword error-code docs) - rust-lang#106562 (Clarify examples for `VecDeque::get/get_mut`) - rust-lang#106580 (remove unreachable error code `E0313`) - rust-lang#106581 (Do not emit wrong E0308 suggestion for closure mismatch) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
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