We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47703d3 commit f01608cCopy full SHA for f01608c
src/tools/compiletest/src/runtest.rs
@@ -1184,7 +1184,7 @@ impl<'test> TestCx<'test> {
1184
// Remove options that are either unwanted (-O) or may lead to duplicates due to RUSTFLAGS.
1185
let options_to_remove = ["-O".to_owned(), "-g".to_owned(), "--debuginfo".to_owned()];
1186
1187
- 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()
1188
}
1189
1190
fn maybe_add_external_args(&self, cmd: &mut Command, args: &Vec<String>) {
0 commit comments