We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dbfcbc commit ade2a96Copy full SHA for ade2a96
compiler/rustc_infer/src/traits/project.rs
@@ -203,7 +203,7 @@ impl<'tcx> ProjectionCache<'_, 'tcx> {
203
Some(&ProjectionCacheEntry::NormalizedTy { ref ty, complete: _ }) => {
204
info!("ProjectionCacheEntry::complete({:?}) - completing {:?}", key, ty);
205
let mut ty = ty.clone();
206
- if result == EvaluationResult::EvaluatedToOk {
+ if result.must_apply_considering_regions() {
207
ty.obligations = vec![];
208
}
209
map.insert(key, ProjectionCacheEntry::NormalizedTy { ty, complete: Some(result) });
0 commit comments