File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
branches/try2/src/librustdoc Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: d597a19b3062327f5fc26bc963bc5859ad3f6c04
8
+ refs/heads/try2: 246573d5ae1024193914de8c9be9230860781410
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -734,8 +734,8 @@ fn should_write_trait_method_header() {
734
734
#[ test]
735
735
fn should_write_trait_method_signature( ) {
736
736
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 ) "));
739
739
}
740
740
741
741
fn write_impl(ctxt: &Ctxt, doc: doc::ImplDoc) {
@@ -773,8 +773,8 @@ fn should_write_impl_method_header() {
773
773
#[ test]
774
774
fn should_write_impl_method_signature( ) {
775
775
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 ) "));
778
778
}
779
779
780
780
fn write_type(
Original file line number Diff line number Diff line change @@ -259,9 +259,9 @@ fn get_method_sig(
259
259
260
260
#[test]
261
261
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; } ");
263
263
fail_unless!(doc.cratemod().traits()[0].methods[0].sig
264
- == Some(~" fn a<T >( ) -> int"));
264
+ == Some(~" fn a<T >( & mut self ) -> int"));
265
265
}
266
266
267
267
fn fold_impl(
@@ -318,9 +318,9 @@ fn should_add_impl_self_ty() {
318
318
319
319
#[test]
320
320
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!( ) } } ");
322
322
fail_unless!(doc.cratemod().impls()[0].methods[0].sig
323
- == Some(~" fn a<T >( ) -> int"));
323
+ == Some(~" fn a<T >( & self ) -> int"));
324
324
}
325
325
326
326
fn fold_type(
You can’t perform that action at this time.
0 commit comments