Skip to content

Commit b6b9611

Browse files
committed
remove unnecessary .ok() calls
1 parent e7fa993 commit b6b9611

File tree

1 file changed

+14
-6
lines changed
  • compiler/rustc_trait_selection/src/solve

1 file changed

+14
-6
lines changed

compiler/rustc_trait_selection/src/solve/mod.rs

+14-6
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,21 @@ impl<'a, 'tcx> EvalCtxt<'a, 'tcx> {
231231

232232
let mut candidates = Vec::new();
233233
// LHS normalizes-to RHS
234-
candidates.extend(
235-
evaluate_normalizes_to(self, alias_lhs, rhs, direction, Invert::No).ok(),
236-
);
234+
candidates.extend(evaluate_normalizes_to(
235+
self,
236+
alias_lhs,
237+
rhs,
238+
direction,
239+
Invert::No,
240+
));
237241
// RHS normalizes-to RHS
238-
candidates.extend(
239-
evaluate_normalizes_to(self, alias_rhs, lhs, direction, Invert::Yes).ok(),
240-
);
242+
candidates.extend(evaluate_normalizes_to(
243+
self,
244+
alias_rhs,
245+
lhs,
246+
direction,
247+
Invert::Yes,
248+
));
241249
// Relate via substs
242250
let subst_relate_response = self.probe(|ecx| {
243251
let span = tracing::span!(

0 commit comments

Comments
 (0)