about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorSeiichi Uchida <seuchida@gmail.com>2018-01-30 14:53:01 +0900
committerflip1995 <uwdkn@student.kit.edu>2018-05-02 11:32:34 +0200
commit9b3aea602c37d53bbecf8bff8c77ccbfbefc23d0 (patch)
treedafe616470a07d22095ed35f0d2f421d309d44d9 /src/libsyntax/print
parent759bd01e039452a1a357d347aea51348f9ffc443 (diff)
Remove Option from the return type of Attribute::name()
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pprust.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index e8beb7e442c..96f7caf165c 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -776,6 +776,7 @@ pub trait PrintState<'a> {
             ast::MetaItemKind::Word => self.print_attribute_path(&item.name)?,
             ast::MetaItemKind::NameValue(ref value) => {
                 self.print_attribute_path(&item.name)?;
+                self.writer().space()?;
                 self.word_space("=")?;
                 self.print_literal(value)?;
             }