added byte position range for proc_macro::Span
This commit is contained in:
parent
b8c6d2211e
commit
3dbeb69503
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue