Skip to content

Commit 9d00252

Browse files
authored
Rollup merge of rust-lang#68716 - petrochenkov:stabmixed, r=dtolnay
Stabilize `Span::mixed_site` Closes rust-lang#65049. cc rust-lang#54727 (comment) Pre-requisite for rust-lang#68717 ("Stabilize fn-like proc macros in expression, pattern and statement positions"). Stabilization report: rust-lang#68716 (comment).
2 parents e83f756 + f5223a3 commit 9d00252

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/libproc_macro/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ impl Span {
303303
/// definition site (local variables, labels, `$crate`) and sometimes at the macro
304304
/// call site (everything else).
305305
/// The span location is taken from the call-site.
306-
#[unstable(feature = "proc_macro_mixed_site", issue = "65049")]
306+
#[stable(feature = "proc_macro_mixed_site", since = "1.45.0")]
307307
pub fn mixed_site() -> Span {
308308
Span(bridge::client::Span::mixed_site())
309309
}

src/test/ui/proc-macro/auxiliary/mixed-site-span.rs

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

44
#![feature(proc_macro_hygiene)]
5-
#![feature(proc_macro_mixed_site)]
65
#![feature(proc_macro_quote)]
76

87
#![crate_type = "proc-macro"]

0 commit comments

Comments
 (0)