mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
make symbol debug formatting consistent
This commit is contained in:
parent
2adcbecf8a
commit
72e883a20b
2 changed files with 21 additions and 19 deletions
|
@ -516,11 +516,9 @@ struct SetElement<'a> {
|
|||
|
||||
impl std::fmt::Debug for SetElement<'_> {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
if crate::ir::pretty_print_ir_symbols() {
|
||||
write!(f, "( {:?}, {:?})", self.symbol, self.layout)
|
||||
} else {
|
||||
write!(f, "( {}, {:?})", self.symbol, self.layout)
|
||||
}
|
||||
let symbol_string = crate::ir::symbol_to_doc_string(self.symbol);
|
||||
|
||||
write!(f, "( {}, {:?})", symbol_string, self.layout)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue