We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b91a3a0 commit 0db1e1dCopy full SHA for 0db1e1d
compiler/rustc_middle/src/ty/util.rs
@@ -1751,6 +1751,11 @@ pub fn reveal_opaque_types_in_bounds<'tcx>(
1751
tcx: TyCtxt<'tcx>,
1752
val: ty::Clauses<'tcx>,
1753
) -> 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
+
1759
let mut visitor = OpaqueTypeExpander {
1760
seen_opaque_tys: FxHashSet::default(),
1761
expanded_cache: FxHashMap::default(),
0 commit comments