Don't use debug formatting to convert Variable into string

This commit is contained in:
Elias Mulhall 2024-08-28 12:51:02 -04:00
parent 7a07f13f31
commit fefb4a3115

View file

@ -1852,7 +1852,7 @@ fn desugar_dbg_expr<'a>(
let region = expr.region; let region = expr.region;
// tmpVar = expr // tmpVar = expr
let ident = &*arena.alloc_str(&format!("{:?}", var_store.fresh())); let ident = &*arena.alloc(var_store.fresh().index().to_string());
let value_def = ValueDef::Body( let value_def = ValueDef::Body(
arena.alloc(Loc { arena.alloc(Loc {