diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2021-05-03 09:21:52 -0400 |
|---|---|---|
| committer | Felix Klock <pnkfelix@amazon.com> | 2021-06-10 09:48:58 +0000 |
| commit | 0deba5546d5bd69719a8be3d8ec59741d32a9f07 (patch) | |
| tree | 4932091032913128588923f414c6317e782822ed /src/test/rustdoc/deref-recursive-pathbuf.rs | |
| parent | a50d72158e08e02cfc051b863017bdbd2c45b637 (diff) | |
| download | rust-0deba5546d5bd69719a8be3d8ec59741d32a9f07.tar.gz rust-0deba5546d5bd69719a8be3d8ec59741d32a9f07.zip | |
manually crafted revert of PR #80653, to address issue #82465.
(update: placated tidy) (update: rebased post PR #84707 ) merge me
Diffstat (limited to 'src/test/rustdoc/deref-recursive-pathbuf.rs')
| -rw-r--r-- | src/test/rustdoc/deref-recursive-pathbuf.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/test/rustdoc/deref-recursive-pathbuf.rs b/src/test/rustdoc/deref-recursive-pathbuf.rs deleted file mode 100644 index 459a30060c6..00000000000 --- a/src/test/rustdoc/deref-recursive-pathbuf.rs +++ /dev/null @@ -1,24 +0,0 @@ -// #26207: Show all methods reachable via Deref impls, recursing through multiple dereferencing -// levels and across multiple crates. - -// @has 'foo/struct.Foo.html' -// @has '-' '//*[@id="deref-methods-PathBuf"]' 'Methods from Deref<Target = PathBuf>' -// @has '-' '//*[@class="impl-items"]//*[@id="method.as_path"]' 'pub fn as_path(&self)' -// @has '-' '//*[@id="deref-methods-Path"]' 'Methods from Deref<Target = Path>' -// @has '-' '//*[@class="impl-items"]//*[@id="method.exists"]' 'pub fn exists(&self)' -// @has '-' '//*[@class="sidebar-title"][@href="#deref-methods-PathBuf"]' 'Methods from Deref<Target=PathBuf>' -// @has '-' '//*[@class="sidebar-links"]/a[@href="#method.as_path"]' 'as_path' -// @has '-' '//*[@class="sidebar-title"][@href="#deref-methods-Path"]' 'Methods from Deref<Target=Path>' -// @has '-' '//*[@class="sidebar-links"]/a[@href="#method.exists"]' 'exists' - -#![crate_name = "foo"] - -use std::ops::Deref; -use std::path::PathBuf; - -pub struct Foo(PathBuf); - -impl Deref for Foo { - type Target = PathBuf; - fn deref(&self) -> &PathBuf { &self.0 } -} |
