Skip to content

Commit 78b6045

Browse files
Document tests a bit more
1 parent f09b67a commit 78b6045

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/test/rustdoc/deref-recursive-pathbuf.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// #26207: Show all methods reachable via Deref impls, recursing through multiple dereferencing
22
// levels and across multiple crates.
3+
// For `Deref` on non-foreign types, look at `deref-recursive.rs`.
34

45
// @has 'foo/struct.Foo.html'
56
// @has '-' '//*[@id="deref-methods-PathBuf"]' 'Methods from Deref<Target = PathBuf>'

src/test/rustdoc/deref-recursive.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// #26207: Show all methods reachable via Deref impls, recursing through multiple dereferencing
22
// levels if needed.
3+
// For `Deref` on foreign types, look at `deref-recursive-pathbuf.rs`.
34

45
// @has 'foo/struct.Foo.html'
56
// @has '-' '//*[@id="deref-methods-Bar"]' 'Methods from Deref<Target = Bar>'

src/test/rustdoc/recursive-deref.rs

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ impl G {
5050
}
5151

5252
// @has recursive_deref/struct.D.html '//h3[@class="code-header in-band"]' 'impl Deref for D'
53+
// We also check that `G::g` method isn't rendered because there is no `self` argument.
5354
// @!has '-' '//*[@id="deref-methods-G"]'
5455
impl Deref for D {
5556
type Target = E;
@@ -60,6 +61,7 @@ impl Deref for D {
6061
}
6162

6263
// @has recursive_deref/struct.E.html '//h3[@class="code-header in-band"]' 'impl Deref for E'
64+
// We also check that `G::g` method isn't rendered because there is no `self` argument.
6365
// @!has '-' '//*[@id="deref-methods-G"]'
6466
impl Deref for E {
6567
type Target = F;
@@ -70,6 +72,7 @@ impl Deref for E {
7072
}
7173

7274
// @has recursive_deref/struct.F.html '//h3[@class="code-header in-band"]' 'impl Deref for F'
75+
// We also check that `G::g` method isn't rendered because there is no `self` argument.
7376
// @!has '-' '//*[@id="deref-methods-G"]'
7477
impl Deref for F {
7578
type Target = G;

0 commit comments

Comments
 (0)