rust-qt / ritual

Use C++ libraries from Rust
Apache License 2.0
1.22k stars 49 forks source link

Fix #107 by switching to proc_macro2::Span #108

Closed davidedelpapa closed 3 years ago

davidedelpapa commented 3 years ago

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 the export private interface, and thus the Span.

However, Span in sys was re-exported from crate proc_macro2.

The fix imports Span straight from proc_macro2 without sys intermediation.

Heavenston commented 3 years ago

Exactly what i needed Looking forward to merging

CicadaCinema commented 3 years ago

This change is necessary for the examples to be usable. :+1: