Skip to content

Commit 45468f3

Browse files
nikomatsakisJorge Aparicio
authored and
Jorge Aparicio
committed
Temporarily do not evaluate subobligations.
1 parent ea1ad79 commit 45468f3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/librustc/middle/traits/select.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,11 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
343343
project::poly_project_and_unify_type(self, &project_obligation)
344344
});
345345
match result {
346-
Ok(Some(subobligations)) => {
347-
self.evaluate_predicates_recursively(previous_stack, subobligations.iter())
346+
Ok(Some(_subobligations)) => {
347+
// TODO we should evaluate _subobligations, but doing so leads to an ICE
348+
// self.evaluate_predicates_recursively(previous_stack,
349+
// subobligations.iter())
350+
EvaluatedToAmbig
348351
}
349352
Ok(None) => {
350353
EvaluatedToAmbig

0 commit comments

Comments
 (0)