diff options
| author | xFrednet <xFrednet@gmail.com> | 2022-06-05 12:33:45 +0200 |
|---|---|---|
| committer | xFrednet <xFrednet@gmail.com> | 2022-06-16 08:16:43 +0200 |
| commit | 8527a3d36985bed55de1832c3c1f3d470720bb0b (patch) | |
| tree | ad2f51bc362ba29e281ac832a2a8e62b7b9b8b2c /compiler/rustc_errors/src/json.rs | |
| parent | ec55c61305eaf385fc1b93ac9a78284b4d887fe5 (diff) | |
| download | rust-8527a3d36985bed55de1832c3c1f3d470720bb0b.tar.gz rust-8527a3d36985bed55de1832c3c1f3d470720bb0b.zip | |
Support lint expectations for `--force-warn` lints (RFC 2383)
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 fff35ac6ac8..d4d1491c169 100644 --- a/compiler/rustc_errors/src/json.rs +++ b/compiler/rustc_errors/src/json.rs @@ -154,7 +154,7 @@ impl Emitter for JsonEmitter { .into_iter() .map(|mut diag| { if diag.level == crate::Level::Allow { - diag.level = crate::Level::Warning; + diag.level = crate::Level::Warning(None); } FutureBreakageItem { diagnostic: Diagnostic::from_errors_diagnostic(&diag, self) } }) |
