Move GenericArgKind::as_{type,const,region}
to GenericArg
This commit is contained in:
parent
3f15521396
commit
25b9263b34
5 changed files with 38 additions and 54 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue