Skip to content

Commit

Permalink
Rollup merge of rust-lang#68716 - petrochenkov:stabmixed, r=dtolnay
Browse files Browse the repository at this point in the history
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).
Dylan-DPC authored Apr 27, 2020
2 parents e83f756 + f5223a3 commit 9d00252
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/libproc_macro/lib.rs
Original file line number Diff line number Diff line change
@@ -303,7 +303,7 @@ impl Span {
/// definition site (local variables, labels, `$crate`) and sometimes at the macro
/// call site (everything else).
/// The span location is taken from the call-site.
#[unstable(feature = "proc_macro_mixed_site", issue = "65049")]
#[stable(feature = "proc_macro_mixed_site", since = "1.45.0")]
pub fn mixed_site() -> Span {
Span(bridge::client::Span::mixed_site())
}
1 change: 0 additions & 1 deletion src/test/ui/proc-macro/auxiliary/mixed-site-span.rs
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
// no-prefer-dynamic

#![feature(proc_macro_hygiene)]
#![feature(proc_macro_mixed_site)]
#![feature(proc_macro_quote)]

#![crate_type = "proc-macro"]

0 comments on commit 9d00252

Please sign in to comment.