diff options
| author | Michael Goulet <michael@errs.io> | 2024-01-05 10:57:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-05 10:57:21 -0500 |
| commit | f361b591efb7c05b9f498f2b4eb6381d522094ce (patch) | |
| tree | f30250ff9558573c6cb58bf439d3f05c46ccde2e /compiler/rustc_pattern_analysis/src | |
| parent | f41ad1bc9c54824073142cc19c5eafef4893d86b (diff) | |
| parent | 8388112970288c79ddb217949070cfb04c2798a5 (diff) | |
| download | rust-f361b591efb7c05b9f498f2b4eb6381d522094ce.tar.gz rust-f361b591efb7c05b9f498f2b4eb6381d522094ce.zip | |
Rollup merge of #119538 - nnethercote:cleanup-errors-5, r=compiler-errors
Cleanup error handlers: round 5 More rustc_errors cleanups. A sequel to https://github.com/rust-lang/rust/pull/119171. r? ````@compiler-errors````
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 cb712fe640c..1a4f3edd810 100644 --- a/compiler/rustc_pattern_analysis/src/lints.rs +++ b/compiler/rustc_pattern_analysis/src/lints.rs @@ -204,7 +204,7 @@ pub(crate) fn lint_nonexhaustive_missing_variants<'a, 'p, 'tcx>( use rustc_errors::DecorateLint; let mut err = rcx.tcx.dcx().struct_span_warn(arm.pat.data().unwrap().span, ""); - err.set_primary_message(decorator.msg()); + err.primary_message(decorator.msg()); decorator.decorate_lint(&mut err); err.emit(); } |
