We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4af7fa7 commit b87e935Copy full SHA for b87e935
compiler/rustc_lexer/src/lib.rs
@@ -707,17 +707,7 @@ impl Cursor<'_> {
707
self.bump();
708
709
self.eat_while(is_id_continue);
710
- match self.first() {
711
- '\'' => {
712
- // Check if after skipping literal contents we've met a closing
713
- // single quote (which means that user attempted to create a
714
- // string with single quotes).
715
- self.bump();
716
- let kind = Char { terminated: true };
717
- return Literal { kind, suffix_start: self.pos_within_token() };
718
- }
719
- _ => return RawLifetime,
720
+ return RawLifetime;
721
}
722
723
// Either a lifetime or a character literal with
0 commit comments