Audit: seq-compiler builtins & resolution (builtins.rs, resolver.rs, call_graph.rs) #312
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
rust
technical-debt
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/patch-seq#312
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Code Audit #5 of 17
Apply the code quality criteria from CONTRIBUTING.md "What Good Code Looks Like":
Files to audit:
crates/compiler/src/builtins.rscrates/compiler/src/resolver.rscrates/compiler/src/call_graph.rsChecklist:
Audit Complete ✓
Files Audited
builtins.rs(~1556 lines) - Declarative macro-based builtin signaturesresolver.rs(~681 lines) - Include resolution (std:, ffi:, relative paths)call_graph.rs(~598 lines) - Tarjan's SCC algorithm for mutual recursion detectionChecklist Results
find_sccs,check_collisions,resolve_includeare clear#[allow(dead_code)]in call_graph.rs is documented as future infrastructureNotes
#[allow(dead_code)]annotations onTailCallInfoandshould_use_musttail- these are clearly documented as "Infrastructure for future optimizations" since codegen already uses musttail for all tail callstest_all_builtins_have_signaturesto verify completenessNo issues found. Closing.
closed with no analysts
https://github.com/navicore/patch-seq/pull/329