1
Fork 0

added byte position range for proc_macro::Span

This commit is contained in:
Michael van Straten 2023-03-10 21:19:07 +01:00
parent b8c6d2211e
commit 3dbeb69503

View file

@ -488,7 +488,7 @@ impl Span {
Span(self.0.source()) Span(self.0.source())
} }
/// Returns the spans byte position range in the source file. /// Returns the span's byte position range in the source file.
#[unstable(feature = "proc_macro_span", issue = "54725")] #[unstable(feature = "proc_macro_span", issue = "54725")]
pub fn position(&self) -> Range<u32> { pub fn position(&self) -> Range<u32> {
self.0.position() self.0.position()