diff options
| author | bors <bors@rust-lang.org> | 2018-06-28 09:16:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-06-28 09:16:10 +0000 |
| commit | d84ad59710728c936edd7396e287d42f1e319cf1 (patch) | |
| tree | 3d1d4884e8f468d106dc742d6fc855fcd7532ac6 /src/libsyntax/parse | |
| parent | ba196bdcb10736da5d14c961bd8962d80e300913 (diff) | |
| parent | d7072b5bb42eb005ab3adac2605f175d8719e1f1 (diff) | |
| download | rust-d84ad59710728c936edd7396e287d42f1e319cf1.tar.gz rust-d84ad59710728c936edd7396e287d42f1e319cf1.zip | |
Auto merge of #51492 - petrochenkov:hirident, r=eddyb
Use `Ident`s in HIR and remove emulation of hygiene with gensyms continuation of https://github.com/rust-lang/rust/pull/51072, part of https://github.com/rust-lang/rust/issues/49300 Not all `Name`s in HIR are replaced with `Ident`s, only those needed for hygiene or already having attached spans.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 21bd6c08324..faf2cf64e1d 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -7325,7 +7325,7 @@ impl<'a> Parser<'a> { match self.token { token::Ident(ident, false) if ident.name == keywords::Underscore.name() => { self.bump(); // `_` - Ok(Some(Ident::new(ident.name.gensymed(), ident.span))) + Ok(Some(ident.gensym())) } _ => self.parse_ident().map(Some), } |
