diff options
| author | Boxy Uwu <rust@boxyuwu.dev> | 2025-09-27 22:58:02 +0100 |
|---|---|---|
| committer | Boxy Uwu <rust@boxyuwu.dev> | 2025-09-27 22:58:02 +0100 |
| commit | 4d411775139e1bc39c2752d78e40f2bcecb5304b (patch) | |
| tree | 1568a6ae995c2bcc34902626c5787908ea0c1100 /compiler/rustc_pattern_analysis | |
| parent | ade84871f718ea20a6460d28e82290353b4bf3d2 (diff) | |
| download | rust-4d411775139e1bc39c2752d78e40f2bcecb5304b.tar.gz rust-4d411775139e1bc39c2752d78e40f2bcecb5304b.zip | |
Rename various "concrete opaque type" terminology to say "hidden type"
Diffstat (limited to 'compiler/rustc_pattern_analysis')
| -rw-r--r-- | compiler/rustc_pattern_analysis/src/rustc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_pattern_analysis/src/rustc.rs b/compiler/rustc_pattern_analysis/src/rustc.rs index d9f8085083e..0652461e975 100644 --- a/compiler/rustc_pattern_analysis/src/rustc.rs +++ b/compiler/rustc_pattern_analysis/src/rustc.rs @@ -120,7 +120,7 @@ impl<'p, 'tcx: 'p> fmt::Debug for RustcPatCtxt<'p, 'tcx> { impl<'p, 'tcx: 'p> RustcPatCtxt<'p, 'tcx> { /// Type inference occasionally gives us opaque types in places where corresponding patterns /// have more specific types. To avoid inconsistencies as well as detect opaque uninhabited - /// types, we use the corresponding concrete type if possible. + /// types, we use the corresponding hidden type if possible. // FIXME(#132279): This will be unnecessary once we have a TypingMode which supports revealing // opaque types defined in a body. #[inline] @@ -146,7 +146,7 @@ impl<'p, 'tcx: 'p> RustcPatCtxt<'p, 'tcx> { /// know it. fn reveal_opaque_key(&self, key: OpaqueTypeKey<'tcx>) -> Option<Ty<'tcx>> { self.typeck_results - .concrete_opaque_types + .hidden_types .get(&key.def_id) .map(|x| ty::EarlyBinder::bind(x.ty).instantiate(self.tcx, key.args)) } |
