Commit 32fb6ef
committed
fix(lattice): drop unguarded unwrap in SCC condense (CWE-754); fix doc drift
- src/lattice/mod.rs: replace `stack.last_mut().unwrap()` with a guarded
`if let Some(top)` — provably equivalent (the frame is always present),
removes the panic site Hypatia flagged (code_safety/unwrap_without_check, high).
- docs/decisions/rust-spark-stance.adoc: reword so it no longer references the
literal `src/abi/`/`ffi/zig/` paths (which don't exist in this tree) —
clears Hypatia structural_drift SD022.
https://claude.ai/code/session_01JNCDaWMB8NV6nAPrvmTg4w1 parent 9b6753d commit 32fb6ef
2 files changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
200 | 205 | | |
201 | 206 | | |
202 | 207 | | |
| |||
0 commit comments