The idea here is to make a reusable library out of the existing rust-lexer, by separating out pure lexing and rustc-specific concerns, like spans, error reporting an interning. So, rustc_lexer operates directly on `&str`, produces simple tokens which are a pair of type-tag and a bit of original text, and does not report errors, instead storing them as flags on the token.
10 lines
232 B
Text
10 lines
232 B
Text
error: unterminated raw string
|
|
--> $DIR/raw-byte-string-eof.rs:2:5
|
|
|
|
|
LL | br##"a"#;
|
|
| ^ unterminated raw string
|
|
|
|
|
= note: this raw string should be terminated with `"##`
|
|
|
|
error: aborting due to previous error
|
|
|