a future release!",
)
.note(
- "for more information, see issue #42326 \
- <https://github.com/rust-lang/rust/issues/42326>",
+ "see issue #42326 \
+ <https://github.com/rust-lang/rust/issues/42326> \
+ for more information",
)
.emit();
None
match kind {
rustc_lexer::LiteralKind::Char { terminated } => {
if !terminated {
- self.fatal_span_(start, suffix_start, "unterminated character literal".into())
- .raise()
+ self.fatal_span_(start, suffix_start, "unterminated character literal").raise()
}
let content_start = start + BytePos(1);
let content_end = suffix_start - BytePos(1);
}
rustc_lexer::LiteralKind::Byte { terminated } => {
if !terminated {
- self.fatal_span_(
- start + BytePos(1),
- suffix_start,
- "unterminated byte constant".into(),
- )
- .raise()
+ self.fatal_span_(start + BytePos(1), suffix_start, "unterminated byte constant")
+ .raise()
}
let content_start = start + BytePos(2);
let content_end = suffix_start - BytePos(1);
}
rustc_lexer::LiteralKind::Str { terminated } => {
if !terminated {
- self.fatal_span_(start, suffix_start, "unterminated double quote string".into())
+ self.fatal_span_(start, suffix_start, "unterminated double quote string")
.raise()
}
let content_start = start + BytePos(1);
self.fatal_span_(
start + BytePos(1),
suffix_start,
- "unterminated double quote byte string".into(),
+ "unterminated double quote byte string",
)
.raise()
}