diff options
| author | bors <bors@rust-lang.org> | 2024-11-23 18:01:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-11-23 18:01:21 +0000 |
| commit | 386a7c7ae22a3727c6a06633212d5a95edabdd74 (patch) | |
| tree | 706495cadce77efdc881791959646c668e1fa8c9 /compiler/rustc_mir_build/src/errors.rs | |
| parent | 826b673412d2f579e7865b6f26bc9771c6d3b097 (diff) | |
| parent | 776731dc3f5396cb8f2f9b94a667f3926d8f5765 (diff) | |
| download | rust-386a7c7ae22a3727c6a06633212d5a95edabdd74.tar.gz rust-386a7c7ae22a3727c6a06633212d5a95edabdd74.zip | |
Auto merge of #133242 - lcnr:questionable-uwu, r=compiler-errors,BoxyUwU
finish `Reveal` removal After #133212 changed the `TypingMode` to be the only source of truth, this entirely rips out `Reveal`. cc #132279 r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_mir_build/src/errors.rs')
| -rw-r--r-- | compiler/rustc_mir_build/src/errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_build/src/errors.rs b/compiler/rustc_mir_build/src/errors.rs index 2e8e0e52719..58487a48184 100644 --- a/compiler/rustc_mir_build/src/errors.rs +++ b/compiler/rustc_mir_build/src/errors.rs @@ -595,7 +595,7 @@ impl<'a, G: EmissionGuarantee> Diagnostic<'a, G> for NonExhaustivePatternsTypeNo } if let ty::Ref(_, sub_ty, _) = self.ty.kind() { - if !sub_ty.is_inhabited_from(self.cx.tcx, self.cx.module, self.cx.typing_env()) { + if !sub_ty.is_inhabited_from(self.cx.tcx, self.cx.module, self.cx.typing_env) { diag.note(fluent::mir_build_reference_note); } } |
