about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-04-01 14:32:14 +0200
committerGitHub <noreply@github.com>2020-04-01 14:32:14 +0200
commitc739465b1b760911d0e27df18a3b0460afbd4419 (patch)
treec00d88de344604e53211cc9b7b699c880d5c1187 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent84a463388040a1bc86578c0e3df2bf65e91127d3 (diff)
parent55a5eea763ed330bd9c3da4fbe9cf7d448afbe83 (diff)
downloadrust-c739465b1b760911d0e27df18a3b0460afbd4419.tar.gz
rust-c739465b1b760911d0e27df18a3b0460afbd4419.zip
Rollup merge of #70522 - rcoh:60762-raw-string-errors, r=petrochenkov
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)

Fixes #60762
cc @estebank who reviewed the original (abandoned) PR for the same ticket.
r? @Centril
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions