Skip to content

Commit 759d1e6

Browse files
committed
Update error message & remove outdated test comment
1 parent c3840c9 commit 759d1e6

File tree

1 file changed

+1
-3
lines changed
  • compiler/rustc_parse/src/lexer

1 file changed

+1
-3
lines changed

compiler/rustc_parse/src/lexer/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -589,15 +589,13 @@ impl<'a> StringReader<'a> {
589589
}
590590
}
591591

592-
/// Note: It was decided to not add a test case, because it would be too big.
593-
/// <https://github.com/rust-lang/rust/pull/50296#issuecomment-392135180>
594592
fn report_too_many_hashes(&self, start: BytePos, found: usize) -> ! {
595593
self.fatal_span_(
596594
start,
597595
self.pos,
598596
&format!(
599597
"too many `#` symbols: raw strings may be delimited \
600-
by up to 65535 `#` symbols, but found {}",
598+
by up to 255 `#` symbols, but found {}",
601599
found
602600
),
603601
)

0 commit comments

Comments
 (0)