Fix pretty printing of parsed attrs in hir_pretty

This commit is contained in:
Michael Goulet
2025-03-05 15:20:16 +00:00
parent 6a38322d26
commit 279377f87a
8 changed files with 34 additions and 32 deletions

View File

@@ -117,9 +117,9 @@ impl<'a> State<'a> {
self.hardbreak()
}
hir::Attribute::Parsed(pa) => {
self.word("#[attr=\"");
self.word("#[attr = ");
pa.print_attribute(self);
self.word("\")]");
self.word("]");
self.hardbreak()
}
}