about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-11-12 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-11-16 08:19:20 +0100
commitb16ac4cbbae108bfd184569a2c50bde247d04fdf (patch)
treeeb86bfd0ec06f161cff76465e396ba9716914d41 /compiler/rustc_codegen_llvm/src
parent02063124f96aac10f8c5c70653242b0704d397e0 (diff)
downloadrust-b16ac4cbbae108bfd184569a2c50bde247d04fdf.tar.gz
rust-b16ac4cbbae108bfd184569a2c50bde247d04fdf.zip
Use brief format for optimization remarks
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/write.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/write.rs b/compiler/rustc_codegen_llvm/src/back/write.rs
index 3d05fc15b38..80fc39846cd 100644
--- a/compiler/rustc_codegen_llvm/src/back/write.rs
+++ b/compiler/rustc_codegen_llvm/src/back/write.rs
@@ -337,13 +337,8 @@ unsafe extern "C" fn diagnostic_handler(info: &DiagnosticInfo, user: *mut c_void
 
             if enabled {
                 diag_handler.note_without_error(&format!(
-                    "optimization {} for {} at {}:{}:{}: {}",
-                    opt.kind.describe(),
-                    opt.pass_name,
-                    opt.filename,
-                    opt.line,
-                    opt.column,
-                    opt.message
+                    "{}:{}:{}: {}: {}",
+                    opt.filename, opt.line, opt.column, opt.pass_name, opt.message,
                 ));
             }
         }