1
Fork 0

replace usages of fn_sig query with bound_fn_sig

This commit is contained in:
Kyle Matsuda 2023-01-18 15:43:20 -07:00
parent d7948c843d
commit e982971ff2
66 changed files with 147 additions and 113 deletions

View file

@ -72,7 +72,7 @@ impl<'mir, 'tcx> ConstCx<'mir, 'tcx> {
let ty::Closure(_, substs) = ty.kind() else { bug!("type_of closure not ty::Closure") };
substs.as_closure().sig()
} else {
self.tcx.fn_sig(did)
self.tcx.bound_fn_sig(did).subst_identity()
}
}
}