Skip to content

Commit

Permalink
Update error message & remove outdated test comment
Browse files Browse the repository at this point in the history
  • Loading branch information
GrishaVar committed Mar 30, 2022
1 parent c3840c9 commit 759d1e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions compiler/rustc_parse/src/lexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
)
Expand Down

0 comments on commit 759d1e6

Please sign in to comment.