Skip to content

Commit 0c730cc

Browse files
committed
---
yaml --- r: 49929 b: refs/heads/auto c: 4f23850 h: refs/heads/master i: 49927: 6498d65 v: v3
1 parent b529bb2 commit 0c730cc

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
@@ -14,5 +14,5 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 50d99e0194af2bc8da9867b2c5f1e4d44dd7baf2
17+
refs/heads/auto: 4f238503d8730486fd9c72c71f1043a2f925299d
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167

branches/auto/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/auto/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/auto/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)