about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/diagnostic.rs
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2023-07-14 11:11:59 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2023-07-14 11:11:59 +0000
commit598acffa609f1179d13f6d6004fec0b4bcf20b50 (patch)
tree36c9a6caa8d78fcee796801bbb2e1be450d7501e /compiler/rustc_codegen_llvm/src/llvm/diagnostic.rs
parent6b9236ed5a58879969ddcf4c35a6a24f6260e979 (diff)
downloadrust-598acffa609f1179d13f6d6004fec0b4bcf20b50.tar.gz
rust-598acffa609f1179d13f6d6004fec0b4bcf20b50.zip
make opt diagnostic kinds printable
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/diagnostic.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/diagnostic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/diagnostic.rs b/compiler/rustc_codegen_llvm/src/llvm/diagnostic.rs
index 45de284d22a..06e846a2b45 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/diagnostic.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/diagnostic.rs
@@ -9,7 +9,7 @@ use libc::c_uint;
 use super::{DiagnosticInfo, SMDiagnostic};
 use rustc_span::InnerSpan;
 
-#[derive(Copy, Clone)]
+#[derive(Copy, Clone, Debug)]
 pub enum OptimizationDiagnosticKind {
     OptimizationRemark,
     OptimizationMissed,