Skip to content

Commit

Permalink
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
Browse files Browse the repository at this point in the history
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 rust-lang/rust#68716 ("Stabilize `Span::mixed_site`").

cc rust-lang/rust#54727
cc rust-lang/rust#54727 (comment)

Stabilization report: rust-lang/rust#68717 (comment).
  • Loading branch information
bors committed May 19, 2020
2 parents 763f4f9 + 2d10bab commit 198a60b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mini-macro/src/lib.rs
@@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/auxiliary/proc_macro_derive.rs
@@ -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;

Expand Down
1 change: 0 additions & 1 deletion tests/ui/crashes/ice-3741.rs
@@ -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;
Expand Down

0 comments on commit 198a60b

Please sign in to comment.