mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
type_implements_trait consider obligation failure on overflow
This commit is contained in:
@@ -117,7 +117,7 @@ fn type_implements_trait(
|
||||
recursion_depth: 0,
|
||||
predicate: trait_ref.without_const().to_predicate(self.tcx),
|
||||
};
|
||||
self.evaluate_obligation_no_overflow(&obligation)
|
||||
self.evaluate_obligation(&obligation).unwrap_or(traits::EvaluationResult::EvaluatedToErr)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user