about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-02-15 22:33:21 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2020-02-15 22:33:21 +0100
commitfe62bed73b0ef9fe63faa2a56653f3c7fa17f7c2 (patch)
tree069c343c652cf8552a242f2c21f46fff504e3a54
parentd6238bd8d4fe283968abbf46357c8e56f283b65b (diff)
downloadrust-fe62bed73b0ef9fe63faa2a56653f3c7fa17f7c2.tar.gz
rust-fe62bed73b0ef9fe63faa2a56653f3c7fa17f7c2.zip
print_item_const: remove extraneous space
-rw-r--r--src/librustc_ast_pretty/pprust.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_ast_pretty/pprust.rs b/src/librustc_ast_pretty/pprust.rs
index 0eea64dfe73..2f712964a84 100644
--- a/src/librustc_ast_pretty/pprust.rs
+++ b/src/librustc_ast_pretty/pprust.rs
@@ -1067,9 +1067,9 @@ impl<'a> State<'a> {
         vis: &ast::Visibility,
     ) {
         let leading = match mutbl {
-            None => "const ",
-            Some(ast::Mutability::Not) => "static ",
-            Some(ast::Mutability::Mut) => "static mut ",
+            None => "const",
+            Some(ast::Mutability::Not) => "static",
+            Some(ast::Mutability::Mut) => "static mut",
         };
         self.head(visibility_qualified(vis, leading));
         self.print_ident(ident);