To reproduce, run test `tests/codegen/debuginfo-generic-closure-env-names.rs`, Iterate over all local items, and retrieve each local variable `TyKind`.