-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-extern_item_impls`#![feature(extern_item_impls)]``#![feature(extern_item_impls)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Step-by-step:
- Add this simple
eiifunction to library/std/src/lib.rs (like done in PR experiment: Add simple externally implementable item to std #150513):
#![feature(extern_item_impls)]
// ...
#[unstable(feature = "extern_item_impls", issue = "125418")]
#[eii]
pub fn changed_with_eii() -> bool {
false
}- Try to build
./x build library/stdExpected
No errors.
Actual
More than 800 missing stability attribute errors. See https://gist.github.com/Enselic/c643f454515db6f10caa7ab04045ab32 for all errors. The first three are:
$ ./x build library/std
Compiling std v0.0.0 (/home/martin/src/rust-eii-unix-sigpipe/library/std)
error: attribute macro has missing stability attribute
--> library/std/src/lib.rs:766:1
|
766 | #[eii]
| ^^^^^^ in this attribute macro expansion
|
::: library/core/src/macros/mod.rs:1899:5
|
1899 | pub macro eii($item:item) {
| ------------- in this expansion of `#[eii]`
error: function has missing stability attribute
--> library/std/src/io/stdio.rs:726:1
|
726 | pub fn cleanup() {
| ^^^^^^^^^^^^^^^^
error: module has missing stability attribute
--> library/std/src/sys/mod.rs:16:1
|
16 | pub mod args;
| ^^^^^^^^^^^^Context
I am looking into replacing -Zon-broken-pipe=... with an eii. While doing so I encountered this problem. Tracking issue: #150588
fmease
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-extern_item_impls`#![feature(extern_item_impls)]``#![feature(extern_item_impls)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.