about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2019-03-13 00:08:36 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2019-03-13 00:08:36 +0100
commitbc3a84a7f33d8652cbf53c0877731265e3ecc1bc (patch)
tree2b2d2ab3ce7970cdbc6643e9335b7f9fc8d5ff10
parent3936aff2169a1f61633de2bc475face3a2682efb (diff)
downloadrust-bc3a84a7f33d8652cbf53c0877731265e3ecc1bc.tar.gz
rust-bc3a84a7f33d8652cbf53c0877731265e3ecc1bc.zip
Add missing project attributes
-rw-r--r--src/librustc/hir/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc/hir/mod.rs b/src/librustc/hir/mod.rs
index 14e39748eb0..88ab58d10fc 100644
--- a/src/librustc/hir/mod.rs
+++ b/src/librustc/hir/mod.rs
@@ -2039,6 +2039,7 @@ pub struct EnumDef {
 
 #[derive(Clone, RustcEncodable, RustcDecodable, Debug, HashStable)]
 pub struct VariantKind {
+    #[stable_hasher(project(name))]
     pub ident: Ident,
     pub attrs: HirVec<Attribute>,
     pub data: VariantData,
@@ -2383,6 +2384,7 @@ pub enum AssociatedItemKind {
 
 #[derive(Clone, RustcEncodable, RustcDecodable, Debug, HashStable)]
 pub struct ForeignItem {
+    #[stable_hasher(project(name))]
     pub ident: Ident,
     pub attrs: HirVec<Attribute>,
     pub node: ForeignItemKind,