diff options
| author | Michael Howell <michael@notriddle.com> | 2023-01-30 11:05:12 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-01-30 11:06:18 -0700 |
| commit | 7080f80e8b64eb5f2037de50991edb9e82aee3a5 (patch) | |
| tree | 26c2d27d0b59e40d240a2a631e5e51e98a5ab8d8 /tests/rustdoc/slice-links.rs | |
| parent | 006ca9b14da1e0145844598b3d6a554c042c702a (diff) | |
| download | rust-7080f80e8b64eb5f2037de50991edb9e82aee3a5.tar.gz rust-7080f80e8b64eb5f2037de50991edb9e82aee3a5.zip | |
rustdoc: remove unnecessary wrapper div.item-decl from HTML
Diffstat (limited to 'tests/rustdoc/slice-links.rs')
| -rw-r--r-- | tests/rustdoc/slice-links.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/rustdoc/slice-links.rs b/tests/rustdoc/slice-links.rs index 67137fdcab2..6dea3b74ea3 100644 --- a/tests/rustdoc/slice-links.rs +++ b/tests/rustdoc/slice-links.rs @@ -4,25 +4,25 @@ pub struct MyBox<T: ?Sized>(*const T); // @has 'foo/fn.alpha.html' -// @snapshot link_slice_u32 - '//div[@class="item-decl"]/pre[@class="rust"]/code' +// @snapshot link_slice_u32 - '//pre[@class="rust item-decl"]/code' pub fn alpha() -> &'static [u32] { loop {} } // @has 'foo/fn.beta.html' -// @snapshot link_slice_generic - '//div[@class="item-decl"]/pre[@class="rust"]/code' +// @snapshot link_slice_generic - '//pre[@class="rust item-decl"]/code' pub fn beta<T>() -> &'static [T] { loop {} } // @has 'foo/fn.gamma.html' -// @snapshot link_box_u32 - '//div[@class="item-decl"]/pre[@class="rust"]/code' +// @snapshot link_box_u32 - '//pre[@class="rust item-decl"]/code' pub fn gamma() -> MyBox<[u32]> { loop {} } // @has 'foo/fn.delta.html' -// @snapshot link_box_generic - '//div[@class="item-decl"]/pre[@class="rust"]/code' +// @snapshot link_box_generic - '//pre[@class="rust item-decl"]/code' pub fn delta<T>() -> MyBox<[T]> { loop {} } |
