Update docs to suggest adding kani
to list of known configs
#3197
Labels
[C] Documentation
Additions and improvements to our documentation
[E] User Experience
An UX enhancement for an existing feature. Including deprecation of an existing one.
Code that includes
#[cfg(kani)]
in crates that use thenightly-2024-05-05
toolchain or later (or using the yet-to-be-released Rust v1.80), will get a warning. Here's a reproducer:Add the following to
src/main.rs
:We should update our docs to suggest adding
kani
to the list of known configurations in theCargo.toml
file ifcfg(kani)
is used. For example, adding the following will silence the warning:Link to relevant documentation (Rust reference, Nomicon, RFC):
https://github.com/rust-lang/rust/blob/b92758a9aef1cef7b79e2b72c3d8ba113e547f89/src/doc/rustc/src/check-cfg/cargo-specifics.md#check-cfg-in-lintsrust-table
The text was updated successfully, but these errors were encountered: