Skip to content

v0.3.0 build on nightly fails to compile enum-utils crate #811

Closed

Description

@taylorthurlow
...
Compiling enum-utils v0.1.1
error[E0369]: binary operation `!=` cannot be applied to type `syn::data::Fields`
   --> /Users/taylorthurlow/.cargo/registry/src/github.com-1ecc6299db9ec823/enum-utils-0.1.1/src/attr.rs:345:25
    |
345 |             if v.fields != syn::Fields::Unit {
    |                -------- ^^ ----------------- syn::data::Fields
    |                |
    |                syn::data::Fields
    |
    = note: an implementation of `std::cmp::PartialEq` might be missing for `syn::data::Fields`

error[E0369]: binary operation `!=` cannot be applied to type `syn::data::Fields`
  --> /Users/taylorthurlow/.cargo/registry/src/github.com-1ecc6299db9ec823/enum-utils-0.1.1/src/iter.rs:76:29
   |
76 |                 if v.fields != syn::Fields::Unit {
   |                    -------- ^^ ----------------- syn::data::Fields
   |                    |
   |                    syn::data::Fields
   |
   = note: an implementation of `std::cmp::PartialEq` might be missing for `syn::data::Fields`

error[E0369]: binary operation `!=` cannot be applied to type `syn::data::Fields`
  --> /Users/taylorthurlow/.cargo/registry/src/github.com-1ecc6299db9ec823/enum-utils-0.1.1/src/from_str.rs:27:25
   |
27 |             if v.fields != syn::Fields::Unit {
   |                -------- ^^ ----------------- syn::data::Fields
   |                |
   |                syn::data::Fields
   |
   = note: an implementation of `std::cmp::PartialEq` might be missing for `syn::data::Fields`

error[E0369]: binary operation `!=` cannot be applied to type `syn::data::Fields`
  --> /Users/taylorthurlow/.cargo/registry/src/github.com-1ecc6299db9ec823/enum-utils-0.1.1/src/conv.rs:22:21
   |
22 |         if v.fields != syn::Fields::Unit {
   |            -------- ^^ ----------------- syn::data::Fields
   |            |
   |            syn::data::Fields
   |
   = note: an implementation of `std::cmp::PartialEq` might be missing for `syn::data::Fields`

error[E0369]: binary operation `!=` cannot be applied to type `syn::data::Fields`
  --> /Users/taylorthurlow/.cargo/registry/src/github.com-1ecc6299db9ec823/enum-utils-0.1.1/src/conv.rs:83:21
   |
83 |         if v.fields != syn::Fields::Unit {
   |            -------- ^^ ----------------- syn::data::Fields
   |            |
   |            syn::data::Fields
   |
   = note: an implementation of `std::cmp::PartialEq` might be missing for `syn::data::Fields`

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0369`.
error: could not compile `enum-utils`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `nu v0.3.0`, intermediate artifacts can be found at `/var/folders/99/wjx6q9q17593vl04l8jls0740000gn/T/cargo-install4YMmfp`

Caused by:
  build failed

I'm building this on macOS 10.14.6. I'd open an issue in the enum-utils repo but it seems like I'll probably get a quicker response here, and I'm sure if other people have this issue, they'll look here.

Activity

  1. nikolaof commented on Oct 12, 2019

    @nikolaof

    I'm dealing with this error too in Arch linux.

  2. sophiajt commented on Oct 13, 2019

    @sophiajt
    Contributor

    I wonder if one of the dependencies had a semver-incompatible change. Taking a look

  3. added 3 commits that reference this issue on Oct 13, 2019
    49a68dc
    9a3de59
    040744d
  4. added a commit that references this issue on Oct 13, 2019
    2716bb0
  5. added 2 commits that reference this issue on Oct 14, 2019
    267c9ec
    dccb16a
  6. added a commit that references this issue on Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions