Skip to content

Commit 5acc1fd

Browse files
committed
god damnit cargo fmt
1 parent a0350f2 commit 5acc1fd

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

chalk-ir/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,12 @@ impl<I: Interner> Goal<I> {
10801080
I::goal_data(&self.interned)
10811081
}
10821082

1083-
pub fn quantify(self, interner: &I, kind: QuantifierKind, binders: Vec<ParameterKind<()>>) -> Goal<I> {
1083+
pub fn quantify(
1084+
self,
1085+
interner: &I,
1086+
kind: QuantifierKind,
1087+
binders: Vec<ParameterKind<()>>,
1088+
) -> Goal<I> {
10841089
GoalData::Quantified(
10851090
kind,
10861091
Binders {

chalk-solve/src/coherence/solve.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,17 @@ impl<I: Interner> CoherenceSolver<'_, I> {
200200

201201
// Join all of the goals together.
202202
let goal = Box::new(Goal::all(interner, params_goals.chain(less_special_wc)))
203-
.quantify(interner, QuantifierKind::Exists, less_special.binders.binders.clone())
203+
.quantify(
204+
interner,
205+
QuantifierKind::Exists,
206+
less_special.binders.binders.clone(),
207+
)
204208
.implied_by(interner, more_special_wc)
205-
.quantify(interner, QuantifierKind::ForAll, more_special.binders.binders.clone());
209+
.quantify(
210+
interner,
211+
QuantifierKind::ForAll,
212+
more_special.binders.binders.clone(),
213+
);
206214

207215
let canonical_goal = &goal.into_closed_goal(interner);
208216
let result = match self

chalk-solve/src/wf.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,11 @@ where
193193
// on the struct definition hold.
194194
let goal = GoalData::Implies(hypotheses, goal)
195195
.intern(interner)
196-
.quantify(interner, QuantifierKind::ForAll, struct_datum.binders.binders.clone());
196+
.quantify(
197+
interner,
198+
QuantifierKind::ForAll,
199+
struct_datum.binders.binders.clone(),
200+
);
197201

198202
let is_legal = match self
199203
.solver_choice
@@ -287,7 +291,11 @@ where
287291

288292
let goal = GoalData::Implies(hypotheses, goal)
289293
.intern(interner)
290-
.quantify(interner, QuantifierKind::ForAll, impl_datum.binders.binders.clone());
294+
.quantify(
295+
interner,
296+
QuantifierKind::ForAll,
297+
impl_datum.binders.binders.clone(),
298+
);
291299

292300
debug!("WF trait goal: {:?}", goal);
293301

0 commit comments

Comments
 (0)