-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression test for glob import ICE in rustdoc JSON
- Loading branch information
1 parent
b7e6200
commit c2221ef
Showing
1 changed file
with
24 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,24 @@ | ||
// This is a regression test for <https://github.com/rust-lang/rust/issues/98003>. | ||
|
||
#![feature(no_core)] | ||
#![no_std] | ||
#![no_core] | ||
|
||
// @has glob_import.json | ||
// @has - "$.index[*][?(@.name=='glob')]" | ||
// @has - "$.index[*][?(@.kind=='import')].inner.name" \"*\" | ||
|
||
|
||
mod m1 { | ||
pub fn f() {} | ||
} | ||
mod m2 { | ||
pub fn f(_: u8) {} | ||
} | ||
|
||
pub use m1::*; | ||
pub use m2::*; | ||
|
||
pub mod glob { | ||
pub use *; | ||
} |