diff options
| author | Grisha Vartanyan <grisha@vartanyan.com> | 2022-03-30 18:20:30 +0200 |
|---|---|---|
| committer | Grisha Vartanyan <grisha@vartanyan.com> | 2022-03-30 18:20:30 +0200 |
| commit | 759d1e6af8610cdfdbf091a5d3d825b05c1fc6a2 (patch) | |
| tree | b2a1a2c98f7c86779d07a1bf83db45992c23c39b /compiler/rustc_parse/src | |
| parent | c3840c9ea142c80107067869143192498beec3d2 (diff) | |
| download | rust-759d1e6af8610cdfdbf091a5d3d825b05c1fc6a2.tar.gz rust-759d1e6af8610cdfdbf091a5d3d825b05c1fc6a2.zip | |
Update error message & remove outdated test comment
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/lexer/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_parse/src/lexer/mod.rs b/compiler/rustc_parse/src/lexer/mod.rs index 601a39e69ab..d688d37c1cf 100644 --- a/compiler/rustc_parse/src/lexer/mod.rs +++ b/compiler/rustc_parse/src/lexer/mod.rs @@ -589,15 +589,13 @@ impl<'a> StringReader<'a> { } } - /// Note: It was decided to not add a test case, because it would be too big. - /// <https://github.com/rust-lang/rust/pull/50296#issuecomment-392135180> fn report_too_many_hashes(&self, start: BytePos, found: usize) -> ! { self.fatal_span_( start, self.pos, &format!( "too many `#` symbols: raw strings may be delimited \ - by up to 65535 `#` symbols, but found {}", + by up to 255 `#` symbols, but found {}", found ), ) |
