Merge proc_macro_span_shrink and proc_macro_span

This commit is contained in:
Jacob Pratt 2023-06-06 15:02:34 -04:00
parent cd1c1b1a9f
commit abd0677d2f
No known key found for this signature in database
GPG Key ID: 6E2E55C5F9ABB247
2 changed files with 3 additions and 3 deletions

View File

@ -494,13 +494,13 @@ pub fn byte_range(&self) -> Range<usize> {
}
/// 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())
}

View File

@ -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};