Skip to content

Commit

Permalink
AST: use IndexSet for where_clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
pierwill committed Dec 15, 2021
1 parent cd602c6 commit b964a3a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions chalk-parse/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub struct ForeignDefn(pub Identifier);
pub struct AdtDefn {
pub name: Identifier,
pub variable_kinds: Vec<VariableKind>,
pub where_clauses: Vec<QuantifiedWhereClause>,
pub where_clauses: IndexSet<QuantifiedWhereClause>,
pub variants: Vec<Variant>,
pub flags: AdtFlags,
pub repr: AdtRepr,
Expand Down Expand Up @@ -110,7 +110,7 @@ pub struct FnSig {
pub struct FnDefn {
pub name: Identifier,
pub variable_kinds: Vec<VariableKind>,
pub where_clauses: Vec<QuantifiedWhereClause>,
pub where_clauses: IndexSet<QuantifiedWhereClause>,
pub argument_types: Vec<Ty>,
pub return_type: Ty,
pub sig: FnSig,
Expand Down Expand Up @@ -140,7 +140,7 @@ impl Default for FnAbi {
pub struct TraitDefn {
pub name: Identifier,
pub variable_kinds: Vec<VariableKind>,
pub where_clauses: Vec<QuantifiedWhereClause>,
pub where_clauses: IndexSet<QuantifiedWhereClause>,
pub assoc_ty_defns: Vec<AssocTyDefn>,
pub flags: TraitFlags,
pub well_known: Option<WellKnownTrait>,
Expand Down Expand Up @@ -178,7 +178,7 @@ pub struct AssocTyDefn {
pub name: Identifier,
pub variable_kinds: Vec<VariableKind>,
pub bounds: Vec<QuantifiedInlineBound>,
pub where_clauses: Vec<QuantifiedWhereClause>,
pub where_clauses: IndexSet<QuantifiedWhereClause>,
}

#[derive(Clone, PartialEq, Eq, Debug)]
Expand Down Expand Up @@ -266,7 +266,7 @@ pub struct Impl {
pub variable_kinds: Vec<VariableKind>,
pub trait_ref: TraitRef,
pub polarity: Polarity,
pub where_clauses: Vec<QuantifiedWhereClause>,
pub where_clauses: IndexSet<QuantifiedWhereClause>,
pub assoc_ty_values: Vec<AssocTyValue>,
pub impl_type: ImplType,
}
Expand Down

0 comments on commit b964a3a

Please sign in to comment.