Skip to content

Commit

Permalink
Rollup merge of #133133 - notriddle:notriddle/trailing-test, r=Guilla…
Browse files Browse the repository at this point in the history
…umeGomez

rustdoc-search: add standalone trailing `::` test

Follow up for #132569

r? `@GuillaumeGomez`
  • Loading branch information
jhpratt authored Nov 18, 2024
2 parents fc4f71d + fa2e214 commit 8600e57
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/rustdoc-js/trailing.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// exact-check
const EXPECTED = {
'query': 'inner::',
'others': [
{ 'path': 'trailing::inner', 'name': 'function' },
],
}
3 changes: 3 additions & 0 deletions tests/rustdoc-js/trailing.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub mod inner {
pub fn function() {}
}

0 comments on commit 8600e57

Please sign in to comment.