Skip to content

Commit 198a60b

Browse files
committed
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 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).
2 parents 763f4f9 + 2d10bab commit 198a60b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

mini-macro/src/lib.rs

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

tests/ui/auxiliary/proc_macro_derive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// no-prefer-dynamic
22

33
#![crate_type = "proc-macro"]
4-
#![feature(repr128, proc_macro_hygiene, proc_macro_quote)]
4+
#![feature(repr128, proc_macro_quote)]
55

66
extern crate proc_macro;
77

tests/ui/crashes/ice-3741.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// aux-build:proc_macro_crash.rs
22
// run-pass
33

4-
#![feature(proc_macro_hygiene)]
54
#![warn(clippy::suspicious_else_formatting)]
65

76
extern crate proc_macro_crash;

0 commit comments

Comments
 (0)