Commit 238af47
fix(compiler/phronesis-ast): move stranded #![forbid(unsafe_code)] to crate top (#49)
`#![forbid(unsafe_code)]` is a crate-level *inner* attribute but was left
mid-file (line 34, between a doc comment and `struct Span`) — the residue of a
botched merge resolution. Rust rejects an inner attribute there ("the inner
attribute doesn't annotate this struct"), so `phronesis-ast` failed to compile
and its unit tests never ran.
Moved the attribute to the top of the file (after the SPDX header, before the
module docs). `cargo build` succeeds and `cargo test` passes 21/21. SPDX header
left unchanged.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 395f8c8 commit 238af47
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
0 commit comments