Skip to content

Commit

Permalink
Add missing project attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Mar 12, 2019
1 parent 3936aff commit bc3a84a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc/hir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit bc3a84a

Please sign in to comment.