Skip to content

Fix help message for modification to &T created by &{t} #87458

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

Merged
merged 2 commits into from
Jul 27, 2021

Conversation

ibraheemdev
Copy link
Member

Previous:

error[E0594]: cannot assign to `*x` which is behind a `&` reference
 --> src/main.rs:3:5
  |
2 |     let x: &usize = &mut{0};
  |                     ------- help: consider changing this to be a mutable reference: `&mut mut{0}`
3 |     *x = 1;
  |     ^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written

@rust-highfive
Copy link
Contributor

r? @oli-obk

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 25, 2021
@rust-log-analyzer

This comment has been minimized.

@oli-obk
Copy link
Contributor

oli-obk commented Jul 26, 2021

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jul 26, 2021

📌 Commit b4a873f has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 26, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 26, 2021
…laumeGomez

Rollup of 8 pull requests

Successful merges:

 - rust-lang#87436 (Suggest `;` on parse error where applicable)
 - rust-lang#87444 (Flatten nested `format!` calls)
 - rust-lang#87447 (Miri: santiy check that null pointer can never have an AllocId)
 - rust-lang#87457 (freebsd remove compiler workaround.)
 - rust-lang#87458 (Fix help message for modification to &T created by &{t})
 - rust-lang#87464 (Remove unnecessary `structhead` parameter from `render_union`)
 - rust-lang#87473 (Notify the Rust 2021 edition working group in zulip of edition bugs)
 - rust-lang#87474 (Add missing whitespace after attribute in HTML template)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit f9d00b4 into rust-lang:master Jul 27, 2021
@rustbot rustbot added this to the 1.56.0 milestone Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants