Skip to content

Commit

Permalink
Another set use
Browse files Browse the repository at this point in the history
  • Loading branch information
pierwill committed Dec 15, 2021
1 parent 72c573e commit 28c30d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions chalk-integration/src/lowering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ impl LowerWithEnv for QuantifiedInlineBound {
}

impl LowerWithEnv for [QuantifiedInlineBound] {
type Lowered = IndexSet<rust_ir::QuantifiedInlineBound<ChalkIr>>;
type Lowered = IndexSet<Binders<InlineBound<ChalkIr>>>;

fn lower(&self, env: &Env) -> LowerResult<Self::Lowered> {
fn trait_identifier(bound: &InlineBound) -> &Identifier {
Expand All @@ -571,15 +571,15 @@ impl LowerWithEnv for [QuantifiedInlineBound] {
}
}

let mut regular_traits = Vec::new();
let mut auto_traits = Vec::new();
let mut regular_traits = IndexSet::new();
let mut auto_traits = IndexSet::new();

for b in self {
let id = env.lookup_trait(trait_identifier(&b.bound))?;
if env.auto_trait(id) {
auto_traits.push((b, id))
auto_traits.insert((b, id));
} else {
regular_traits.push((b, id))
regular_traits.insert((b, id));
}
}

Expand Down

0 comments on commit 28c30d2

Please sign in to comment.