We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0395fa3 commit a8efbc4Copy full SHA for a8efbc4
compiler/rustc_trait_selection/src/solve/fulfill.rs
@@ -109,7 +109,10 @@ impl<'tcx> TraitEngine<'tcx> for FulfillmentCtxt<'tcx> {
109
let mut errors = Vec::new();
110
for i in 0.. {
111
if !infcx.tcx.recursion_limit().value_within_limit(i) {
112
- unimplemented!("overflowed on pending obligations: {:?}", self.obligations);
+ // Only return true errors that we have accumulated while processing;
113
+ // keep ambiguities around, *including overflows*, because they shouldn't
114
+ // be considered true errors.
115
+ return errors;
116
}
117
118
let mut has_changed = false;
0 commit comments