Rust Port Gap Analysis

Comprehensive comparison of the TypeScript and Rust compiler implementations. Generated 2026-03-30 from systematic review of all major subsystems.

Current test status: Pass 1717/1717, Code 1716/1717, Snap 1717/1718.


Critical Gaps (incorrect compilation possible)

3. Hardcoded useMemoCache identifier name


Moderate Gaps (feature gaps or edge cases)

6. Missing optimizeForSSR pass

7. Missing enableForest codegen path

8. Function name inference from AssignmentExpression and Property

9. Missing validations in outlined function pipeline

10. Reanimated flag injection missing

11. Dev-mode enableResetCacheOnSourceFileChanges injection missing

12. Outlined functions not re-queued for compilation

13. Missing addNewReference in RenameVariables

14. known_incompatible not checked for legacy signatures without aliasing config


Minor Gaps (cosmetic, defensive, or unlikely to trigger)

15. Missing assertValidMutableRanges pass

16. Missing ValidateNoDerivedComputationsInEffects_exp experimental variant

17. Missing CompileUnexpectedThrow event

18. Missing error for sources-specified-without-filename

19. Missing codegen_block temporary invariant check

20. Extra NullLiteralTypeAnnotation rejection

21. UnsignedShiftRight (>>>) not classified as primitive binary op

22. Post-dominator frontier not cached in InferReactivePlaces

23. Math.random missing restParam

24. WeakSet.has / WeakMap.has wrong signature shape

25. Missing throwUnknownException__testonly in outlined function pipeline