Skip to content

Commit a47c8b2

Browse files
committed
remove human-annotate-rs
1 parent 6d6068f commit a47c8b2

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

compiler/rustc_session/src/config.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,10 +2027,6 @@ pub fn parse_error_format(
20272027
None | Some("human") => {
20282028
ErrorOutputType::HumanReadable { color_config, kind: default_kind }
20292029
}
2030-
Some("human-annotate-rs") => ErrorOutputType::HumanReadable {
2031-
kind: HumanReadableErrorType { short: false, unicode: false },
2032-
color_config,
2033-
},
20342030
Some("json") => {
20352031
ErrorOutputType::Json { pretty: false, json_rendered, color_config: json_color }
20362032
}
@@ -2051,8 +2047,8 @@ pub fn parse_error_format(
20512047
kind: default_kind,
20522048
});
20532049
early_dcx.early_fatal(format!(
2054-
"argument for `--error-format` must be `human`, `human-annotate-rs`, \
2055-
`human-unicode`, `json`, `pretty-json` or `short` (instead was `{arg}`)"
2050+
"argument for `--error-format` must be `human`, `human-unicode`, \
2051+
`json`, `pretty-json` or `short` (instead was `{arg}`)"
20562052
))
20572053
}
20582054
}
@@ -2114,7 +2110,6 @@ fn check_error_format_stability(
21142110
let format = match format {
21152111
ErrorOutputType::Json { pretty: true, .. } => "pretty-json",
21162112
ErrorOutputType::HumanReadable { kind, .. } => match kind {
2117-
HumanReadableErrorType { unicode: false, .. } => "human-annotate-rs",
21182113
HumanReadableErrorType { unicode: true, .. } => "human-unicode",
21192114
_ => return,
21202115
},

tests/ui/annotate-snippet/missing-type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ edition: 2015
2-
//@ compile-flags: --error-format human-annotate-rs -Z unstable-options
2+
//@ compile-flags: --error-format human
33

44
pub fn main() {
55
let x: Iter;

tests/ui/annotate-snippet/multiple-files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ aux-build:other_file.rs
2-
//@ compile-flags: --error-format human-annotate-rs -Z unstable-options
2+
//@ compile-flags: --error-format human
33

44
extern crate other_file;
55

tests/ui/annotate-snippet/multispan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ proc-macro: multispan.rs
2-
//@ compile-flags: --error-format human-annotate-rs -Z unstable-options
2+
//@ compile-flags: --error-format human
33

44
#![feature(proc_macro_hygiene)]
55

0 commit comments

Comments
 (0)