about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2023-07-04 19:40:48 +0200
committerLeón Orell Valerian Liehr <me@fmease.dev>2023-07-05 13:11:17 +0200
commitc6643b50ea7290daf0a9f0e33d1f27c6f52796ce (patch)
tree46090e779d455c2c5458fadb6a1ab4832ef79761 /compiler
parent4dbc7e3092fce6f3d5712733e5206226183dbe1e (diff)
downloadrust-c6643b50ea7290daf0a9f0e33d1f27c6f52796ce.tar.gz
rust-c6643b50ea7290daf0a9f0e33d1f27c6f52796ce.zip
Revert the lexing of c_str_literals
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_lexer/src/lib.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_lexer/src/lib.rs b/compiler/rustc_lexer/src/lib.rs
index d511d2b1280..29335a8c0f4 100644
--- a/compiler/rustc_lexer/src/lib.rs
+++ b/compiler/rustc_lexer/src/lib.rs
@@ -367,13 +367,6 @@ impl Cursor<'_> {
                 Some(|terminated| Byte { terminated }),
             ),
 
-            // c-string literal, raw c-string literal or identifier.
-            'c' => self.c_or_byte_string(
-                |terminated| CStr { terminated },
-                |n_hashes| RawCStr { n_hashes },
-                None,
-            ),
-
             // Identifier (this should be checked after other variant that can
             // start as identifier).
             c if is_id_start(c) => self.ident_or_unknown_prefix(),