Skip to content

Commit

Permalink
update CONFIG_CHANGE_HISTORY
Browse files Browse the repository at this point in the history
  • Loading branch information
Orion Gonzalez committed Oct 22, 2024
1 parent ef4325e commit 37ffb94
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/bootstrap/src/utils/change_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,4 +280,9 @@ pub const CONFIG_CHANGE_HISTORY: &[ChangeInfo] = &[
severity: ChangeSeverity::Info,
summary: "Allow setting `--jobs` in config.toml with `build.jobs`.",
},
ChangeInfo {
change_id: 131181,
severity: ChangeSeverity::Info,
summary: "New option `build.compiletest-diff-tool` that adds support for a custom differ for compiletest",
},
];
8 changes: 6 additions & 2 deletions src/tools/compiletest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,12 @@ pub fn parse_config(args: Vec<String>) -> Config {
"email address used for finding merge commits",
"EMAIL",
)
.optopt("", "display-diff-tool", "What custom diff tool to use for displaying compiletest tests.", "COMMAND")
;
.optopt(
"",
"display-diff-tool",
"What custom diff tool to use for displaying compiletest tests.",
"COMMAND",
);

let (argv0, args_) = args.split_first().unwrap();
if args.len() == 1 || args[1] == "-h" || args[1] == "--help" {
Expand Down
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,7 @@ impl<'test> TestCx<'test> {
));
}
Ok(output) => {
let output = String::from_utf8_lossy_owned(output.stdout).unwrap();
let output = String::from_utf8_lossy(&output.stdout);
print!("{output}");
}
}
Expand Down

0 comments on commit 37ffb94

Please sign in to comment.