diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-03-18 17:18:54 +0000 | 
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-04-03 09:17:55 +0000 | 
| commit | f3eaf1624c7bc900900248c5112ba8a6be849c85 (patch) | |
| tree | 09662569507f22cafb77934bca316524ecd37c49 /compiler/rustc_errors/src/json.rs | |
| parent | b6d74b5e15b0d479a98b8b18bb70050511108882 (diff) | |
| download | rust-f3eaf1624c7bc900900248c5112ba8a6be849c85.tar.gz rust-f3eaf1624c7bc900900248c5112ba8a6be849c85.zip | |
Split ExpectationLintId off Level
Diffstat (limited to 'compiler/rustc_errors/src/json.rs')
| -rw-r--r-- | compiler/rustc_errors/src/json.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_errors/src/json.rs b/compiler/rustc_errors/src/json.rs index 7d7f364fec2..a6583407b7e 100644 --- a/compiler/rustc_errors/src/json.rs +++ b/compiler/rustc_errors/src/json.rs @@ -144,7 +144,7 @@ impl Emitter for JsonEmitter { // // So to avoid ICEs and confused users we "upgrade" the lint level for // those `FutureBreakageItem` to warn. - if matches!(diag.level, crate::Level::Allow | crate::Level::Expect(..)) { + if matches!(diag.level, crate::Level::Allow | crate::Level::Expect) { diag.level = crate::Level::Warning; } FutureBreakageItem { | 
