Skip to content

Commit 0db1e1d

Browse files
Do not reveal opaques in the param-env, we got lazy norm instead
1 parent b91a3a0 commit 0db1e1d

File tree

1 file changed

+5
-0
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+5
-0
lines changed

compiler/rustc_middle/src/ty/util.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,6 +1751,11 @@ pub fn reveal_opaque_types_in_bounds<'tcx>(
17511751
tcx: TyCtxt<'tcx>,
17521752
val: ty::Clauses<'tcx>,
17531753
) -> ty::Clauses<'tcx> {
1754+
// No need to reveal opaques with the new solver enabled.
1755+
if tcx.next_trait_solver_globally() {
1756+
return val;
1757+
}
1758+
17541759
let mut visitor = OpaqueTypeExpander {
17551760
seen_opaque_tys: FxHashSet::default(),
17561761
expanded_cache: FxHashMap::default(),

0 commit comments

Comments
 (0)