This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2024-12-13 00:56:14 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
83789b8b06
rust
/
tests
/
ui
/
lexer
/
lex-stray-backslash.rs
4 lines
53 B
Rust
Raw
Normal View
History
Unescape
Escape
Improve char escaping in lexer messages Currently ', " and \ are escaped as \', \" and \\ respectively. This leads to confusing messages such as `error: unknown start of token: \\` when encountering a single backslash. Fix by emitting printable ASCII characters directly. This will still escape \r, \n, \t and Unicode characters. Fixes #47902
2018-01-31 21:15:38 +00:00
\
//~ ERROR: unknown start of token: \
remove special code path for unknown tokens
2019-07-30 09:33:32 +00:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink