about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-07-26 16:04:36 +0200
committerGitHub <noreply@github.com>2021-07-26 16:04:36 +0200
commitf9d00b4a7850ca3a5c710fec1debaf421b339718 (patch)
tree716223cf7a83ab26be551acba36a5307861bb480 /compiler/rustc_mir/src/transform/coverage/debug.rs
parente3c6cd23cfa69f9f985d52e4d59771ebfc795e84 (diff)
parentb4a873f54899c31525d3f1e1717b1d1a54191c21 (diff)
downloadrust-f9d00b4a7850ca3a5c710fec1debaf421b339718.tar.gz
rust-f9d00b4a7850ca3a5c710fec1debaf421b339718.zip
Rollup merge of #87458 - ibraheemdev:help-msg-block-borrow, r=oli-obk
Fix help message for modification to &T created by &{t}

Previous:
```rust
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
```
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions