diff options
| author | The Miri Conjob Bot <miri@cron.bot> | 2023-12-26 05:00:54 +0000 |
|---|---|---|
| committer | The Miri Conjob Bot <miri@cron.bot> | 2023-12-26 05:00:54 +0000 |
| commit | 236ae9905a08ff697ddb35261795ad76a1fd3336 (patch) | |
| tree | 30e459f85746867f972df360431022e4eb4c036e /compiler/rustc_pattern_analysis/src | |
| parent | f2407d98de61888e287efc97dbc4104f3581b70d (diff) | |
| parent | 2271c26e4a8e062bb00d709d0ccb5846e0c341b9 (diff) | |
| download | rust-236ae9905a08ff697ddb35261795ad76a1fd3336.tar.gz rust-236ae9905a08ff697ddb35261795ad76a1fd3336.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
| -rw-r--r-- | compiler/rustc_pattern_analysis/src/lints.rs | 2 |
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(); |
