forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#103758 - GuillaumeGomez:reexports-search-re…
…sult-test, r=notriddle Add regression test for reexports in search results Fixes rust-lang#86337. r? `@notriddle`
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' }, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |