You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hypatia's code_safety module flags these; each is baselined with a 3-month expiry rather than fixed, because each is either infallible-by-construction or deliberate internal-invariant style. Revisit before 2026-10-27:
crates/my-fmt/src/lib.rs — 26× write!(self.output, …).unwrap() where output is String: fmt::Write to String is infallible. Consider a small w! macro or let _ = to make that explicit.
crates/my-llvm/src/lib.rs — 3× unwrap() on get_nth_param/node_weight with indices obtained from the same structure being indexed. Convert to expect("MIR invariant: …") when the crate is next compiled against system LLVM.
crates/my-lang/src/parser.rs — flagged "expect() in hot path (157×)" but the sites are the parser's own self.expect(TokenKind)? Result-returning method, not Option/Result::expect panics. Scanner false positive worth an upstream hypatia rule fix (name-collision on expect).
PUNTED to code maintenance backlog. Issue describes legitimate unwrap/expect debt in my-lang codebase that requires manual code review and refactoring. Each flagged instance is documented in the issue body with rationale. Current status: some instances are infallible-by-construction (e.g., fmt::Write to String), others are internal invariants (e.g., MIR node indexing). Revisit and fix at source when prioritized. Baseline expires 2026-10-27 per original triage.
Activity
fix(hypatia): triage all 15 findings — 8 at source, 7 baselined (clos…
docs: state write-up for humans and machines; make the golden path re…
docs: truth pass across human, machine, and wiki documentation
docs: truth pass across human, machine, and wiki documentation + DEBT…
hyperpolymath commentedon Aug 12, 2026
PUNTED to code maintenance backlog. Issue describes legitimate unwrap/expect debt in my-lang codebase that requires manual code review and refactoring. Each flagged instance is documented in the issue body with rationale. Current status: some instances are infallible-by-construction (e.g., fmt::Write to String), others are internal invariants (e.g., MIR node indexing). Revisit and fix at source when prioritized. Baseline expires 2026-10-27 per original triage.