Use brief format for optimization remarks

This commit is contained in:
Tomasz Miąsko 2021-11-12 00:00:00 +00:00
parent 02063124f9
commit b16ac4cbba

View file

@ -337,13 +337,8 @@ unsafe extern "C" fn diagnostic_handler(info: &DiagnosticInfo, user: *mut c_void
if enabled { if enabled {
diag_handler.note_without_error(&format!( diag_handler.note_without_error(&format!(
"optimization {} for {} at {}:{}:{}: {}", "{}:{}:{}: {}: {}",
opt.kind.describe(), opt.filename, opt.line, opt.column, opt.pass_name, opt.message,
opt.pass_name,
opt.filename,
opt.line,
opt.column,
opt.message
)); ));
} }
} }