Skip to content

Commit 0c4d81f

Browse files
committed
Auto merge of #31550 - Stebalien:fix-color, r=nrc
Fixes #31546
2 parents c7640aa + 03ef55b commit 0c4d81f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/librustc/session/config.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -936,17 +936,17 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
936936
Some("human") => ErrorOutputType::HumanReadable(color),
937937
Some("json") => ErrorOutputType::Json,
938938

939-
None => ErrorOutputType::default(),
939+
None => ErrorOutputType::HumanReadable(color),
940940

941941
Some(arg) => {
942-
early_error(ErrorOutputType::default(), &format!("argument for --error-format must \
943-
be human or json (instead was \
944-
`{}`)",
945-
arg))
942+
early_error(ErrorOutputType::HumanReadable(color),
943+
&format!("argument for --error-format must be human or json (instead \
944+
was `{}`)",
945+
arg))
946946
}
947947
}
948948
} else {
949-
ErrorOutputType::default()
949+
ErrorOutputType::HumanReadable(color)
950950
};
951951

952952
let unparsed_crate_types = matches.opt_strs("crate-type");

0 commit comments

Comments
 (0)