diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-11-30 18:25:44 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-12 17:54:48 +0100 |
| commit | c4bbe9cbbe9921646cdedb856e34dc951641ed96 (patch) | |
| tree | c71c2d933922bb09df1c005a909463caa90be6f8 /src/libsyntax/print | |
| parent | 3eebe058e52b749d1a38926390c12900e91b0b2c (diff) | |
| download | rust-c4bbe9cbbe9921646cdedb856e34dc951641ed96.tar.gz rust-c4bbe9cbbe9921646cdedb856e34dc951641ed96.zip | |
Alias `TraitItem` & `ImplItem`.
Allow defaultness on trait items syntactically.
Diffstat (limited to 'src/libsyntax/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index f0c5fb32fb1..2e3ea5e2444 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1550,6 +1550,7 @@ impl<'a> State<'a> { self.hardbreak_if_not_bol(); self.maybe_print_comment(ti.span.lo()); self.print_outer_attributes(&ti.attrs); + self.print_defaultness(ti.defaultness); match ti.kind { ast::TraitItemKind::Const(ref ty, ref default) => { self.print_associated_const( |
