Move GenericArgKind::as_{type,const,region} to GenericArg

This commit is contained in:
Maybe Waffle 2023-04-19 17:59:30 +00:00
parent 3f15521396
commit 25b9263b34
5 changed files with 38 additions and 54 deletions

View file

@ -461,7 +461,7 @@ impl<'ll, 'tcx> DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
let names = get_parameter_names(cx, generics);
iter::zip(substs, names)
.filter_map(|(kind, name)| {
kind.unpack().as_type().map(|ty| {
kind.as_type().map(|ty| {
let actual_type =
cx.tcx.normalize_erasing_regions(ParamEnv::reveal_all(), ty);
let actual_type_metadata = type_di_node(cx, actual_type);