about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits/select/mod.rs
diff options
context:
space:
mode:
authorLucas Kent <rubickent@gmail.com>2021-12-17 18:36:18 +1100
committerLucas Kent <rubickent@gmail.com>2022-01-09 14:09:25 +1100
commit08829853d3c69f68a5a09fb4bcc53ca87d373a78 (patch)
tree338b04e9ccd5b0aabb6f128f23704013c3d11508 /compiler/rustc_trait_selection/src/traits/select/mod.rs
parent23ce5fc4655ed546f74a85fc8836e95bec0c64fd (diff)
downloadrust-08829853d3c69f68a5a09fb4bcc53ca87d373a78.tar.gz
rust-08829853d3c69f68a5a09fb4bcc53ca87d373a78.zip
eplace usages of vec![].into_iter with [].into_iter
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/select/mod.rs')
-rw-r--r--compiler/rustc_trait_selection/src/traits/select/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs
index fa88c8ee370..bb3b3203a7c 100644
--- a/compiler/rustc_trait_selection/src/traits/select/mod.rs
+++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs
@@ -1953,7 +1953,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
             ty::Generator(_, ref substs, _) => {
                 let ty = self.infcx.shallow_resolve(substs.as_generator().tupled_upvars_ty());
                 let witness = substs.as_generator().witness();
-                t.rebind(vec![ty].into_iter().chain(iter::once(witness)).collect())
+                t.rebind([ty].into_iter().chain(iter::once(witness)).collect())
             }
 
             ty::GeneratorWitness(types) => {