forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
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#59047 - petrochenkov:modnodefid, r=Centril
resolve: Account for new importable entities Fixes the ICE encountered in rust-lang#58837 r? @Centril
- Loading branch information
Showing
4 changed files
with
49 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// edition:2018 | ||
|
||
pub use ignore as built_in_attr; | ||
pub use u8 as built_in_type; | ||
pub use rustfmt as tool_mod; |
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 @@ | ||
// edition:2018 | ||
// aux-build:cross-crate.rs | ||
|
||
extern crate cross_crate; | ||
use cross_crate::*; | ||
|
||
#[built_in_attr] //~ ERROR cannot use a built-in attribute through an import | ||
#[tool_mod::skip] //~ ERROR cannot use a tool module through an import | ||
fn main() { | ||
let _: built_in_type; // OK | ||
} |
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,26 @@ | ||
error: cannot use a built-in attribute through an import | ||
--> $DIR/cross-crate.rs:7:3 | ||
| | ||
LL | #[built_in_attr] //~ ERROR cannot use a built-in attribute through an import | ||
| ^^^^^^^^^^^^^ | ||
| | ||
note: the built-in attribute imported here | ||
--> $DIR/cross-crate.rs:5:5 | ||
| | ||
LL | use cross_crate::*; | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: cannot use a tool module through an import | ||
--> $DIR/cross-crate.rs:8:3 | ||
| | ||
LL | #[tool_mod::skip] //~ ERROR cannot use a tool module through an import | ||
| ^^^^^^^^ | ||
| | ||
note: the tool module imported here | ||
--> $DIR/cross-crate.rs:5:5 | ||
| | ||
LL | use cross_crate::*; | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
|