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

Compilation failed #1936

Open
fr0ster opened this issue Jan 29, 2023 · 1 comment
Open

Compilation failed #1936

fr0ster opened this issue Jan 29, 2023 · 1 comment

Comments

@fr0ster
Copy link

fr0ster commented Jan 29, 2023

Environment:

debian bullseye
cargo 1.67.0 (8ecd4f20a 2023-01-10)
version @master branch
   Compiling actix-macros v0.1.3
error[E0659]: `parse_quote_spanned` is ambiguous
   --> /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-internal-0.4.28/src/pin_project/derive.rs:865:67
    |
865 |                 proj_generics.make_where_clause().predicates.push(parse_quote_spanned! { span =>
    |                                                                   ^^^^^^^^^^^^^^^^^^^ ambiguous name
    |
    = note: ambiguous because of a conflict between a `macro_rules` name and a non-`macro_rules` name from another module
note: `parse_quote_spanned` could refer to the macro defined here
   --> /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-internal-0.4.28/src/utils.rs:23:1
    |
23  | / macro_rules! parse_quote_spanned {
24  | |     ($span:expr => $($tt:tt)*) => {
25  | |         syn::parse2(quote::quote_spanned!($span => $($tt)*)).unwrap_or_else(|e| panic!("{}", e))
26  | |     };
27  | | }
    | |_^
note: `parse_quote_spanned` could also refer to the macro imported here
   --> /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-internal-0.4.28/src/pin_project/derive.rs:7:5
    |
7   |     *,
    |     ^
    = help: use `self::parse_quote_spanned` to refer to this macro unambiguously

error[E0659]: `parse_quote_spanned` is ambiguous
   --> /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-internal-0.4.28/src/pinned_drop.rs:108:21
    |
108 |             *path = parse_quote_spanned! { path.span() =>
    |                     ^^^^^^^^^^^^^^^^^^^ ambiguous name
    |
    = note: ambiguous because of a conflict between a `macro_rules` name and a non-`macro_rules` name from another module
note: `parse_quote_spanned` could refer to the macro defined here
   --> /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-internal-0.4.28/src/utils.rs:23:1
    |
23  | / macro_rules! parse_quote_spanned {
24  | |     ($span:expr => $($tt:tt)*) => {
25  | |         syn::parse2(quote::quote_spanned!($span => $($tt)*)).unwrap_or_else(|e| panic!("{}", e))
26  | |     };
27  | | }
    | |_^
note: `parse_quote_spanned` could also refer to the macro imported here
   --> /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-internal-0.4.28/src/pinned_drop.rs:3:50
    |
3   | use syn::{spanned::Spanned, visit_mut::VisitMut, *};
    |                                                  ^
    = help: use `self::parse_quote_spanned` to refer to this macro unambiguously

   Compiling thiserror-impl v1.0.30
For more information about this error, try `rustc --explain E0659`.
error: could not compile `pin-project-internal` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
make: *** [Makefile:43: build-backend] Error 101
@hlmu
Copy link

hlmu commented Mar 12, 2023

A cargo update fixed my issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants