diff options
| author | lcnr <rust@lcnr.de> | 2024-11-22 12:17:50 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2024-11-23 13:51:57 +0100 |
| commit | f4b516b10c95c7b33d148d1c284d02a331acce2d (patch) | |
| tree | f6d9bbf956e5100219bb91de06bd90ed324a5d97 /compiler/rustc_mir_build/src/errors.rs | |
| parent | 0f8405f702c2b6c2ddd34cf4b6c284e6f2575579 (diff) | |
| download | rust-f4b516b10c95c7b33d148d1c284d02a331acce2d.tar.gz rust-f4b516b10c95c7b33d148d1c284d02a331acce2d.zip | |
thir building: use typing_env directly
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); } } |
