diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-30 10:08:01 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-05-03 12:46:48 +1000 |
| commit | e1a177bbba2b1297c33e2838f8b2b72ab5f62ecf (patch) | |
| tree | a5be19ecbc6b7695f2dc320bc7c9b7110a62bbfe /compiler/rustc_hir_pretty | |
| parent | aa7bb1c2f5a8d8e8b709421189186e8e5e8b64f9 (diff) | |
| download | rust-e1a177bbba2b1297c33e2838f8b2b72ab5f62ecf.tar.gz rust-e1a177bbba2b1297c33e2838f8b2b72ab5f62ecf.zip | |
Improve hir pretty-printing of attributes.
Diffstat (limited to 'compiler/rustc_hir_pretty')
| -rw-r--r-- | compiler/rustc_hir_pretty/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_hir_pretty/src/lib.rs b/compiler/rustc_hir_pretty/src/lib.rs index d119402222b..1e260b2dda4 100644 --- a/compiler/rustc_hir_pretty/src/lib.rs +++ b/compiler/rustc_hir_pretty/src/lib.rs @@ -110,6 +110,7 @@ impl<'a> State<'a> { } self.print_attr_item(&unparsed, unparsed.span); self.word("]"); + self.hardbreak() } hir::Attribute::Parsed(AttributeKind::DocComment { style, kind, comment, .. }) => { self.word(rustc_ast_pretty::pprust::state::doc_comment_to_string( |
