Commit 8955931
feat(selfhost-checker): add RS0009 (invalid pure effect)
A pure fn is flagged for a resource return, a mut/take param, a retains
item, or a body with/manage/non-pure-call. Non-pure-call resolution mirrors
the analyzer: type-qualified calls and constructors/enum-variants/pure-fns are
allowed; declared non-pure fns flag; unresolved names are ignored. Adds a
resource/sum-variant/pure-fn pre-pass. Corpus-green over 619 files.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent e559c1f commit 8955931
2 files changed
Lines changed: 336 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| |||
0 commit comments