You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the bug report. We should exit gracefully with an error like rustc does on this program:
$ rustc test.rs
warning: unused variable: `x`
--> test.rs:9:9
|
9 |let x = f();
| ^ help: if this is intentional, prefix it with an underscore: `_x`|
= note: `#[warn(unused_variables)]` on by default
warning: field `x` is never read
--> test.rs:1:15
|
1 | struct S<T> { x: [T;!0] }
| - ^
||| field in this struct
|
= note: `#[warn(dead_code)]` on by default
error: values of the type`[u8; 18446744073709551615]` are too big for the current architecture
error: aborting due to previous error; 2 warnings emitted
Kani Rust Verifier 0.40.0 (standalone)
warning: unused variable: `x`
--> a.rs:9:9
|
9 | let x = f();
| ^ help: if this is intentional, prefix it with an underscore: `_x`
|
= note: `#[warn(unused_variables)]` on by default
warning: field `x` is never read
--> a.rs:1:15
|
1 | struct S<T> { x: [T; !0] }
| - ^
| |
| field in this struct
|
= note: `#[warn(dead_code)]` on by default
error: internal compiler error: kani-compiler/src/codegen_cprover_gotoc/context/goto_ctx.rs:340:9: failed to get layout for `S<u8>`: values of the type `[u8; usize::MAX]` are too big for the current architecture
thread 'rustc' panicked at /rustc/31bc7e2c47e82798a392c770611975a6883132c8/compiler/rustc_errors/src/lib.rs:1000:33:
Box<dyn Any>
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Kani unexpectedly panicked during compilation.
Please file an issue here: https://github.com/model-checking/kani/issues/new?labels=bug&template=bug_report.md
[Kani] current codegen item: codegen_function: std::mem::size_of::<S<u8>>
_RINvNtCs5k6HhVuWWKi_4core3mem7size_ofINtCsaxqAW6SeOYc_1a1ShEEBC_
[Kani] current codegen location: Loc { file: "/github/home/.rustup/toolchains/nightly-2023-10-31-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/mem/mod.rs", function: None, start_line: 312, start_col: Some(1), end_line: 312, end_col: Some(35) }
error: aborting due to previous error; 2 warnings emitted
error: /home/matthias/.kani/kani-0.40.0/bin/kani-compiler exited with status exit status: 101
I tried this code:
using the following command line invocation:
with Kani version:
kani 0.22.0
I expected to see this happen: explanation
Instead, this happened: explanation
The text was updated successfully, but these errors were encountered: