simplify and avoid allocation
This commit is contained in:
parent
c29a98e40d
commit
28ce23fe8b
1 changed files with 2 additions and 2 deletions
|
|
@ -1418,8 +1418,8 @@ impl<'a> StringReader<'a> {
|
|||
// Include the leading `'` in the real identifier, for macro
|
||||
// expansion purposes. See #12512 for the gory details of why
|
||||
// this is necessary.
|
||||
let ident = self.with_str_from(start, |lifetime_name| {
|
||||
self.mk_ident(&format!("'{}", lifetime_name))
|
||||
let ident = self.with_str_from(start_with_quote, |lifetime_name| {
|
||||
self.mk_ident(lifetime_name)
|
||||
});
|
||||
|
||||
if c2.is_numeric() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue