add tcx to fn walk
This commit is contained in:
@@ -365,7 +365,7 @@ impl Checker<'mir, 'tcx> {
|
||||
fn check_local_or_return_ty(&mut self, ty: Ty<'tcx>, local: Local) {
|
||||
let kind = self.body.local_kind(local);
|
||||
|
||||
for ty in ty.walk() {
|
||||
for ty in ty.walk(self.tcx) {
|
||||
let ty = match ty.unpack() {
|
||||
GenericArgKind::Type(ty) => ty,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user