compiles fine when proc_macro2 1.0.51 is in used (pinned in cargo.toml)
But with proc_macro2 1.0.52, the error is:
error[E0283]: type annotations needed
--> src/lib.rs:12:32
|
12 | quote::quote_spanned!(span.into() => hello);
| ---------------------------^^^^------------ required by a bound introduced by this call
|
= note: cannot satisfy `_: IntoSpan`
= help: the following types implement trait `IntoSpan`:
proc_macro2::extra::DelimSpan
quote::__private::Span
help: try using a fully qualified path to specify the expected types
|
12 | quote::quote_spanned!(<proc_macro::Span as Into<T>>::into(span) => hello);
| ++++++++++++++++++++++++++++++++++++ ~
Now, I understand this is easy to fix in the usage. But the crate is on crates.io and I'd like to avoid creating a new release if it can be easily fixed.
This code
compiles fine when proc_macro2 1.0.51 is in used (pinned in cargo.toml) But with proc_macro2 1.0.52, the error is:
Now, I understand this is easy to fix in the usage. But the crate is on crates.io and I'd like to avoid creating a new release if it can be easily fixed.