Step-by-step:
Add this simple eii function 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
Expected
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
Step-by-step:
eiifunction to library/std/src/lib.rs (like done in PR experiment: Add simple externally implementable item to std #150513):Expected
No errors.
Actual
More than 800
missing stability attributeerrors. See https://gist.github.com/Enselic/c643f454515db6f10caa7ab04045ab32 for all errors. The first three are:Context
I am looking into replacing
-Zon-broken-pipe=...with aneii. While doing so I encountered this problem. Tracking issue: #150588