Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stabilize proc_macro::is_available #89735

Merged
merged 1 commit into from
Oct 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
1 change: 0 additions & 1 deletion src/test/ui/proc-macro/auxiliary/is-available.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// no-prefer-dynamic

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

extern crate proc_macro;

Expand Down
2 changes: 0 additions & 2 deletions src/test/ui/proc-macro/is-available.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// run-pass

#![feature(proc_macro_is_available)]

extern crate proc_macro;

// aux-build:is-available.rs
Expand Down