diff options
| author | Ryan Cumming <etaoins@gmail.com> | 2018-02-01 08:15:38 +1100 |
|---|---|---|
| committer | Ryan Cumming <etaoins@gmail.com> | 2018-02-01 08:19:22 +1100 |
| commit | b9441f2428f501de15dcb00af8da255a70302a0d (patch) | |
| tree | 3747f40ef4362574c666c9bbcd37dc3708ae0107 /src/rustllvm/RustWrapper.cpp | |
| parent | 560a2f4faf4828ba5f48fe2bd7709265c2f5354d (diff) | |
| download | rust-b9441f2428f501de15dcb00af8da255a70302a0d.tar.gz rust-b9441f2428f501de15dcb00af8da255a70302a0d.zip | |
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
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
