-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Added better error message for shared borrow treated as unique for purposes of lifetimes #77692
Conversation
I only see changes to stderr, not to the compiler itself. You need to find where Anyway, I'm not the right reviewer for this. r? @estebank |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to run ./x.py test src/test/ui --bless --stage 1
to update the stderr
files. This will take a while the first time.
Hmm, 'you have already borrowed' is not really the norm for error messages, normally they're third person. Other than that it looks good though :) |
@jyn514 is this good? |
Yup, that looks great! |
…rposes of lifetimes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
@camelid can you merge it? |
No, I think we'll have to wait for @estebank or someone else to merge it (estebank tends to be very busy). |
@GuillaumeGomez can you please take a look at it |
I don't think Guillaume is the right person to review this. r? @davidtwco (feel free to re-assign) |
It's indeed been a long time since I last worked on error messages so I'll let someone else r+ it (even though I approved it). |
@bors r+ |
📌 Commit 50d9b30 has been approved by |
…idtwco Added better error message for shared borrow treated as unique for purposes of lifetimes Part of Issue rust-lang#76630 r? `@jyn514`
☀️ Test successful - checks-actions |
Part of Issue #76630
r? @jyn514