about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-26 07:22:44 +0000
committerbors <bors@rust-lang.org>2023-12-26 07:22:44 +0000
commit4658d3816c8b103f0333aef93d2f36f0bf638338 (patch)
tree30e459f85746867f972df360431022e4eb4c036e /compiler/rustc_pattern_analysis/src
parent1754946b3ed693834bb79760169e528277fd98d2 (diff)
parent236ae9905a08ff697ddb35261795ad76a1fd3336 (diff)
downloadrust-4658d3816c8b103f0333aef93d2f36f0bf638338.tar.gz
rust-4658d3816c8b103f0333aef93d2f36f0bf638338.zip
Auto merge of #3241 - rust-lang:rustup-2023-12-26, r=RalfJung
Automatic Rustup
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
-rw-r--r--compiler/rustc_pattern_analysis/src/lints.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_pattern_analysis/src/lints.rs b/compiler/rustc_pattern_analysis/src/lints.rs
index 2be6e8e3db3..bba1f406056 100644
--- a/compiler/rustc_pattern_analysis/src/lints.rs
+++ b/compiler/rustc_pattern_analysis/src/lints.rs
@@ -203,7 +203,7 @@ pub(crate) fn lint_nonexhaustive_missing_variants<'a, 'p, 'tcx>(
                 };
 
                 use rustc_errors::DecorateLint;
-                let mut err = rcx.tcx.sess.struct_span_warn(*arm.pat.data().unwrap(), "");
+                let mut err = rcx.tcx.dcx().struct_span_warn(*arm.pat.data().unwrap(), "");
                 err.set_primary_message(decorator.msg());
                 decorator.decorate_lint(&mut err);
                 err.emit();