-
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.
Rollup merge of #98611 - GuillaumeGomez:rustdoc-json-glob-ice, r=notr…
…iddle Fix glob import ICE in rustdoc JSON format Fixes #98003. r? `@notriddle`
- Loading branch information
Showing
3 changed files
with
35 additions
and
2 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
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
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 *; | ||
} |