Skip to content

Commit 3749b91

Browse files
committed
fmt
1 parent cb6dfec commit 3749b91

File tree

2 files changed

+2
-4
lines changed
  • compiler
    • rustc_next_trait_solver/src/solve
    • rustc_trait_selection/src/traits

2 files changed

+2
-4
lines changed

compiler/rustc_next_trait_solver/src/solve/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,8 @@ where
157157
for pred in param_env.caller_bounds().iter() {
158158
if let ty::ClauseKind::UnstableFeature(sym) = pred.kind().skip_binder() {
159159
if sym == symbol {
160-
return self
161-
.evaluate_added_goals_and_make_canonical_response(Certainty::Yes);
160+
return self.evaluate_added_goals_and_make_canonical_response(Certainty::Yes);
162161
}
163-
164162
}
165163
}
166164

compiler/rustc_trait_selection/src/traits/fulfill.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
767767
ty::PredicateKind::Clause(ty::ClauseKind::UnstableFeature(symbol)) => {
768768
// Iterate through all goals in param_env to find the one that has the same symbol.
769769
for pred in obligation.param_env.caller_bounds().iter() {
770-
if let ty::ClauseKind::UnstableFeature(sym) = pred.kind().skip_binder() {
770+
if let ty::ClauseKind::UnstableFeature(sym) = pred.kind().skip_binder() {
771771
if sym == symbol {
772772
return ProcessResult::Changed(Default::default());
773773
}

0 commit comments

Comments
 (0)