Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
006ca9b14da1e0145844598b3d6a554c042c702a
rust/tests/rustdoc/const-generics/const-generic-defaults.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
249 B
Rust
Raw Normal View History

add test
2021-06-03 09:40:07 +01:00
#![crate_name = "foo"]
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. https://github.com/rust-lang/rust/blob/4fd061c426902b0904c65e64a3780b21f9ab3afb/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`.
2023-01-14 10:58:55 -07:00
// @has foo/struct.Foo.html '//div[@class="item-decl"]/pre[@class="rust"]' \
tests: fix `rustdoc` tests
2022-07-19 03:46:32 +03:00
// 'pub struct Foo<const M: usize = 10, const N: usize = M, T = i32>(_);'
add test
2021-06-03 09:40:07 +01:00
pub struct Foo<const M: usize = 10, const N: usize = M, T = i32>(T);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 495ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API