Skip to content

Commit f01608c

Browse files
Update src/tools/compiletest/src/runtest.rs
Co-authored-by: Mark Rousskov <mark.simulacrum@gmail.com>
1 parent 47703d3 commit f01608c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/compiletest/src/runtest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ impl<'test> TestCx<'test> {
11841184
// Remove options that are either unwanted (-O) or may lead to duplicates due to RUSTFLAGS.
11851185
let options_to_remove = ["-O".to_owned(), "-g".to_owned(), "--debuginfo".to_owned()];
11861186

1187-
options.to_vec().into_iter().filter(|x| !options_to_remove.contains(x)).collect()
1187+
options.iter().filter(|x| !options_to_remove.contains(x)).map(|x| x.clone()).collect()
11881188
}
11891189

11901190
fn maybe_add_external_args(&self, cmd: &mut Command, args: &Vec<String>) {

0 commit comments

Comments
 (0)