Closed davidedelpapa closed 3 years ago
Issue caused by incorrect use of a private method of upstream syn::export::Span.
syn::export::Span
With the commit https://github.com/dtolnay/syn/commit/957840eba2c7f11c95e0227760d78dc481a91de7 syn has further removed from the public API the export private interface, and thus the Span.
syn
export
Span
However, Span in sys was re-exported from crate proc_macro2.
sys
proc_macro2
The fix imports Span straight from proc_macro2 without sys intermediation.
Exactly what i needed Looking forward to merging
This change is necessary for the examples to be usable. :+1:
Issue caused by incorrect use of a private method of upstream
syn::export::Span
.With the commit https://github.com/dtolnay/syn/commit/957840eba2c7f11c95e0227760d78dc481a91de7
syn
has further removed from the public API theexport
private interface, and thus theSpan
.However,
Span
insys
was re-exported from crateproc_macro2
.The fix imports
Span
straight fromproc_macro2
withoutsys
intermediation.