Skip to content

prelude: unwrap/unwrap_result fall through (return nothing) on None/Err #134

@hyperpolymath

Description

@hyperpolymath

Part of #128.

Interpreter-era correctness bug found during #128 triage: prelude.affine's unwrap and unwrap_result only println on None/Err and then fall through returning nothing (// TODO: panic!() once implemented).

Task: make these actually diverge (panic/abort) on the failure arm so the typed return is sound. Add a test asserting the panic path.

Independent of the other sub-items.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions