Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.15.0
-
None
Description
This is an example travis build (it seem to only fail on the Autotools Ubuntu Bionic task but not the Autotools Ubuntu Xenial task):
/root/.cargo/bin/cargo clippy --all -- -D warnings Compiling libc v0.2.99 Compiling autocfg v1.0.1 Compiling log v0.4.14 Checking cfg-if v1.0.0 Checking unicode-width v0.1.8 Checking bitflags v1.3.2 Checking vec_map v0.8.2 Checking integer-encoding v3.0.2 Checking ansi_term v0.11.0 Checking byteorder v1.4.3 Checking strsim v0.8.0 Compiling num-traits v0.2.14 Checking textwrap v0.11.0 Checking num_cpus v1.13.0 Checking atty v0.2.14 Checking threadpool v1.8.1 Checking clap v2.33.3 Checking ordered-float v1.1.1 Checking thrift v0.16.0 (/thrift/src/lib/rs) error[E0723]: loops and conditional expressions are not stable in const fn --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-2.33.3/src/app/settings.rs:7:1 | 7 | / bitflags! { 8 | | struct Flags: u64 { 9 | | const SC_NEGATE_REQS = 1; 10 | | const SC_REQUIRED = 1 << 1; ... | 51 | | } 52 | | } | |_^ | = note: for more information, see issue https://github.com/rust-lang/rust/issues/57563 = help: add `#![feature(const_fn)]` to the crate attributes to enable = 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[E0723]: loops and conditional expressions are not stable in const fn --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-2.33.3/src/args/settings.rs:6:1 | 6 | / bitflags! { 7 | | struct Flags: u32 { 8 | | const REQUIRED = 1; 9 | | const MULTIPLE = 1 << 1; ... | 28 | | } 29 | | } | |_^ | = note: for more information, see issue https://github.com/rust-lang/rust/issues/57563 = help: add `#![feature(const_fn)]` to the crate attributes to enable = 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 2 previous errors For more information about this error, try `rustc --explain E0723`. error: could not compile `clap`.
Attachments
Issue Links
- links to