diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-06-15 22:59:20 +0100 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-06-16 01:39:43 +0100 |
| commit | d84993b054faf9ac73239f73f5edad949f7d5341 (patch) | |
| tree | 7f7890a25e2341c78826907cee6d32d47b211820 /src/libsyntax | |
| parent | bb4a79b087158f396b984bdf552d2c90890b12a3 (diff) | |
| parent | f59afbc2143894932529a29057de25a4425ed65e (diff) | |
| download | rust-d84993b054faf9ac73239f73f5edad949f7d5341.tar.gz rust-d84993b054faf9ac73239f73f5edad949f7d5341.zip | |
Rollup merge of #34207 - petrochenkov:nohyg, r=jseyfried
Remove last traces of identifier hygiene from HIR https://github.com/rust-lang/rust/pull/34095/commits/e783a0a5e39d5ae2fa147508197d09a51530fae8 removed the [last](https://github.com/rust-lang/rust/pull/33654#discussion_r63415218) [use](https://github.com/rust-lang/rust/pull/33654#discussion_r63416284) of hygiene at post-resolve compilation stages, so we can avoid renaming during lowering to HIR and just keep original names. r? @nrc
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 40c98206c16..8537fcc221c 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -60,10 +60,6 @@ impl Name { pub fn as_str(self) -> token::InternedString { token::InternedString::new_from_name(self) } - - pub fn unhygienize(self) -> Name { - token::intern(&self.as_str()) - } } impl fmt::Debug for Name { |
