Refactor ty::ClosureKind related stuff
#104732
Merged
ty::ClosureKind related stuff
#104732