about summary refs log tree commit diff
path: root/src/librustc/ich
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-06-10 19:33:30 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2018-06-28 11:04:50 +0300
commitc6ca1e4abdb9476d8aa68457414ef80c5249caee (patch)
tree1961ad3278476514ec8249654e2fd5bbbb87a1ea /src/librustc/ich
parente8215a4f6f7b32d0f068e72ab9a9c9f85bab0cdb (diff)
downloadrust-c6ca1e4abdb9476d8aa68457414ef80c5249caee.tar.gz
rust-c6ca1e4abdb9476d8aa68457414ef80c5249caee.zip
Use `Ident`s in a number of structures in HIR
Namely: labels, type parameters, bindings in patterns, parameter names in functions without body.
All of these do not need hygiene after lowering to HIR, only span locations.
Diffstat (limited to 'src/librustc/ich')
-rw-r--r--src/librustc/ich/impls_hir.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librustc/ich/impls_hir.rs b/src/librustc/ich/impls_hir.rs
index feff4a5c271..94fda3e2874 100644
--- a/src/librustc/ich/impls_hir.rs
+++ b/src/librustc/ich/impls_hir.rs
@@ -155,8 +155,7 @@ impl_stable_hash_for!(enum hir::LifetimeName {
 });
 
 impl_stable_hash_for!(struct hir::Label {
-    span,
-    name
+    ident
 });
 
 impl_stable_hash_for!(struct hir::Lifetime {
@@ -201,7 +200,6 @@ impl_stable_hash_for!(enum hir::TraitBoundModifier {
 impl_stable_hash_for!(struct hir::GenericParam {
     id,
     name,
-    span,
     pure_wrt_drop,
     attrs,
     bounds,