diff options
| author | bors <bors@rust-lang.org> | 2022-09-22 01:41:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-22 01:41:03 +0000 |
| commit | 626b02a8f97a9e35a647aa18fcdb67cbcb3b09c8 (patch) | |
| tree | e22193ef46205ca9429e757fcd508cbe7eb9dd2f /src/test/rustdoc | |
| parent | 4a4fd12ebfd01d969a719e5c43c2e318441e827b (diff) | |
| parent | 15b4788e36a5ca55380cc88483a9a20198a5a381 (diff) | |
| download | rust-626b02a8f97a9e35a647aa18fcdb67cbcb3b09c8.tar.gz rust-626b02a8f97a9e35a647aa18fcdb67cbcb3b09c8.zip | |
Auto merge of #102121 - JohnTitor:rollup-3fb1wrt, r=JohnTitor
Rollup of 12 pull requests Successful merges: - #101952 (Avoid panicking on missing fallback) - #102030 (Don't crate-locally reexport walk functions in tidy) - #102032 (Adding ignore fuchsia tests for signal interpretation cases) - #102033 (Adding needs-unwind to nicer-assert-messages compiler ui tests) - #102054 (Unify "all items" page's sidebar with other pages) - #102071 (Adding needs-unwind for tests testing memory size of Futures/Closures) - #102073 (Adding ignore fuchsia tests for execvp) - #102075 (rustdoc: remove no-op CSS `.content > .methods > .method`) - #102079 (Update books) - #102084 (Adding needs-unwind for test using panic::catch_unwind) - #102100 (Prevent usage of .stab elements to create scrollable areas in doc blocks) - #102102 (Add doc aliases on Sized trait) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/sidebar-all-page.rs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/test/rustdoc/sidebar-all-page.rs b/src/test/rustdoc/sidebar-all-page.rs new file mode 100644 index 00000000000..e74b981de64 --- /dev/null +++ b/src/test/rustdoc/sidebar-all-page.rs @@ -0,0 +1,35 @@ +#![crate_name = "foo"] + +#![feature(rustdoc_internals)] + +// @has 'foo/all.html' +// @has - '//*[@class="sidebar-elems"]//li' 'Structs' +// @has - '//*[@class="sidebar-elems"]//li' 'Enums' +// @has - '//*[@class="sidebar-elems"]//li' 'Unions' +// @has - '//*[@class="sidebar-elems"]//li' 'Functions' +// @has - '//*[@class="sidebar-elems"]//li' 'Traits' +// @has - '//*[@class="sidebar-elems"]//li' 'Macros' +// @has - '//*[@class="sidebar-elems"]//li' 'Type Definitions' +// @has - '//*[@class="sidebar-elems"]//li' 'Constants' +// @has - '//*[@class="sidebar-elems"]//li' 'Statics' +// @has - '//*[@class="sidebar-elems"]//li' 'Primitive Types' + +pub struct Foo; +pub enum Enum { + A, +} +pub union Bar { + a: u8, + b: u16, +} +pub fn foo() {} +pub trait Trait {} +#[macro_export] +macro_rules! foo { + () => {} +} +pub type Type = u8; +pub const FOO: u8 = 0; +pub static BAR: u8 = 0; +#[doc(primitive = "u8")] +mod u8 {} |
