@@ -2,7 +2,7 @@ use colored::*;
22use regex:: Regex ;
33use std:: path:: { Path , PathBuf } ;
44use std:: { env, process:: Command } ;
5- use ui_test:: { color_eyre:: Result , Config , DependencyBuilder , Mode , OutputConflictHandling } ;
5+ use ui_test:: { color_eyre:: Result , Config , Mode , OutputConflictHandling } ;
66
77fn miri_path ( ) -> PathBuf {
88 PathBuf :: from ( option_env ! ( "MIRI" ) . unwrap_or ( env ! ( "CARGO_BIN_EXE_miri" ) ) )
@@ -114,17 +114,14 @@ fn run_tests(
114114 if with_dependencies && use_std {
115115 config. dependencies_crate_manifest_path =
116116 Some ( Path :: new ( "test_dependencies" ) . join ( "Cargo.toml" ) ) ;
117- config. dependency_builder = Some ( DependencyBuilder {
118- program : std:: env:: var_os ( "CARGO" ) . unwrap ( ) . into ( ) ,
119- args : vec ! [
120- "run" . into( ) ,
121- "--manifest-path" . into( ) ,
122- "cargo-miri/Cargo.toml" . into( ) ,
123- "--" . into( ) ,
124- "miri" . into( ) ,
125- ] ,
126- envs : vec ! [ ] ,
127- } ) ;
117+ config. dependency_builder . args = vec ! [
118+ "run" . into( ) ,
119+ "--manifest-path" . into( ) ,
120+ "cargo-miri/Cargo.toml" . into( ) ,
121+ "--" . into( ) ,
122+ "miri" . into( ) ,
123+ "run" . into( ) ,
124+ ] ;
128125 }
129126 ui_test:: run_tests ( config)
130127}
0 commit comments