-
Notifications
You must be signed in to change notification settings - Fork 13k
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
nll: strange suggestion to "consider removing the *
#54985
Comments
rust/src/librustc_mir/borrow_check/move_errors.rs Lines 353 to 406 in b8b4150
|
How bad might it be to just remove this suggestion entirely (vs attempting to fine tune when we emit it)? Can we easily weigh the good it brings vs the harm it causes? |
I'd prefer to just remove it entirely. I think it adds pretty little value. |
I could imagine using an extended error code to offer more detailed hints |
or else a reference to something online? |
marking as NLL-deferred as this should not block RC2 (or even the Release, IMO). |
NLL triage. Tagging as P-medium priority. |
Diagnostics triage: marking as E-easy since it's just removing the suggestion |
As per issue rust-lang#54985 removes the not useful suggestion to remove asterisk in move errors. Includes minor changes to tests in the `ui` suite to account for the removed suggestion.
…risk-suggestion, r=matthewjasper Remove asterisk suggestion for move errors in borrowck As per the decision in rust-lang#54985 completely removes the suggestion to add an asterisk when checking move errors. I believe I've preserved the correct behavior with the "consider borrowing here" branch of the original match arm, but I'm not positive on that. This is my first PR to rustc so any feedback is greatly appreciated. Thanks.
…risk-suggestion, r=matthewjasper Remove asterisk suggestion for move errors in borrowck As per the decision in rust-lang#54985 completely removes the suggestion to add an asterisk when checking move errors. I believe I've preserved the correct behavior with the "consider borrowing here" branch of the original match arm, but I'm not positive on that. This is my first PR to rustc so any feedback is greatly appreciated. Thanks.
Shouldn't this be closed because #61332 is now merged? |
Spawned off of #54825 (comment)
For this code:
rust/src/test/ui/borrowck/borrowck-move-from-unsafe-ptr.rs
Lines 12 to 15 in fe8ace8
which produces this diagnostic output:
rust/src/test/ui/borrowck/borrowck-move-from-unsafe-ptr.nll.stderr
Lines 4 to 8 in fe8ace8
@nikomatsakis made this comment about the HELP on line 8:
The text was updated successfully, but these errors were encountered: