Skip to content

Commit

Permalink
Update src/tools/compiletest/src/runtest.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Rousskov <[email protected]>
  • Loading branch information
andrewpollack and Mark-Simulacrum authored Oct 24, 2022
1 parent 47703d3 commit f01608c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ impl<'test> TestCx<'test> {
// Remove options that are either unwanted (-O) or may lead to duplicates due to RUSTFLAGS.
let options_to_remove = ["-O".to_owned(), "-g".to_owned(), "--debuginfo".to_owned()];

options.to_vec().into_iter().filter(|x| !options_to_remove.contains(x)).collect()
options.iter().filter(|x| !options_to_remove.contains(x)).map(|x| x.clone()).collect()
}

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

0 comments on commit f01608c

Please sign in to comment.