We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c29a98e commit 28ce23fCopy full SHA for 28ce23f
src/libsyntax/parse/lexer/mod.rs
@@ -1418,8 +1418,8 @@ impl<'a> StringReader<'a> {
1418
// Include the leading `'` in the real identifier, for macro
1419
// expansion purposes. See #12512 for the gory details of why
1420
// this is necessary.
1421
- let ident = self.with_str_from(start, |lifetime_name| {
1422
- self.mk_ident(&format!("'{}", lifetime_name))
+ let ident = self.with_str_from(start_with_quote, |lifetime_name| {
+ self.mk_ident(lifetime_name)
1423
});
1424
1425
if c2.is_numeric() {
0 commit comments