about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2018-10-26 16:23:02 +0200
committerMatthias Krüger <matthias.krueger@famsik.de>2018-10-27 11:55:43 +0200
commit32d07cc2fc23e7cfa8b23a495e6667bcc7cf643a (patch)
tree09791128ee785534d9d4f89c76952ca0ee9f3bc7 /src/bootstrap
parent10f42cbde015c44a019e8b6dceca472a1532f36a (diff)
downloadrust-32d07cc2fc23e7cfa8b23a495e6667bcc7cf643a.tar.gz
rust-32d07cc2fc23e7cfa8b23a495e6667bcc7cf643a.zip
bootstrap: be more explicit on what we collect into. NFC
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index ba601249ea8..957ebd2540a 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -783,10 +783,10 @@ impl Build {
     fn cflags(&self, target: Interned<String>, which: GitRepo) -> Vec<String> {
         // Filter out -O and /O (the optimization flags) that we picked up from
         // cc-rs because the build scripts will determine that for themselves.
-        let mut base: Vec<String> = self.cc[&target].args().iter()
+        let mut base = self.cc[&target].args().iter()
                            .map(|s| s.to_string_lossy().into_owned())
                            .filter(|s| !s.starts_with("-O") && !s.starts_with("/O"))
-                           .collect::<Vec<_>>();
+                           .collect::<Vec<String>>();
 
         // If we're compiling on macOS then we add a few unconditional flags
         // indicating that we want libc++ (more filled out than libstdc++) and