Skip to content

Commit

Permalink
fix error display for './miri run --dep'
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Apr 15, 2024
1 parent 6ccf075 commit 204326d
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 204326d

Please sign in to comment.