Skip to content

Commit

Permalink
Merge proc_macro_span_shrink and proc_macro_span
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Jun 20, 2023
1 parent cd1c1b1 commit abd0677
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions library/proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/proc-macro/auxiliary/macro-only-syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit abd0677

Please sign in to comment.