about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-08 15:49:46 +0200
committerGitHub <noreply@github.com>2023-07-08 15:49:46 +0200
commitf3f1b0394d5aae12855dad5a5c35ceaefb8d40fc (patch)
tree6afde1755451b19b26283eb9c954a3fad374fbbc /compiler
parente0b290f1a8dfd2cf6dbad94c0425f04f387842d1 (diff)
parentf55b046931cfa1b281375ff8ec4e590d8386f0c4 (diff)
downloadrust-f3f1b0394d5aae12855dad5a5c35ceaefb8d40fc.tar.gz
rust-f3f1b0394d5aae12855dad5a5c35ceaefb8d40fc.zip
Rollup merge of #113335 - compiler-errors:reveal-opaques-in-new-solver, r=lcnr
Reveal opaques in new solver

We were testing against the wrong reveal mode :fearful:

Also a couple of misc commits that I don't want to really put in separate prs

r? ``@lcnr``
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_trait_selection/src/solve/normalize.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/normalize.rs b/compiler/rustc_trait_selection/src/solve/normalize.rs
index c0ee1a576e5..c388850d831 100644
--- a/compiler/rustc_trait_selection/src/solve/normalize.rs
+++ b/compiler/rustc_trait_selection/src/solve/normalize.rs
@@ -167,9 +167,7 @@ impl<'tcx> FallibleTypeFolder<TyCtxt<'tcx>> for NormalizationFolder<'_, 'tcx> {
         // We don't normalize opaque types unless we have
         // `Reveal::All`, even if we're in the defining scope.
         let data = match *ty.kind() {
-            ty::Alias(kind, alias_ty) if kind != ty::Opaque || reveal == Reveal::UserFacing => {
-                alias_ty
-            }
+            ty::Alias(kind, alias_ty) if kind != ty::Opaque || reveal == Reveal::All => alias_ty,
             _ => return ty.try_super_fold_with(self),
         };