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#100630 - Enselic:export_extern_crate_as_sel…
…f, r=GuillaumeGomez rustdoc JSON: Fix ICE with `pub extern crate self as <self_crate_name>` Closes rust-lang#100531 r? `@GuillaumeGomez` `@rustbot` labels +A-rustdoc-json +T-rustdoc
- Loading branch information
Showing
2 changed files
with
13 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
11 changes: 11 additions & 0 deletions
11
src/test/rustdoc-json/reexport/export_extern_crate_as_self.rs
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 @@ | ||
//! Regression test for <https://github.com/rust-lang/rust/issues/100531> | ||
#![feature(no_core)] | ||
#![no_core] | ||
|
||
#![crate_name = "export_extern_crate_as_self"] | ||
|
||
// ignore-tidy-linelength | ||
|
||
// @is export_extern_crate_as_self.json "$.index[*][?(@.kind=='module')].name" \"export_extern_crate_as_self\" | ||
pub extern crate self as export_extern_crate_as_self; // Must be the same name as the crate already has |