rustdoc: remove redundant item kind class from .item-decl > pre
This class originated in the very first commit of `rustdoc_ng`, and was used
to add a color border around the item decl based on its kind.
4fd061c426/src/rustdoc_ng/html/static/main.css (L102-L106)
The item decl no longer has a border, and there aren't any
kind-specific styles in modern rustdoc's rendering of this UI item.
Most of this commit is updating test cases so that they use `item-decl` to
find the `<pre>` tag instead of relying on the fact that the class name
had `rust {kind}` in it while other `<pre>` tags only had class `rust`.
This commit is contained in:
parent
4b51adf6ff
commit
3a3f70c94e
63 changed files with 218 additions and 218 deletions
|
@ -4,37 +4,37 @@
|
|||
extern crate impl_trait_aux;
|
||||
|
||||
// @has impl_trait/fn.func.html
|
||||
// @has - '//pre[@class="rust fn"]' "pub fn func<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)"
|
||||
// @!has - '//pre[@class="rust fn"]' 'where'
|
||||
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "pub fn func<'a>(_x: impl Clone + Into<Vec<u8, Global>> + 'a)"
|
||||
// @!has - '//div[@class="item-decl"]/pre[@class="rust"]' 'where'
|
||||
pub use impl_trait_aux::func;
|
||||
|
||||
// @has impl_trait/fn.func2.html
|
||||
// @has - '//pre[@class="rust fn"]' "func2<T>("
|
||||
// @has - '//pre[@class="rust fn"]' "_x: impl Deref<Target = Option<T>> + Iterator<Item = T>,"
|
||||
// @has - '//pre[@class="rust fn"]' "_y: impl Iterator<Item = u8>)"
|
||||
// @!has - '//pre[@class="rust fn"]' 'where'
|
||||
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "func2<T>("
|
||||
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "_x: impl Deref<Target = Option<T>> + Iterator<Item = T>,"
|
||||
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "_y: impl Iterator<Item = u8>)"
|
||||
// @!has - '//div[@class="item-decl"]/pre[@class="rust"]' 'where'
|
||||
pub use impl_trait_aux::func2;
|
||||
|
||||
// @has impl_trait/fn.func3.html
|
||||
// @has - '//pre[@class="rust fn"]' "func3("
|
||||
// @has - '//pre[@class="rust fn"]' "_x: impl Iterator<Item = impl Iterator<Item = u8>> + Clone)"
|
||||
// @!has - '//pre[@class="rust fn"]' 'where'
|
||||
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "func3("
|
||||
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "_x: impl Iterator<Item = impl Iterator<Item = u8>> + Clone)"
|
||||
// @!has - '//div[@class="item-decl"]/pre[@class="rust"]' 'where'
|
||||
pub use impl_trait_aux::func3;
|
||||
|
||||
// @has impl_trait/fn.func4.html
|
||||
// @has - '//pre[@class="rust fn"]' "func4<T>("
|
||||
// @has - '//pre[@class="rust fn"]' "T: Iterator<Item = impl Clone>,"
|
||||
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "func4<T>("
|
||||
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "T: Iterator<Item = impl Clone>,"
|
||||
pub use impl_trait_aux::func4;
|
||||
|
||||
// @has impl_trait/fn.func5.html
|
||||
// @has - '//pre[@class="rust fn"]' "func5("
|
||||
// @has - '//pre[@class="rust fn"]' "_f: impl for<'any> Fn(&'any str, &'any str) -> bool + for<'r> Other<T<'r> = ()>,"
|
||||
// @has - '//pre[@class="rust fn"]' "_a: impl for<'alpha, 'beta> Auxiliary<'alpha, Item<'beta> = fn(_: &'beta ())>"
|
||||
// @!has - '//pre[@class="rust fn"]' 'where'
|
||||
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "func5("
|
||||
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "_f: impl for<'any> Fn(&'any str, &'any str) -> bool + for<'r> Other<T<'r> = ()>,"
|
||||
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "_a: impl for<'alpha, 'beta> Auxiliary<'alpha, Item<'beta> = fn(_: &'beta ())>"
|
||||
// @!has - '//div[@class="item-decl"]/pre[@class="rust"]' 'where'
|
||||
pub use impl_trait_aux::func5;
|
||||
|
||||
// @has impl_trait/fn.async_fn.html
|
||||
// @has - '//pre[@class="rust fn"]' "pub async fn async_fn()"
|
||||
// @has - '//div[@class="item-decl"]/pre[@class="rust"]' "pub async fn async_fn()"
|
||||
pub use impl_trait_aux::async_fn;
|
||||
|
||||
// @has impl_trait/struct.Foo.html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue