diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2021-09-03 12:36:33 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2021-12-04 19:40:33 +0100 |
| commit | 1acb44f03cd82c15c66f43abcc4b396378a0cc5d (patch) | |
| tree | 600709b4d31b26f9b0625c61ea8aeabd35a755bc /compiler/rustc_codegen_cranelift/scripts | |
| parent | b34cf1a9e176e3ca525638e9075696d8467596ba (diff) | |
| download | rust-1acb44f03cd82c15c66f43abcc4b396378a0cc5d.tar.gz rust-1acb44f03cd82c15c66f43abcc4b396378a0cc5d.zip | |
Use IntoIterator for array impl everywhere.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/scripts')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/scripts/cargo.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_cranelift/scripts/cargo.rs b/compiler/rustc_codegen_cranelift/scripts/cargo.rs index 89ec8da77d3..41d82b581cd 100644 --- a/compiler/rustc_codegen_cranelift/scripts/cargo.rs +++ b/compiler/rustc_codegen_cranelift/scripts/cargo.rs @@ -42,7 +42,7 @@ fn main() { "RUSTFLAGS", env::var("RUSTFLAGS").unwrap_or(String::new()) + " -Cprefer-dynamic", ); - std::array::IntoIter::new(["rustc".to_string()]) + IntoIterator::into_iter(["rustc".to_string()]) .chain(env::args().skip(2)) .chain([ "--".to_string(), @@ -56,7 +56,7 @@ fn main() { "RUSTFLAGS", env::var("RUSTFLAGS").unwrap_or(String::new()) + " -Cprefer-dynamic", ); - std::array::IntoIter::new(["rustc".to_string()]) + IntoIterator::into_iter(["rustc".to_string()]) .chain(env::args().skip(2)) .chain([ "--".to_string(), |
