Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse_quote_spanned macro name-collides with syn::parse_quote_spanned #338

Closed
KiChjang opened this issue Jan 14, 2022 · 1 comment
Closed
Labels
C-question Category: A question

Comments

@KiChjang
Copy link

Per title, this is the error that gets generated while trying to upgrade to syn 1.0.85:

error[E0659]: `parse_quote_spanned` is ambiguous (`macro_rules` vs non-`macro_rules` from other module)
   --> /usr/local/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
   --> /usr/local/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
   --> /usr/local/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
@taiki-e
Copy link
Owner

taiki-e commented Jan 14, 2022

Duplicate of #337. Please read #335 and #337 (comment)

@taiki-e taiki-e closed this as completed Jan 14, 2022
@taiki-e taiki-e added the C-question Category: A question label Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-question Category: A question
Projects
None yet
Development

No branches or pull requests

2 participants