From abd0677d2f5e348796055e609cf640ea38964059 Mon Sep 17 00:00:00 2001 From: Jacob Pratt Date: Tue, 6 Jun 2023 15:02:34 -0400 Subject: [PATCH] Merge proc_macro_span_shrink and proc_macro_span --- library/proc_macro/src/lib.rs | 4 ++-- tests/ui/proc-macro/auxiliary/macro-only-syntax.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/proc_macro/src/lib.rs b/library/proc_macro/src/lib.rs index cb8b7ec70e0..7fb0d989cdb 100644 --- a/library/proc_macro/src/lib.rs +++ b/library/proc_macro/src/lib.rs @@ -494,13 +494,13 @@ pub fn byte_range(&self) -> Range { } /// Creates an empty span pointing to directly before this span. - #[unstable(feature = "proc_macro_span_shrink", issue = "87552")] + #[unstable(feature = "proc_macro_span", issue = "54725")] pub fn start(&self) -> Span { Span(self.0.start()) } /// Creates an empty span pointing to directly after this span. - #[unstable(feature = "proc_macro_span_shrink", issue = "87552")] + #[unstable(feature = "proc_macro_span", issue = "54725")] pub fn end(&self) -> Span { Span(self.0.end()) } diff --git a/tests/ui/proc-macro/auxiliary/macro-only-syntax.rs b/tests/ui/proc-macro/auxiliary/macro-only-syntax.rs index faa8cfdb5ab..4ca3a0faa27 100644 --- a/tests/ui/proc-macro/auxiliary/macro-only-syntax.rs +++ b/tests/ui/proc-macro/auxiliary/macro-only-syntax.rs @@ -10,7 +10,7 @@ // lossy string reparse hack (https://github.com/rust-lang/rust/issues/43081). #![crate_type = "proc-macro"] -#![feature(proc_macro_span, proc_macro_span_shrink)] +#![feature(proc_macro_span)] extern crate proc_macro; use proc_macro::{token_stream, Delimiter, TokenStream, TokenTree};