eplace usages of vec![].into_iter with [].into_iter
This commit is contained in:
parent
23ce5fc465
commit
08829853d3
36 changed files with 116 additions and 122 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue