Stabilize proc_macro::is_available
This commit is contained in:
parent
9e8356c6ad
commit
09dd213cd2
3 changed files with 1 additions and 4 deletions
|
@ -61,7 +61,7 @@ use std::{error, fmt, iter, mem};
|
||||||
/// non-panicking way to detect whether the infrastructure required to use the
|
/// non-panicking way to detect whether the infrastructure required to use the
|
||||||
/// API of proc_macro is presently available. Returns true if invoked from
|
/// API of proc_macro is presently available. Returns true if invoked from
|
||||||
/// inside of a procedural macro, false if invoked from any other binary.
|
/// inside of a procedural macro, false if invoked from any other binary.
|
||||||
#[unstable(feature = "proc_macro_is_available", issue = "71436")]
|
#[stable(feature = "proc_macro_is_available", since = "1.57.0")]
|
||||||
pub fn is_available() -> bool {
|
pub fn is_available() -> bool {
|
||||||
bridge::Bridge::is_available()
|
bridge::Bridge::is_available()
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
// no-prefer-dynamic
|
// no-prefer-dynamic
|
||||||
|
|
||||||
#![crate_type = "proc-macro"]
|
#![crate_type = "proc-macro"]
|
||||||
#![feature(proc_macro_is_available)]
|
|
||||||
|
|
||||||
extern crate proc_macro;
|
extern crate proc_macro;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
// run-pass
|
// run-pass
|
||||||
|
|
||||||
#![feature(proc_macro_is_available)]
|
|
||||||
|
|
||||||
extern crate proc_macro;
|
extern crate proc_macro;
|
||||||
|
|
||||||
// aux-build:is-available.rs
|
// aux-build:is-available.rs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue