Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/test/rustdoc-js/reexport.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// exact-check

const QUERY = ['Subscriber', 'AnotherOne'];

const EXPECTED = [
{
'others': [
{ 'path': 'reexport::fmt', 'name': 'Subscriber' },
{ 'path': 'reexport', 'name': 'FmtSubscriber' },
],
},
{
'others': [
{ 'path': 'reexport', 'name': 'AnotherOne' },
],
},
];
11 changes: 11 additions & 0 deletions src/test/rustdoc-js/reexport.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This test enforces that the (renamed) reexports are present in the search results.

pub mod fmt {
pub struct Subscriber;
}
mod foo {
pub struct AnotherOne;
}

pub use foo::AnotherOne;
pub use fmt::Subscriber as FmtSubscriber;