Skip to content

Commit b5a0367

Browse files
committed
add feature gates for eii(-internals)
1 parent 2775c09 commit b5a0367

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#![crate_type = "rlib"]
2+
#![feature(decl_macro)]
3+
#![feature(rustc_attrs)]
4+
5+
#[eii_macro_for(bar)] //~ ERROR use of unstable library feature `eii_internals`
6+
#[rustc_builtin_macro(eii_macro)]
7+
macro foo() {
8+
9+
}
10+
11+
unsafe extern "Rust" {
12+
safe fn bar(x: u64) -> u64;
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error[E0658]: use of unstable library feature `eii_internals`
2+
--> $DIR/feature-gate-eii-internals.rs:5:3
3+
|
4+
LL | #[eii_macro_for(bar)]
5+
| ^^^^^^^^^^^^^
6+
|
7+
= help: add `#![feature(eii_internals)]` to the crate attributes to enable
8+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
9+
10+
error: aborting due to 1 previous error
11+
12+
For more information about this error, try `rustc --explain E0658`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#![crate_type = "rlib"]
2+
3+
#[eii] //~ ERROR use of unstable library feature `eii`
4+
fn hello(x: u64);
5+
6+
#[hello]
7+
fn hello_impl(x: u64) {
8+
println!("{x:?}")
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
error[E0658]: use of unstable library feature `eii`
2+
--> $DIR/feature-gate-eii.rs:3:3
3+
|
4+
LL | #[eii]
5+
| ^^^
6+
|
7+
= note: see issue #125418 <https://github.com/rust-lang/rust/issues/125418> for more information
8+
= help: add `#![feature(eii)]` to the crate attributes to enable
9+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
10+
11+
error: aborting due to 1 previous error
12+
13+
For more information about this error, try `rustc --explain E0658`.

0 commit comments

Comments
 (0)