1
Fork 0
rust/compiler/rustc_parse/src
bors 4e282795d7 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";
  |     ^^
```
2021-07-31 20:20:18 +00:00
..
lexer Auto merge of #87662 - FabianWolff:rb-string, r=estebank 2021-07-31 20:20:18 +00:00
parser Use multispan suggestions more often 2021-07-30 09:26:31 -07:00
lib.rs replaced feature-gate use with cfg_attr 2021-06-04 09:42:50 -07:00
validate_attr.rs ast: Remove some indirection layers from values in key-value attributes 2021-01-09 21:50:39 +03:00