Skip to content

Concrete playback requires nightly rustc #1609

Done

Description

@celinval

I tried the following:

$ cargo init dummy
$ cd dummy
$ cargo --version
cargo 1.63.0 (fd9c4297c 2022-07-01)

I added the following line to Cargo.toml

[dev-dependencies]
kani = { git = "https://github.com/model-checking/kani", features = ["concrete_playback"] }

I opened src/main.rs

#[kani::proof]
fn force_failure() {
  assert!(kani::any());
}

using the following command line invocation:

cargo kani --enable-unstable --concrete-playback
cargo test

with Kani version: 0.9.0

I expected to see this happen: Cargo runs the new test and fail.

Instead, this happened: Cargo failed to build kani library with the following error:

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> ~/.cargo/git/checkouts/kani-0ce0dacf5e98886d/281d0bb/library/kani/src/lib.rs:5:1
  |
5 | #![feature(rustc_attrs)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^

Activity

  1. added
    [C] Bug
    on Sep 1, 2022
  2. celinval commented on Sep 1, 2022

    @celinval
    ContributorAuthor

    We could guard the usage of rustc_attrs and rustc_diagnostic_item with cfg_attr, but I was wondering if there's a cleaner solution.

  3. celinval commented on Sep 1, 2022

    @celinval
    ContributorAuthor

    This is very similar to #1581. Same root cause.

  4. moved this to In Progress in Kani 2023-04-17on Apr 3, 2023
  5. adpaco commented on Apr 7, 2023

    @adpaco
    Contributor

    I was wondering if there's a cleaner solution.

    I haven't been able to find one, but IMHO the cfg_attr solution is quite clean already.

  6. 1 remaining item

  7. jaisnan commented on Apr 12, 2023

    @jaisnan
    Contributor

    Would removing the transmute theoretically remove the dependency on nightly features entirely? If so, that seems like the cleanest solution and option.

    But i imagine, we need incomplete_features for Arbitrary and that means we'll need nightly for arbitrary, is that correct?

  8. celinval commented on Apr 14, 2023

    @celinval
    ContributorAuthor

    The way we are doing transmute is the reason why we need the incomplete_features for arbitrary.

  9. celinval commented on May 23, 2023

    @celinval
    ContributorAuthor

    The transmute could be replaced by storing Any as described here: #1527

  10. added theissue type on Apr 1, 2026
  11. feliperodri commented on Nov 25, 2026

    @feliperodri
    Member

    Closing: fixed in c87fb24. Reopen with a minimal repro if it still happens.

  12. moved this from In Progress to Done in Kani 2023-04-17on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[C] Bug

Type

Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions