We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--error-format=short
1 parent cc705b8 commit fd49590Copy full SHA for fd49590
compiler/rustc_errors/src/emitter.rs
@@ -1348,7 +1348,14 @@ impl EmitterWriter {
1348
buffer.append(0, "]", Style::Level(*level));
1349
label_width += 2 + code.len();
1350
}
1351
- let header_style = if is_secondary { Style::HeaderMsg } else { Style::MainHeaderMsg };
+ let header_style = if is_secondary {
1352
+ Style::HeaderMsg
1353
+ } else if self.short_message {
1354
+ // For short messages avoid bolding the message, as it doesn't look great (#63835).
1355
+ Style::NoStyle
1356
+ } else {
1357
+ Style::MainHeaderMsg
1358
+ };
1359
if *level != Level::FailureNote {
1360
buffer.append(0, ": ", header_style);
1361
label_width += 2;
0 commit comments