Skip to content

Commit 9d104a0

Browse files
Clone rust repository before modifying it
1 parent c27fe3e commit 9d104a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build_system/src/test.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,9 @@ where
895895
{
896896
// FIXME: create a function "display_if_not_quiet" or something along the line.
897897
println!("[TEST] rust-lang/rust");
898+
let mut env = env.clone();
899+
setup_rustc(&mut env, args)?;
900+
898901
walk_dir(
899902
"rust/tests/ui",
900903
|dir| {
@@ -948,8 +951,6 @@ where
948951
std::fs::remove_file(file)
949952
.map_err(|error| format!("Failed to remove `{}`: {:?}", file, error))?;
950953

951-
let mut env = env.clone();
952-
setup_rustc(&mut env, args)?;
953954
if !callback()? {
954955
// FIXME: create a function "display_if_not_quiet" or something along the line.
955956
println!("Keeping all UI tests");

0 commit comments

Comments
 (0)