Auto merge of #68717 - petrochenkov:stabexpat, r=varkor

Stabilize fn-like proc macros in expression, pattern and statement positions

I.e. all the positions in which stable `macro_rules` macros are supported.

Depends on https://github.com/rust-lang/rust/pull/68716 ("Stabilize `Span::mixed_site`").

cc https://github.com/rust-lang/rust/issues/54727
cc https://github.com/rust-lang/rust/issues/54727#issuecomment-580647446

Stabilization report: https://github.com/rust-lang/rust/pull/68717#issuecomment-623197503.
This commit is contained in:
bors 2020-05-19 03:11:32 +00:00
commit 8164832c4b
3 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#![feature(proc_macro_quote, proc_macro_hygiene)]
#![feature(proc_macro_quote)]
#![deny(rust_2018_idioms)]
// FIXME: Remove this attribute once the weird failure is gone.
#![allow(unused_extern_crates)]

View File

@ -1,7 +1,7 @@
// no-prefer-dynamic
#![crate_type = "proc-macro"]
#![feature(repr128, proc_macro_hygiene, proc_macro_quote)]
#![feature(repr128, proc_macro_quote)]
extern crate proc_macro;

View File

@ -1,7 +1,6 @@
// aux-build:proc_macro_crash.rs
// run-pass
#![feature(proc_macro_hygiene)]
#![warn(clippy::suspicious_else_formatting)]
extern crate proc_macro_crash;