Closed
Description
Environment:
pin-project 1.09, with dependency on pin-project-internal 0.4.27
Windows 10. rustc 1.57.0 (f1edd0429 2021-11-29)
error[E0659]: `parse_quote_spanned` is ambiguous (`macro_rules` vs non-`macro_rules` from other module)
--> \.cargo\registry\src\github.com-1ecc6299db9ec823\pin-project-internal-0.4.27\src\pin_project\derive.rs:865:67
|
865 | proj_generics.make_where_clause().predicates.push(parse_quote_spanned! { span =>
| ^^^^^^^^^^^^^^^^^^^ ambiguous name
|
note: `parse_quote_spanned` could refer to the macro defined here
--> \.cargo\registry\src\github.com-1ecc6299db9ec823\pin-project-internal-0.4.27\src\utils.rs:22:1
|
22 | / macro_rules! parse_quote_spanned {
23 | | ($span:expr => $($tt:tt)*) => {
24 | | syn::parse2(quote::quote_spanned!($span => $($tt)*)).unwrap_or_else(|e| panic!("{}", e))
25 | | };
26 | | }
| |_^
note: `parse_quote_spanned` could also refer to the macro imported here
--> \.cargo\registry\src\github.com-1ecc6299db9ec823\pin-project-internal-0.4.27\src\pin_project\derive.rs:7:5
|
7 | *,
| ^
= help: use `self::parse_quote_spanned` to refer to this macro unambiguously