about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-31 20:20:18 +0000
committerbors <bors@rust-lang.org>2021-07-31 20:20:18 +0000
commit4e282795d7d1d28a4c6c1c6521045ae2b59f3519 (patch)
tree625f5df40df90d05555981d53fc0f6345700f56e /compiler/rustc_mir/src/transform/coverage/debug.rs
parent29f8de06d18cf197fbd229accdce82da62ba22e9 (diff)
parentf2c9654dcd53184eb5b585f117e856b87f9404c1 (diff)
downloadrust-4e282795d7d1d28a4c6c1c6521045ae2b59f3519.tar.gz
rust-4e282795d7d1d28a4c6c1c6521045ae2b59f3519.zip
Auto merge of #87662 - FabianWolff:rb-string, r=estebank
Suggest `br` if the unknown string prefix `rb` is found

Currently, for the following code:
```rust
fn main() {
    rb"abc";
}
```
we issue the following suggestion:
```
help: consider inserting whitespace here
  |
2 |     rb "abc";
  |       --
```
With my changes (only in edition 2021, where unknown prefixes became an error), I get:
```
help: use `br` for a raw byte string
  |
2 |     br"abc";
  |     ^^
```
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions