Update src/tools/compiletest/src/runtest.rs
Co-authored-by: Mark Rousskov <mark.simulacrum@gmail.com>
This commit is contained in:
parent
47703d3f3d
commit
f01608cbc4
1 changed files with 1 additions and 1 deletions
|
|
@ -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>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue