You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Rust Nightly proc_macro::Span has a method byte_range(). Having access to byte offsets in addition to (line, column) information is useful to some applications, including my own. I understand that byte_range() is currently only available in the nightly version, but proc_macro2::Span could expose byte offsets today when used in a main.rs context.
David, would you accept a PR that exposes byte offsets via proc_macro2::Span?
The text was updated successfully, but these errors were encountered:
In Rust Nightly
proc_macro::Span
has a method byte_range(). Having access to byte offsets in addition to(line, column)
information is useful to some applications, including my own. I understand thatbyte_range()
is currently only available in the nightly version, butproc_macro2::Span
could expose byte offsets today when used in amain.rs
context.David, would you accept a PR that exposes byte offsets via
proc_macro2::Span
?The text was updated successfully, but these errors were encountered: