]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/ty/walk.rs
Auto merge of #107618 - chriswailes:linker-arg, r=albertlarsan68
[rust.git] / compiler / rustc_middle / src / ty / walk.rs
index 34dbb6e9f68ea1cf6fe295448322edf3f532cea9..182945b9c3db1ba01c210154cee3c1ecc015f0c6 100644 (file)
@@ -4,7 +4,7 @@
 use crate::ty::subst::{GenericArg, GenericArgKind};
 use crate::ty::{self, Ty};
 use rustc_data_structures::sso::SsoHashSet;
-use smallvec::{self, SmallVec};
+use smallvec::SmallVec;
 
 // The TypeWalker's stack is hot enough that it's worth going to some effort to
 // avoid heap allocations.
@@ -190,6 +190,7 @@ fn push_inner<'tcx>(stack: &mut TypeWalkerStack<'tcx>, parent: GenericArg<'tcx>)
             ty::Adt(_, substs)
             | ty::Closure(_, substs)
             | ty::Generator(_, substs, _)
+            | ty::GeneratorWitnessMIR(_, substs)
             | ty::FnDef(_, substs) => {
                 stack.extend(substs.iter().rev());
             }