Skip to content

Commit bc3a6c2

Browse files
committed
Add Unicode block-drawing compiler output support
1 parent f158600 commit bc3a6c2

File tree

257 files changed

+990
-780
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+990
-780
lines changed

compiler/rustc_errors/src/emitter.rs

+507-112
Large diffs are not rendered by default.

compiler/rustc_errors/src/json.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,8 @@ impl Diagnostic {
346346

347347
let buf = BufWriter::default();
348348
let mut dst: Destination = Box::new(buf.clone());
349-
let (short, color_config) = je.json_rendered.unzip();
349+
let short = matches!(je.json_rendered, HumanReadableErrorType::Short(_));
350+
let color_config = je.json_rendered.color_config();
350351
match color_config {
351352
ColorConfig::Always | ColorConfig::Auto => dst = Box::new(termcolor::Ansi::new(dst)),
352353
ColorConfig::Never => {}

0 commit comments

Comments
 (0)