Skip to content

fails to build on nightly #17

Closed
Closed
@gnzlbg

Description

@gnzlbg

The failures have broken libc's CI: https://cirrus-ci.com/task/6019469988593664?command=test#L802

   Running `LD_LIBRARY_PATH='/tmp/cirrus-ci-build/target/debug/deps:/.rustup/toolchains/nightly-x86_64-unknown-freebsd/lib:/.rustup/toolchains/nightly-x86_64-unknown-freebsd/lib' CARGO=/.rustup/toolchains/nightly-x86_64-unknown-freebsd/bin/cargo CARGO_PKG_VERSION_PRE= OUT_DIR=/tmp/cirrus-ci-build/target/debug/build/extprim-5e5a52523eb5ec17/out CARGO_PKG_DESCRIPTION='Extra primitive types (u128, i128)' CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_NAME=extprim CARGO_PKG_AUTHORS='kennytm <[email protected]>' CARGO_PKG_HOMEPAGE= CARGO_PKG_VERSION_MINOR=7 CARGO_MANIFEST_DIR=/.cargo/registry/src/github.com-1ecc6299db9ec823/extprim-1.7.0 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION=1.7.0 CARGO_PKG_REPOSITORY='https://github.com/kennytm/extprim' rustc --crate-name extprim /.cargo/registry/src/github.com-1ecc6299db9ec823/extprim-1.7.0/src/lib.rs --color never --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="rand"' --cfg 'feature="serde"' --cfg 'feature="use-std"' -C metadata=c4fcad300f905e65 -C extra-filename=-c4fcad300f905e65 --out-dir /tmp/cirrus-ci-build/target/debug/deps -L dependency=/tmp/cirrus-ci-build/target/debug/deps --extern num_traits=/tmp/cirrus-ci-build/target/debug/deps/libnum_traits-d7ad901a1da51360.rlib --extern rand=/tmp/cirrus-ci-build/target/debug/deps/librand-d89ed4fe529ebdac.rlib --extern serde=/tmp/cirrus-ci-build/target/debug/deps/libserde-7727c95b4cb5c292.rlib --cap-lints warn --cfg 'extprim_channel="unstable"' --cfg extprim_has_stable_i128`
error: `X...` range patterns are not supported
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/extprim-1.7.0/src/traits.rs:94:21
    |
94  |                     1 ... $e => u128::new(mantissa) << exp,
    |                     ^^^^^ help: try using the maximum value for the type: `1...MAX`
...
117 | impl_to_extra_primitive_for_float!(f32, 23, 104, 103);
    | ------------------------------------------------------ in this macro invocation
error: expected one of `=>`, `if`, or `|`, found `104`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/extprim-1.7.0/src/traits.rs:94:27
    |
94  |                     1 ... $e => u128::new(mantissa) << exp,
    |                           ^^ expected one of `=>`, `if`, or `|` here
...
117 | impl_to_extra_primitive_for_float!(f32, 23, 104, 103);
    | ------------------------------------------------------ in this macro invocation
error: `X...` range patterns are not supported
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/extprim-1.7.0/src/traits.rs:103:21
    |
103 |                     1 ... $f => u128::new(mantissa) << exp,
    |                     ^^^^^ help: try using the maximum value for the type: `1...MAX`
...
117 | impl_to_extra_primitive_for_float!(f32, 23, 104, 103);
    | ------------------------------------------------------ in this macro invocation
error: expected one of `=>`, `if`, or `|`, found `103`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/extprim-1.7.0/src/traits.rs:103:27
    |
103 |                     1 ... $f => u128::new(mantissa) << exp,
    |                           ^^ expected one of `=>`, `if`, or `|` here
...
117 | impl_to_extra_primitive_for_float!(f32, 23, 104, 103);
    | ------------------------------------------------------ in this macro invocation
error: `X...` range patterns are not supported
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/extprim-1.7.0/src/traits.rs:94:21
    |
94  |                     1 ... $e => u128::new(mantissa) << exp,
    |                     ^^^^^ help: try using the maximum value for the type: `1...MAX`
...
118 | impl_to_extra_primitive_for_float!(f64, 52, 75, 74);
    | ---------------------------------------------------- in this macro invocation
error: expected one of `=>`, `if`, or `|`, found `75`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/extprim-1.7.0/src/traits.rs:94:27
    |
94  |                     1 ... $e => u128::new(mantissa) << exp,
    |                           ^^ expected one of `=>`, `if`, or `|` here
...
118 | impl_to_extra_primitive_for_float!(f64, 52, 75, 74);
    | ---------------------------------------------------- in this macro invocation
error: `X...` range patterns are not supported
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/extprim-1.7.0/src/traits.rs:103:21
    |
103 |                     1 ... $f => u128::new(mantissa) << exp,
    |                     ^^^^^ help: try using the maximum value for the type: `1...MAX`
...
118 | impl_to_extra_primitive_for_float!(f64, 52, 75, 74);
    | ---------------------------------------------------- in this macro invocation
error: expected one of `=>`, `if`, or `|`, found `74`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/extprim-1.7.0/src/traits.rs:103:27
    |
103 |                     1 ... $f => u128::new(mantissa) << exp,
    |                           ^^ expected one of `=>`, `if`, or `|` here
...
118 | impl_to_extra_primitive_for_float!(f64, 52, 75, 74);
    | ---------------------------------------------------- in this macro invocation
warning: `...` range patterns are deprecated
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/extprim-1.7.0/src/traits.rs:93:25
    |
93  |                     -$d ... 0 => u128::new(mantissa >> -exp),
    |                         ^^^ help: use `..=` for an inclusive range
...
117 | impl_to_extra_primitive_for_float!(f32, 23, 104, 103);
    | ------------------------------------------------------ in this macro invocation
    |
    = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
warning: `...` range patterns are deprecated
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/extprim-1.7.0/src/traits.rs:102:25
    |
102 |                     -$d ... 0 => u128::new(mantissa >> -exp),
    |                         ^^^ help: use `..=` for an inclusive range
...
117 | impl_to_extra_primitive_for_float!(f32, 23, 104, 103);
    | ------------------------------------------------------ in this macro invocation
warning: `...` range patterns are deprecated
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/extprim-1.7.0/src/traits.rs:93:25
    |
93  |                     -$d ... 0 => u128::new(mantissa >> -exp),
    |                         ^^^ help: use `..=` for an inclusive range
...
118 | impl_to_extra_primitive_for_float!(f64, 52, 75, 74);
    | ---------------------------------------------------- in this macro invocation
warning: `...` range patterns are deprecated
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/extprim-1.7.0/src/traits.rs:102:25
    |
102 |                     -$d ... 0 => u128::new(mantissa >> -exp),
    |                         ^^^ help: use `..=` for an inclusive range
...
118 | impl_to_extra_primitive_for_float!(f64, 52, 75, 74);
    | ---------------------------------------------------- in this macro invocation
error: aborting due to 8 previous errors
error: Could not compile `extprim`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions