Skip to content

Commit 4d89488

Browse files
authored
Rollup merge of rust-lang#89735 - bjorn3:stabilize_proc_macro_is_available, r=petrochenkov
Stabilize proc_macro::is_available Tracking issue: rust-lang#71436 The FCP for the stabilization of `proc_macro::is_available` has completed.
2 parents c8b5a7b + 09dd213 commit 4d89488

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

library/proc_macro/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ use std::{error, fmt, iter, mem};
6161
/// non-panicking way to detect whether the infrastructure required to use the
6262
/// API of proc_macro is presently available. Returns true if invoked from
6363
/// inside of a procedural macro, false if invoked from any other binary.
64-
#[unstable(feature = "proc_macro_is_available", issue = "71436")]
64+
#[stable(feature = "proc_macro_is_available", since = "1.57.0")]
6565
pub fn is_available() -> bool {
6666
bridge::Bridge::is_available()
6767
}

src/test/ui/proc-macro/auxiliary/is-available.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// no-prefer-dynamic
33

44
#![crate_type = "proc-macro"]
5-
#![feature(proc_macro_is_available)]
65

76
extern crate proc_macro;
87

src/test/ui/proc-macro/is-available.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// run-pass
22

3-
#![feature(proc_macro_is_available)]
4-
53
extern crate proc_macro;
64

75
// aux-build:is-available.rs

0 commit comments

Comments
 (0)