diff options
| author | bors <bors@rust-lang.org> | 2024-11-14 21:09:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-11-14 21:09:28 +0000 |
| commit | e84902d35a4d3039c794e139eb12fba3624c5ff1 (patch) | |
| tree | 1aa52c72ad2a2f79b5395f9887531b5359120a02 /tests/rustdoc-js | |
| parent | 90ab8eaedd3efd7919bffa7638db66e67df3f0b8 (diff) | |
| parent | d6a9ded560b314aaa190fb76e5794498f914c7dc (diff) | |
| download | rust-e84902d35a4d3039c794e139eb12fba3624c5ff1.tar.gz rust-e84902d35a4d3039c794e139eb12fba3624c5ff1.zip | |
Auto merge of #133047 - matthiaskrgr:rollup-9se1vth, r=matthiaskrgr
Rollup of 4 pull requests Successful merges: - #128197 (Skip locking span interner for some syntax context checks) - #133040 ([rustdoc] Fix handling of footnote reference in footnote definition) - #133043 (rustdoc-search: case-sensitive only when capitals are used) - #133046 (Clippy subtree update) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'tests/rustdoc-js')
| -rw-r--r-- | tests/rustdoc-js/case.js | 17 | ||||
| -rw-r--r-- | tests/rustdoc-js/case.rs | 7 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/rustdoc-js/case.js b/tests/rustdoc-js/case.js new file mode 100644 index 00000000000..22b970eb139 --- /dev/null +++ b/tests/rustdoc-js/case.js @@ -0,0 +1,17 @@ +const EXPECTED = [ + { + 'query': 'Foo', + 'others': [ + { 'path': 'case', 'name': 'Foo', 'desc': 'Docs for Foo' }, + { 'path': 'case', 'name': 'foo', 'desc': 'Docs for foo' }, + ], + }, + { + 'query': 'foo', + 'others': [ + // https://github.com/rust-lang/rust/issues/133017 + { 'path': 'case', 'name': 'Foo', 'desc': 'Docs for Foo' }, + { 'path': 'case', 'name': 'foo', 'desc': 'Docs for foo' }, + ], + }, +]; diff --git a/tests/rustdoc-js/case.rs b/tests/rustdoc-js/case.rs new file mode 100644 index 00000000000..532edd55f1d --- /dev/null +++ b/tests/rustdoc-js/case.rs @@ -0,0 +1,7 @@ +#![allow(nonstandard_style)] + +/// Docs for Foo +pub struct Foo; + +/// Docs for foo +pub struct foo; |
