diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-03-06 15:54:44 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-05-16 22:25:08 +0300 |
| commit | aad347c4f781bda18efb3f3cdbaa736e7e458e24 (patch) | |
| tree | 072f9170e2cc437aefddc428c7b11c930054ccc6 /src/libsyntax | |
| parent | 8310de856db8ba78ba3f4c58e3fe6d3d87f2cb4f (diff) | |
| download | rust-aad347c4f781bda18efb3f3cdbaa736e7e458e24.tar.gz rust-aad347c4f781bda18efb3f3cdbaa736e7e458e24.zip | |
Remove hir::Ident
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 0f3b9be3a7a..d9409d3bbd9 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -60,6 +60,10 @@ 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 { |
