-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Error explanation e0524 #64428
Error explanation e0524 #64428
Conversation
Some changes occurred in diagnostic error codes |
(rust_highfive has picked a reviewer for you, use r? to override) |
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.
Please also run --bless --compare-mode=nll
.
src/librustc_mir/error_codes.rs
Outdated
} | ||
|
||
fn dragoooon(x: &mut isize) { | ||
{ |
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.
Block not necessary with NLL.
r? @Centril |
r=me with comments addressed. |
Ping from triage. |
fe76311
to
62ccef4
Compare
Updated.
I did, no changes. |
src/librustc_mir/error_codes.rs
Outdated
|
||
To solve this issue, multiple solutions are available. First, is it required | ||
for this variable to be used in more than one closure at a time? If it is the | ||
case, use reference countered types such as `Rc` (or `Arc` if it runs |
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.
case, use reference countered types such as `Rc` (or `Arc` if it runs | |
case, use reference counted types such as `Rc` (or `Arc` if it runs |
Oops, looks I just exchanged one typo for another. It's right now at least.
@GuillaumeGomez great; left another comment; the unnecessary block should also be removed and then r=me. |
@Centril I think the block makes the example simpler to understand (that's why I kept it, forgot to comment about it). |
62ccef4
to
11d88c0
Compare
Updated. |
@GuillaumeGomez I see; can you add a comment noting that it isn't really necessary? |
Sure! |
11d88c0
to
d2b873b
Compare
Done! |
@bors r+ |
📌 Commit d2b873b has been approved by |
…524, r=Centril Error explanation e0524 Part of rust-lang#61137
…524, r=Centril Error explanation e0524 Part of rust-lang#61137
⌛ Testing commit d2b873b with merge efcf6044362591d7b89d89a7fa05bec6aa100569... |
@bors retry rolled up. |
⌛ Testing commit d2b873b with merge 89471215346eeacf38185f7dc6d9e9df81e2276a... |
@bors retry prioritizing stabilization PR. |
…524, r=Centril Error explanation e0524 Part of rust-lang#61137
Rollup of 7 pull requests Successful merges: - #64324 (rustc: Fix mixing crates with different `share_generics`) - #64428 (Error explanation e0524) - #64481 (A more explanatory thread local storage panic message) - #64599 (Rustdoc render async function re-export) - #64743 (Update cargo) - #64746 (Remove blanket silencing of "type annotation needed" errors) - #64753 (Don't emit explain with json short messages.) Failed merges: r? @ghost
Part of #61137