Skip to content

Commit

Permalink
Auto merge of #3465 - RalfJung:run-dep-error-format, r=RalfJung
Browse files Browse the repository at this point in the history
fix error display for './miri run --dep'

Fixes #3463
  • Loading branch information
bors committed Apr 15, 2024
2 parents 8be18dc + 204326d commit fcd2f0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,13 @@ fn main() -> Result<()> {

fn run_dep_mode(target: String, mut args: impl Iterator<Item = OsString>) -> Result<()> {
let path = args.next().expect("./miri run-dep must be followed by a file name");
let config = miri_config(
let mut config = miri_config(
&target,
"",
Mode::Yolo { rustfix: RustfixMode::Disabled },
/* with dependencies */ true,
);
config.program.args.clear(); // remove the `--error-format` that ui_test adds by default
let dep_args = config.build_dependencies()?;

let mut cmd = config.program.build(&config.out_dir);
Expand Down

0 comments on commit fcd2f0b

Please sign in to comment.