Skip to content

Commit 7ae97c1

Browse files
committed
Merge from rust-lang/rust
2 parents f3fad2a + 848af21 commit 7ae97c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/parser/src/lexed_str.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ impl<'a> Converter<'a> {
187187
}
188188

189189
rustc_lexer::TokenKind::RawIdent => IDENT,
190+
191+
rustc_lexer::TokenKind::GuardedStrPrefix => {
192+
err = "Invalid string literal (reserved syntax)";
193+
ERROR
194+
},
195+
190196
rustc_lexer::TokenKind::Literal { kind, .. } => {
191197
self.extend_literal(token_text.len(), kind);
192198
return;

0 commit comments

Comments
 (0)