gnzlbg / cargo-asm

cargo subcommand showing the assembly or llvm-ir generated for Rust code
https://github.com/gnzlbg/cargo-asm
Other
1.17k stars 36 forks source link

Unable to install on rust-nightly (rustc 1.38.0-nightly (cd2cd4c96 2019-07-10)) #130

Closed dignifiedquire closed 5 years ago

dignifiedquire commented 5 years ago

Trying to run cargo install cargo-asm with rust version rustc 1.38.0-nightly (cd2cd4c96 2019-07-10)

error[E0433]: failed to resolve: unresolved import
   --> /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/ast.rs:142:44
    |
142 |     variants: &'a Punctuated<syn::Variant, Token![,]>,
    |                                            ^^^^^^^^^
    |                                            |
    |                                            unresolved import
    |                                            help: a similar path exists: `syn::token`
    |
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
   --> /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/ast.rs:187:40
    |
187 |     fields: &'a Punctuated<syn::Field, Token![,]>,
    |                                        ^^^^^^^^^
    |                                        |
    |                                        unresolved import
    |                                        help: a similar path exists: `syn::token`
    |
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
    --> /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1542:44
     |
1542 |     metas: &'a Punctuated<syn::NestedMeta, Token![,]>,
     |                                            ^^^^^^^^^
     |                                            |
     |                                            unresolved import
     |                                            help: a similar path exists: `syn::token`
     |
     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
    --> /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1586:44
     |
1586 |     items: &'a Punctuated<syn::NestedMeta, Token![,]>,
     |                                            ^^^^^^^^^
     |                                            |
     |                                            unresolved import
     |                                            help: a similar path exists: `syn::token`
     |
     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
    --> /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1594:44
     |
1594 |     items: &'a Punctuated<syn::NestedMeta, Token![,]>,
     |                                            ^^^^^^^^^
     |                                            |
     |                                            unresolved import
     |                                            help: a similar path exists: `syn::token`
     |
     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
    --> /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1602:41
     |
1602 |     items: &Punctuated<syn::NestedMeta, Token![,]>,
     |                                         ^^^^^^^^^
     |                                         |
     |                                         unresolved import
     |                                         help: a similar path exists: `syn::token`
     |
     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
    --> /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1702:56
     |
1702 |     struct BorrowedLifetimes(Punctuated<syn::Lifetime, Token![+]>);
     |                                                        ^^^^^^^^^
     |                                                        |
     |                                                        unresolved import
     |                                                        help: a similar path exists: `syn::token`
     |
     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
   --> /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/bound.rs:198:31
    |
198 |                 colon_token: <Token![:]>::default(),
    |                               ^^^^^^^^^
    |                               |
    |                               unresolved import
    |                               help: a similar path exists: `syn::token`
    |
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
   --> /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/bound.rs:232:27
    |
232 |             colon_token: <Token![:]>::default(),
    |                           ^^^^^^^^^
    |                           |
    |                           unresolved import
    |                           help: a similar path exists: `syn::token`
    |
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
   --> /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/bound.rs:289:36
    |
289 |                         lt_token: <Token![<]>::default(),
    |                                    ^^^^^^^^^
    |                                    |
    |                                    unresolved import
    |                                    help: a similar path exists: `syn::token`
    |
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
   --> /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/bound.rs:309:36
    |
309 |                         gt_token: <Token![>]>::default(),
    |                                    ^^^^^^^^^
    |                                    |
    |                                    unresolved import
    |                                    help: a similar path exists: `syn::token`
    |
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
  --> /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/fragment.rs:58:18
   |
58 |                 <Token![,]>::default().to_tokens(out);
   |                  ^^^^^^^^^
   |                  |
   |                  unresolved import
   |                  help: a similar path exists: `syn::token`
   |
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to 12 previous errors

For more information about this error, try `rustc --explain E0433`.
error: Could not compile `serde_derive`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-asm v0.1.16`, intermediate artifacts can be found at `/var/folders/j_/_x78zhks02s3sg861j1lt2qw0000gn/T/cargo-installE9kvTd`

Caused by:
  build failed
dignifiedquire commented 5 years ago

looks like a compiler bug: https://github.com/rust-lang/rust/issues/62562

gnzlbg commented 5 years ago

It's a known compiler bug, the fix is already in master. Next nightly should be ok, otherwise feel free to reopen and update us.