Repository navigation
Closed
Labels
[C] BugThis is a bug. Something isn't working.
Description
Steps to reproduce:
cargo new hdrhistogram_depcd hdrhistogram_depcargo add hdrhistogram
using the following command line invocation:
cargo kani
with Kani version: 94b4e84
I expected to see this happen: No proof harnesses (functions with #[kani::proof]) were found to verify.
Instead, this happened:
$ cargo kani
Compiling cfg-if v1.0.0
Compiling memchr v2.5.0
Compiling autocfg v1.1.0
Compiling crc32fast v1.3.2
Compiling crossbeam-utils v0.8.14
Compiling adler v1.0.2
Compiling minimal-lexical v0.2.1
Compiling base64 v0.13.1
Compiling byteorder v1.4.3
Compiling miniz_oxide v0.6.2
Compiling num-traits v0.2.15
Compiling nom v7.1.1
Compiling flate2 v1.0.25
Compiling crossbeam-channel v0.5.6
Compiling hdrhistogram v7.5.2
error[E0433]: failed to resolve: could not find `assert` in `core`
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/hdrhistogram-7.5.2/src/lib.rs:628:25
|
628 | panic!("Tried to subtract value outside of range: {}", other_value);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `assert` in `core`
|
= note: this error originates in the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0433]: failed to resolve: could not find `assert` in `core`
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/hdrhistogram-7.5.2/src/lib.rs:1649:9
|
1649 | / assert!(
1650 | | high >= 2 * self.lowest_discernible_value,
1651 | | "highest trackable value must be >= (2 * lowest discernible value)"
1652 | | );
| |_________^ could not find `assert` in `core`
|
= note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0433`.
Error: "Failed to compile crate."
error: could not compile `hdrhistogram` due to 2 previous errors
Error: cargo exited with status exit status: 101
Metadata
Metadata
Assignees
Labels
[C] BugThis is a bug. Something isn't working.
Activity
zhassan-aws commentedon Dec 12, 2022
Here is a minimal reproducer: