Skip to content

Create a new #[proof_for_safety(fn)] #3579

Open

Description

@celinval

Provide a new harnesss type which will only take into consideration the function safety contract, and that will only fail if UB is detected or, if the target function is safe, if any variable at the boundary of the target function violates their type safety.

Note that this is similar to #[should_panic], but it should not fail the verification if it does not panic.

Activity

  1. changed the title [-]Provide a new harnesss type which will only take into consideration the function safety contract, and that will only fail if UB is detected or, if the target function is safe, if any variable at the boundary of the target function violates their type safety.[/-] [+]Create a new `#[proof_for_safety(fn)]`[/+] on Oct 8, 2024
  2. added
    [C] Feature / Enhancement
    on Dec 19, 2024
  3. added
    Z-Contracts
    on Mar 27, 2026
  4. self-assigned this
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Z-Contracts[C] Feature / Enhancement

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions