Skip to content

Commit cd02511

Browse files
committed
---
yaml --- r: 53857 b: refs/heads/dist-snap c: 4f23850 h: refs/heads/master i: 53855: 4a71387 v: v3
1 parent a022cdd commit cd02511

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10-
refs/heads/dist-snap: 50d99e0194af2bc8da9867b2c5f1e4d44dd7baf2
10+
refs/heads/dist-snap: 4f238503d8730486fd9c72c71f1043a2f925299d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustdoc/tystr_pass.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn get_fn_sig(srv: astsrv::Srv, fn_id: doc::AstId) -> Option<~str> {
7575
ident: ident,
7676
node: ast::foreign_item_fn(ref decl, _, ref tys), _
7777
}, _, _) => {
78-
Some(pprust::fun_to_str(decl, ident, tys,
78+
Some(pprust::fun_to_str(decl, ident, None, tys,
7979
extract::interner()))
8080
}
8181
_ => fail!(~"get_fn_sig: fn_id not bound to a fn item")
@@ -215,6 +215,7 @@ fn get_method_sig(
215215
Some(pprust::fun_to_str(
216216
&ty_m.decl,
217217
ty_m.ident,
218+
Some(ty_m.self_ty.node),
218219
&ty_m.generics,
219220
extract::interner()
220221
))
@@ -223,6 +224,7 @@ fn get_method_sig(
223224
Some(pprust::fun_to_str(
224225
&m.decl,
225226
m.ident,
227+
Some(m.self_ty.node),
226228
&m.generics,
227229
extract::interner()
228230
))
@@ -242,6 +244,7 @@ fn get_method_sig(
242244
Some(pprust::fun_to_str(
243245
&method.decl,
244246
method.ident,
247+
Some(method.self_ty.node),
245248
&method.generics,
246249
extract::interner()
247250
))

branches/dist-snap/src/libsyntax/parse/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ mod test {
300300
use core::str;
301301
use util::testing::*;
302302

303-
#[test] fn to_json_str (val: @Encodable<std::json::Encoder>) -> ~str {
303+
#[test] fn to_json_str (val: Encodable<std::json::Encoder>) -> ~str {
304304
do io::with_str_writer |writer| {
305305
val.encode(~std::json::Encoder(writer));
306306
}

branches/dist-snap/src/libsyntax/print/pprust.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,11 @@ pub fn path_to_str(&&p: @ast::path, intr: @ident_interner) -> ~str {
181181
}
182182

183183
pub fn fun_to_str(decl: &ast::fn_decl, name: ast::ident,
184+
opt_self_ty: Option<ast::self_ty_>,
184185
generics: &ast::Generics, intr: @ident_interner) -> ~str {
185186
do io::with_str_writer |wr| {
186187
let s = rust_printer(wr, intr);
187-
print_fn(s, decl, None, name, generics, None, ast::inherited);
188+
print_fn(s, decl, None, name, generics, opt_self_ty, ast::inherited);
188189
end(s); // Close the head box
189190
end(s); // Close the outer box
190191
eof(s.s);

0 commit comments

Comments
 (0)