Skip to content

Commit c07f824

Browse files
committed
Auto merge of #131466 - matthiaskrgr:rollup-3qtz83x, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #123951 (Reserve guarded string literals (RFC 3593)) - #130827 (Library: Rename "object safe" to "dyn compatible") - #131383 (Add docs about slicing slices at the ends) - #131403 (Fix needless_lifetimes in rustc_serialize) - #131417 (Fix methods alignment on mobile) - #131449 (Decouple WASIp2 sockets from WasiFd) - #131462 (Mention allocation errors for `open_buffered`) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 6e4b1ef + e169449 commit c07f824

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)