diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-05-05 18:40:33 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-05 18:40:33 +0530 |
| commit | 4891f02cff9a282df96b368b2f3f8151a78e9676 (patch) | |
| tree | c9716f2b0c42263e0d44273ad5acd5bd5a338701 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 3502e483213ad42468700b409ab4a4ecdd8ddf2c (diff) | |
| parent | d30c6681751b10a14265e09e5f74f39d2a32e641 (diff) | |
| download | rust-4891f02cff9a282df96b368b2f3f8151a78e9676.tar.gz rust-4891f02cff9a282df96b368b2f3f8151a78e9676.zip | |
Rollup merge of #108801 - fee1-dead-contrib:c-str, r=compiler-errors
Implement RFC 3348, `c"foo"` literals RFC: https://github.com/rust-lang/rfcs/pull/3348 Tracking issue: #105723
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index f58f8919e5c..61396ee0d4a 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -1870,6 +1870,7 @@ impl<'a> Parser<'a> { let recovered = self.recover_after_dot(); let token = recovered.as_ref().unwrap_or(&self.token); let span = token.span; + token::Lit::from_token(token).map(|token_lit| { self.bump(); (token_lit, span) |
