diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2025-07-13 16:49:19 +0800 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2025-07-17 18:06:26 +0800 |
| commit | 69326878eeabb713e2d4a85215b87f18e498313c (patch) | |
| tree | bf785ce27bea3392a70c2af0f8c0f4e732c435b4 /compiler/rustc_ast_pretty | |
| parent | f8f6997469237299c1d60814c7b9828602a1f8e4 (diff) | |
| download | rust-69326878eeabb713e2d4a85215b87f18e498313c.tar.gz rust-69326878eeabb713e2d4a85215b87f18e498313c.zip | |
parse `const trait Trait`
Diffstat (limited to 'compiler/rustc_ast_pretty')
| -rw-r--r-- | compiler/rustc_ast_pretty/src/pprust/state/item.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_ast_pretty/src/pprust/state/item.rs b/compiler/rustc_ast_pretty/src/pprust/state/item.rs index 6c442553976..11c97a552c6 100644 --- a/compiler/rustc_ast_pretty/src/pprust/state/item.rs +++ b/compiler/rustc_ast_pretty/src/pprust/state/item.rs @@ -357,6 +357,7 @@ impl<'a> State<'a> { self.bclose(item.span, empty, cb); } ast::ItemKind::Trait(box ast::Trait { + constness, safety, is_auto, ident, @@ -366,6 +367,7 @@ impl<'a> State<'a> { }) => { let (cb, ib) = self.head(""); self.print_visibility(&item.vis); + self.print_constness(*constness); self.print_safety(*safety); self.print_is_auto(*is_auto); self.word_nbsp("trait"); |
