Skip to content

Commit f29ef49

Browse files
committed
remove redundant use_cache check already covered by outer conditional
1 parent d8675de commit f29ef49

File tree

1 file changed

+1
-3
lines changed
  • compiler/rustc_trait_selection/src/traits

1 file changed

+1
-3
lines changed

compiler/rustc_trait_selection/src/traits/project.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -904,9 +904,7 @@ fn opt_normalize_projection_type<'a, 'b, 'tcx>(
904904
// should ensure that, unless this happens within a snapshot that's
905905
// rolled back, fulfillment or evaluation will notice the cycle.
906906

907-
if use_cache {
908-
infcx.inner.borrow_mut().projection_cache().recur(cache_key);
909-
}
907+
infcx.inner.borrow_mut().projection_cache().recur(cache_key);
910908
Err(InProgress)
911909
}
912910
ProjectionCacheEntry::Recur => {

0 commit comments

Comments
 (0)