add tcx to fn walk
This commit is contained in:
@@ -573,7 +573,7 @@ fn check_type_length_limit<'tcx>(tcx: TyCtxt<'tcx>, instance: Instance<'tcx>) {
|
||||
let type_length = instance
|
||||
.substs
|
||||
.iter()
|
||||
.flat_map(|arg| arg.walk())
|
||||
.flat_map(|arg| arg.walk(tcx))
|
||||
.filter(|arg| match arg.unpack() {
|
||||
GenericArgKind::Type(_) | GenericArgKind::Const(_) => true,
|
||||
GenericArgKind::Lifetime(_) => false,
|
||||
|
||||
Reference in New Issue
Block a user