Skip to content

Commit 7907d5d

Browse files
committed
---
yaml --- r: 139054 b: refs/heads/try2 c: 246573d h: refs/heads/master v: v3
1 parent 0bdaf7e commit 7907d5d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: d597a19b3062327f5fc26bc963bc5859ad3f6c04
8+
refs/heads/try2: 246573d5ae1024193914de8c9be9230860781410
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustdoc/markdown_pass.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,8 @@ fn should_write_trait_method_header() {
734734
#[test]
735735
fn should_write_trait_method_signature() {
736736
let markdown = test::render(
737-
~"trait i { fn a(); }");
738-
fail_unless!(str::contains(markdown, ~"\n fn a()"));
737+
~"trait i { fn a(&self); }");
738+
fail_unless!(str::contains(markdown, ~"\n fn a(&self)"));
739739
}
740740
741741
fn write_impl(ctxt: &Ctxt, doc: doc::ImplDoc) {
@@ -773,8 +773,8 @@ fn should_write_impl_method_header() {
773773
#[test]
774774
fn should_write_impl_method_signature() {
775775
let markdown = test::render(
776-
~"impl int { fn a() { } }");
777-
fail_unless!(str::contains(markdown, ~"\n fn a()"));
776+
~"impl int { fn a(&mut self) { } }");
777+
fail_unless!(str::contains(markdown, ~"\n fn a(&mut self)"));
778778
}
779779
780780
fn write_type(

branches/try2/src/librustdoc/tystr_pass.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,9 @@ fn get_method_sig(
259259
260260
#[test]
261261
fn should_add_trait_method_sigs() {
262-
let doc = test::mk_doc(~"trait i { fn a<T>() -> int; }");
262+
let doc = test::mk_doc(~"trait i { fn a<T>(&mut self) -> int; }");
263263
fail_unless!(doc.cratemod().traits()[0].methods[0].sig
264-
== Some(~"fn a<T>() -> int"));
264+
== Some(~"fn a<T>(&mut self) -> int"));
265265
}
266266
267267
fn fold_impl(
@@ -318,9 +318,9 @@ fn should_add_impl_self_ty() {
318318
319319
#[test]
320320
fn should_add_impl_method_sigs() {
321-
let doc = test::mk_doc(~"impl int { fn a<T>() -> int { fail!() } }");
321+
let doc = test::mk_doc(~"impl int { fn a<T>(&self) -> int { fail!() } }");
322322
fail_unless!(doc.cratemod().impls()[0].methods[0].sig
323-
== Some(~"fn a<T>() -> int"));
323+
== Some(~"fn a<T>(&self) -> int"));
324324
}
325325
326326
fn fold_type(

0 commit comments

Comments
 (0)