Skip to content

Commit 5158edf

Browse files
committed
---
yaml --- r: 275435 b: refs/heads/auto c: d95ca28 h: refs/heads/master i: 275433: da4dd07 275431: 750278a
1 parent 9073db3 commit 5158edf

File tree

2 files changed

+56
-8
lines changed

2 files changed

+56
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: d8d8669439bd9e636b9209733c24c32063cc611d
11+
refs/heads/auto: d95ca2822cdc67ddec96d16533e23a10d6bfd136
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/test/rustdoc/manual_impl.rs

Lines changed: 55 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,67 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
/// Docs associated with the trait definition.
1112
pub trait T {
13+
/// Docs associated with the trait a_method definition.
1214
fn a_method(&self) -> usize;
15+
16+
/// Docs associated with the trait b_method definition.
17+
fn b_method(&self) -> usize {
18+
self.a_method()
19+
}
20+
}
21+
22+
// @has manual_impl/struct.S1.html '//*[@class="trait"]' 'T'
23+
// @has - '//*[@class="docblock"]' 'Docs associated with the S1 trait implementation.'
24+
// @has - '//*[@class="docblock"]' 'Docs associated with the S1 trait a_method implementation.'
25+
// @!has - '//*[@class="docblock"]' 'Docs associated with the trait a_method definition.'
26+
// @!has - '//*[@class="docblock"]' 'Docs associated with the trait b_method definition.'
27+
pub struct S1(usize);
28+
29+
/// Docs associated with the S1 trait implementation.
30+
impl T for S1 {
31+
/// Docs associated with the S1 trait a_method implementation.
32+
fn a_method(&self) -> usize {
33+
self.0
34+
}
35+
}
36+
37+
// @has manual_impl/struct.S2.html '//*[@class="trait"]' 'T'
38+
// @has - '//*[@class="docblock"]' 'Docs associated with the S2 trait implementation.'
39+
// @has - '//*[@class="docblock"]' 'Docs associated with the S2 trait a_method implementation.'
40+
// @has - '//*[@class="docblock"]' 'Docs associated with the S2 trait b_method implementation.'
41+
// @!has - '//*[@class="docblock"]' 'Docs associated with the trait a_method definition.'
42+
// @!has - '//*[@class="docblock"]' 'Docs associated with the trait b_method definition.'
43+
pub struct S2(usize);
44+
45+
/// Docs associated with the S2 trait implementation.
46+
impl T for S2 {
47+
/// Docs associated with the S2 trait a_method implementation.
48+
fn a_method(&self) -> usize {
49+
self.0
50+
}
51+
52+
/// Docs associated with the S2 trait b_method implementation.
53+
fn b_method(&self) -> usize {
54+
5
55+
}
1356
}
1457

15-
// @has manual_impl/struct.S.html '//*[@class="trait"]' 'T'
16-
// @has - '//*[@class="docblock"]' 'Docs associated with the trait implementation.'
17-
// @has - '//*[@class="docblock"]' 'Docs associated with the trait method implementation.'
18-
pub struct S(usize);
58+
// @has manual_impl/struct.S3.html '//*[@class="trait"]' 'T'
59+
// @has - '//*[@class="docblock"]' 'Docs associated with the S3 trait implementation.'
60+
// @has - '//*[@class="docblock"]' 'Docs associated with the S3 trait b_method implementation.'
61+
// @!has - '//*[@class="docblock"]' 'Docs associated with the trait a_method definition.'
62+
pub struct S3(usize);
1963

20-
/// Docs associated with the trait implementation.
21-
impl T for S {
22-
/// Docs associated with the trait method implementation.
64+
/// Docs associated with the S3 trait implementation.
65+
impl T for S3 {
2366
fn a_method(&self) -> usize {
2467
self.0
2568
}
69+
70+
/// Docs associated with the S3 trait b_method implementation.
71+
fn b_method(&self) -> usize {
72+
5
73+
}
2674
}

0 commit comments

Comments
 (0)