Skip to content

Commit a216d66

Browse files
committed
type_implements_trait consider obligation failure on overflow
1 parent e5484ce commit a216d66

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_trait_selection/src

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/infer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl<'cx, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'cx, 'tcx> {
117117
recursion_depth: 0,
118118
predicate: trait_ref.without_const().to_predicate(self.tcx),
119119
};
120-
self.evaluate_obligation_no_overflow(&obligation)
120+
self.evaluate_obligation(&obligation).unwrap_or(traits::EvaluationResult::EvaluatedToErr)
121121
}
122122
}
123123

0 commit comments

Comments
 (0)