Skip to content

Commit 999877c

Browse files
treat inductive cycles as errors in new solver
1 parent 917a90e commit 999877c

File tree

1 file changed

+3
-8
lines changed
  • compiler/rustc_trait_selection/src/solve/search_graph

1 file changed

+3
-8
lines changed

compiler/rustc_trait_selection/src/solve/search_graph/mod.rs

+3-8
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ use cache::ProvisionalCache;
99
use overflow::OverflowData;
1010
use rustc_index::IndexVec;
1111
use rustc_middle::dep_graph::DepKind;
12-
use rustc_middle::traits::solve::{
13-
CanonicalInput, Certainty, EvaluationCache, MaybeCause, QueryResult,
14-
};
12+
use rustc_middle::traits::query::NoSolution;
13+
use rustc_middle::traits::solve::{CanonicalInput, Certainty, EvaluationCache, QueryResult};
1514
use rustc_middle::ty::TyCtxt;
1615
use std::{collections::hash_map::Entry, mem};
1716

@@ -146,11 +145,7 @@ impl<'tcx> SearchGraph<'tcx> {
146145
{
147146
Err(cache.provisional_result(entry_index))
148147
} else {
149-
Err(super::response_no_constraints(
150-
tcx,
151-
input,
152-
Certainty::Maybe(MaybeCause::Overflow),
153-
))
148+
Err(Err(NoSolution))
154149
}
155150
}
156151
}

0 commit comments

Comments
 (0)