about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorRussell Cohen <russell.r.cohen@gmail.com>2020-03-28 01:46:20 -0400
committerRussell Cohen <russell.r.cohen@gmail.com>2020-03-29 00:43:43 -0400
commit629e97a5a02edb3d8dc63c5157962c093217d441 (patch)
treeec748780e2098a0581b06d0501bc297447ca59ba /src/rustllvm/RustWrapper.cpp
parent840a5769b0879f39e21d973a60ac0b0db172f050 (diff)
downloadrust-629e97a5a02edb3d8dc63c5157962c093217d441.tar.gz
rust-629e97a5a02edb3d8dc63c5157962c093217d441.zip
Improve error messages for raw strings (#60762)
This diff improves error messages around raw strings in a few ways:
- Catch extra trailing `#` in the parser. This can't be handled in the lexer because we could be in a macro that actually expects another # (see test)
- Refactor & unify error handling in the lexer between ByteStrings and RawByteStrings
- Detect potentially intended terminators (longest sequence of "#*" is suggested)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions