about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorxFrednet <xFrednet@gmail.com>2022-06-05 12:33:45 +0200
committerxFrednet <xFrednet@gmail.com>2022-06-16 08:16:43 +0200
commit8527a3d36985bed55de1832c3c1f3d470720bb0b (patch)
treead2f51bc362ba29e281ac832a2a8e62b7b9b8b2c /compiler/rustc_codegen_llvm/src
parentec55c61305eaf385fc1b93ac9a78284b4d887fe5 (diff)
downloadrust-8527a3d36985bed55de1832c3c1f3d470720bb0b.tar.gz
rust-8527a3d36985bed55de1832c3c1f3d470720bb0b.zip
Support lint expectations for `--force-warn` lints (RFC 2383)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/write.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs
index 99e30531c22..dce95e932dd 100644
--- a/compiler/rustc_codegen_llvm/src/back/write.rs
+++ b/compiler/rustc_codegen_llvm/src/back/write.rs
@@ -340,7 +340,7 @@ fn report_inline_asm(
     }
     let level = match level {
         llvm::DiagnosticLevel::Error => Level::Error { lint: false },
-        llvm::DiagnosticLevel::Warning => Level::Warning,
+        llvm::DiagnosticLevel::Warning => Level::Warning(None),
         llvm::DiagnosticLevel::Note | llvm::DiagnosticLevel::Remark => Level::Note,
     };
     cgcx.diag_emitter.inline_asm_error(cookie as u32, msg, level, source);