Skip to content

Commit 9639c5c

Browse files
Revert "Reject raw lifetime followed by \' as well"
This reverts commit 1990f15.
1 parent 7db7489 commit 9639c5c

File tree

1 file changed

+1
-11
lines changed
  • compiler/rustc_lexer/src

1 file changed

+1
-11
lines changed

compiler/rustc_lexer/src/lib.rs

+1-11
Original file line numberDiff line numberDiff line change
@@ -707,17 +707,7 @@ impl Cursor<'_> {
707707
self.bump();
708708
self.bump();
709709
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-
}
710+
return RawLifetime;
721711
}
722712

723713
// Either a lifetime or a character literal with

0 commit comments

Comments
 (0)