File tree 3 files changed +5
-0
lines changed
3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 1
1
// #26207: Show all methods reachable via Deref impls, recursing through multiple dereferencing
2
2
// levels and across multiple crates.
3
+ // For `Deref` on non-foreign types, look at `deref-recursive.rs`.
3
4
4
5
// @has 'foo/struct.Foo.html'
5
6
// @has '-' '//*[@id="deref-methods-PathBuf"]' 'Methods from Deref<Target = PathBuf>'
Original file line number Diff line number Diff line change 1
1
// #26207: Show all methods reachable via Deref impls, recursing through multiple dereferencing
2
2
// levels if needed.
3
+ // For `Deref` on foreign types, look at `deref-recursive-pathbuf.rs`.
3
4
4
5
// @has 'foo/struct.Foo.html'
5
6
// @has '-' '//*[@id="deref-methods-Bar"]' 'Methods from Deref<Target = Bar>'
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ impl G {
50
50
}
51
51
52
52
// @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.
53
54
// @!has '-' '//*[@id="deref-methods-G"]'
54
55
impl Deref for D {
55
56
type Target = E ;
@@ -60,6 +61,7 @@ impl Deref for D {
60
61
}
61
62
62
63
// @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.
63
65
// @!has '-' '//*[@id="deref-methods-G"]'
64
66
impl Deref for E {
65
67
type Target = F ;
@@ -70,6 +72,7 @@ impl Deref for E {
70
72
}
71
73
72
74
// @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.
73
76
// @!has '-' '//*[@id="deref-methods-G"]'
74
77
impl Deref for F {
75
78
type Target = G ;
You can’t perform that action at this time.
0 commit comments