Preserve info about whether a given dbg stmt was pnc or not, at least for now

This commit is contained in:
Joshua Warner 2025-01-09 22:17:25 -08:00
parent 1bb9f7f530
commit 13a70c060d
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
18 changed files with 95 additions and 10 deletions

View file

@ -718,10 +718,12 @@ impl<'a> Normalize<'a> for Expr<'a> {
first,
extra_args,
continuation,
pnc_style,
} => Expr::DbgStmt {
first: arena.alloc(first.normalize(arena)),
extra_args: extra_args.normalize(arena),
continuation: arena.alloc(continuation.normalize(arena)),
pnc_style,
},
Expr::LowLevelDbg(x, a, b) => Expr::LowLevelDbg(
x,
@ -828,6 +830,7 @@ fn fold_defs<'a>(
first,
extra_args,
continuation: arena.alloc(Loc::at_zero(rest)),
pnc_style: false,
};
if new_defs.is_empty() {
return new_final;
@ -856,6 +859,7 @@ fn fold_defs<'a>(
first,
extra_args,
continuation: arena.alloc(Loc::at_zero(rest)),
pnc_style: true,
};
if new_defs.is_empty() {
return new_final;