diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2023-06-06 15:02:34 -0400 |
|---|---|---|
| committer | Jacob Pratt <jacob@jhpratt.dev> | 2023-06-20 19:40:26 -0400 |
| commit | abd0677d2f5e348796055e609cf640ea38964059 (patch) | |
| tree | 443f5e56a9befe653b0328e1d1458e69f74f9061 | |
| parent | cd1c1b1a9f0f1c67e3ea23e691ce082294b9b026 (diff) | |
| download | rust-abd0677d2f5e348796055e609cf640ea38964059.tar.gz rust-abd0677d2f5e348796055e609cf640ea38964059.zip | |
Merge proc_macro_span_shrink and proc_macro_span
| -rw-r--r-- | library/proc_macro/src/lib.rs | 4 | ||||
| -rw-r--r-- | 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 @@ impl Span { } /// 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}; |
