summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorZack Corr <zack@z0w0.me>2013-03-14 16:39:36 +1000
committerZack Corr <zack@z0w0.me>2013-03-14 16:43:17 +1000
commit4f238503d8730486fd9c72c71f1043a2f925299d (patch)
tree1e3539e7d09b52cf6eca714f7f77986c79e83fd7 /src/libsyntax/print
parent58f248d9234f2a6b10b1537e4075d303ed60b605 (diff)
downloadrust-4f238503d8730486fd9c72c71f1043a2f925299d.tar.gz
rust-4f238503d8730486fd9c72c71f1043a2f925299d.zip
rustdoc: Document explicit self in methods. Closes #5254
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pprust.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index 724e61daea7..f74b8eb42b8 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -181,10 +181,11 @@ pub fn path_to_str(&&p: @ast::path, intr: @ident_interner) -> ~str {
 }
 
 pub fn fun_to_str(decl: &ast::fn_decl, name: ast::ident,
+                  opt_self_ty: Option<ast::self_ty_>,
                   generics: &ast::Generics, intr: @ident_interner) -> ~str {
     do io::with_str_writer |wr| {
         let s = rust_printer(wr, intr);
-        print_fn(s, decl, None, name, generics, None, ast::inherited);
+        print_fn(s, decl, None, name, generics, opt_self_ty, ast::inherited);
         end(s); // Close the head box
         end(s); // Close the outer box
         eof(s.s);