Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ pub struct Impl {
pub attributes: Vec<Attribute>,
}

#[derive(Debug, RustcDecodable, RustcEncodable, Clone, PartialEq, Eq)]
#[derive(Debug, RustcDecodable, RustcEncodable, Clone, PartialEq, Eq, Hash)]
pub enum ImplKind {
// impl Foo { ... }
Inherent,
Expand Down Expand Up @@ -254,6 +254,7 @@ pub struct Relation {
pub kind: RelationKind,
pub from: Id,
pub to: Id,
pub id: u32,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it should be in RelationKind::Impl rather than Relation, since SuperTrait won't have such an id

}

#[derive(Debug, RustcDecodable, RustcEncodable, Clone, Copy, PartialEq, Eq)]
Expand Down