about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/print/pprust.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index e99e35b596c..7ec3cb23b7b 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -2086,7 +2086,7 @@ fn fn_header_info_to_str(opt_sty: Option<ast::self_ty_>,
     let mut s = visibility_qualified(vis, ~"");
 
     match opt_sty {
-        Some(ast::sty_static) => str::push_str(s, ~"static "),
+        Some(ast::sty_static) => str::push_str(&mut s, ~"static "),
         _ => ()
     };