Skip to content

Add trybuild dev-dependency and compile-time UI harnesses for cfg(kani) gating #370

Description

@coderabbitai

Summary

The repository has no trybuild dev-dependency and no tests/ui directory. PR #336 introduces #[cfg(kani)] conditional compilation paths and an unexpected_cfgs lint entry; there are no compile-pass or compile-fail UI tests to exercise these at compile time.

Required work

  1. Add trybuild as a dev-dependency in Cargo.toml.
  2. Create a tests/ui/ directory with at least:
    • A compile-pass snippet confirming #[cfg(kani)] code compiles cleanly under normal cargo build.
    • A compile-fail snippet confirming that a bare cfg(unknown_feature) triggers the unexpected_cfgs warning.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions