Skip to content

build fails with latest stable rust #136

@gitmalong

Description

@gitmalong

when building the client:

error[E0282]: type annotations needed
   --> /Users/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/time-0.3.40/src/duration.rs:936:54
    |
936 |         if nanoseconds >= Nanosecond::per(Second) as _ || seconds < 0 && nanoseconds > 0 {

when doing "cargo update" beforehand another errors shows up

error[E0283]: type annotations needed
   --> /Users/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plist-1.7.0/src/stream/binary_reader.rs:252:58
    |
252 |                 if value < 0 || value > u64::max_value().into() {
    |                                       -                  ^^^^
    |                                       |
    |                                       type must be known at this point
    |
    = note: multiple `impl`s satisfying `i128: PartialOrd<_>` found in the following crates: `core`, `deranged`:
            - impl PartialOrd for i128;
            - impl<MIN, MAX> PartialOrd<deranged::RangedI128<MIN, MAX>> for i128
              where the constant `MIN` has type `i128`, the constant `MAX` has type `i128`;
help: try using a fully qualified path to specify the expected types
    |
252 -                 if value < 0 || value > u64::max_value().into() {
252 +                 if value < 0 || value > <u64 as Into<T>>::into(u64::max_value()) {
    |

error[E0283]: type annotations needed
   --> /Users/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plist-1.7.0/src/stream/binary_reader.rs:252:58
    |
252 |                 if value < 0 || value > u64::max_value().into() {
    |                                                          ^^^^
    |
note: multiple `impl`s satisfying `_: From<u64>` found
   --> /Users/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plist-1.7.0/src/integer.rs:91:1
    |
91  | impl From<u64> for Integer {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
   ::: /Users/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/plist-1.7.0/src/value.rs:552:1
    |
552 | impl From<u64> for Value {
    | ^^^^^^^^^^^^^^^^^^^^^^^^
    = note: and more `impl`s found in the following crates: `core`:
            - impl From<u64> for AtomicU64;
            - impl From<u64> for i128;
            - impl From<u64> for u128;
    = note: required for `u64` to implement `Into<_>`
help: try using a fully qualified path to specify the expected types
    |
252 -                 if value < 0 || value > u64::max_value().into() {
252 +                 if value < 0 || value > <u64 as Into<T>>::into(u64::max_value()) {
    |

For more information about this error, try `rustc --explain E0283`.
error: could not compile `plist` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...

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