Rollup merge of #89735 - bjorn3:stabilize_proc_macro_is_available, r=petrochenkov

Stabilize proc_macro::is_available

Tracking issue: https://github.com/rust-lang/rust/issues/71436

The FCP for the stabilization of `proc_macro::is_available` has completed.
This commit is contained in:
Matthias Krüger 2021-10-10 18:22:26 +02:00 committed by GitHub
commit 4d89488c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 4 deletions

View File

@ -61,7 +61,7 @@ use std::{error, fmt, iter, mem};
/// non-panicking way to detect whether the infrastructure required to use the
/// API of proc_macro is presently available. Returns true if invoked from
/// 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 {
bridge::Bridge::is_available()
}

View File

@ -2,7 +2,6 @@
// no-prefer-dynamic
#![crate_type = "proc-macro"]
#![feature(proc_macro_is_available)]
extern crate proc_macro;

View File

@ -1,7 +1,5 @@
// run-pass
#![feature(proc_macro_is_available)]
extern crate proc_macro;
// aux-build:is-available.rs