You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Reanalyze: link type re-export labels
Track manifest type paths on label declarations so re-exported record/variant labels
can be linked to their manifest counterparts during type label dependency wiring.
Adds a regression test for `type y = x = {...}` field liveness.
Signed-off-by: Cristiano Calcagno <cristianoc@users.noreply.github.com>
* Changelog: mention reanalyze type re-export label linking
Signed-off-by: Cristiano Calcagno <cristianoc@users.noreply.github.com>
* Reanalyze: suppress dead warnings on re-exported labels
When a type is re-exported via `type y = x = {...}`, the re-exported record/variant
labels are restated but not independently actionable. Suppress dead-type warning
emission for those labels while keeping per-label liveness and linking intact.
Signed-off-by: Cristiano Calcagno <cristianoc@users.noreply.github.com>
* Reanalyze: link re-export manifests across modules
Track manifest type paths (not just local type ids) so `type y = M.x = ...` and
other cross-module type equations correctly link label/case liveness.
Extend deadcode tests to cover variants and cross-file record re-exports.
Signed-off-by: Cristiano Calcagno <cristianoc@users.noreply.github.com>
---------
Signed-off-by: Cristiano Calcagno <cristianoc@users.noreply.github.com>
# Conflicts:
# tests/analysis_tests/tests-reanalyze/deadcode/expected/deadcode.txt
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@
26
26
#### :bug: Bug fix
27
27
28
28
- Reanalyze: fix reactive/server stale results when cross-file references change without changing dead declarations (non-transitive mode). https://github.com/rescript-lang/rescript/pull/8173
29
+
- Reanalyze: link record/variant label liveness across type re-exports (`type y = x = {...}`). https://github.com/rescript-lang/rescript/pull/8217
29
30
- Add duplicate package detection to rewatch. https://github.com/rescript-lang/rescript/pull/8180
30
31
- Rewatch: do not warn about "reanalyze" config field. https://github.com/rescript-lang/rescript/pull/8181
31
32
- Fix error when importing CommonJS runtime modules with `require()`. https://github.com/rescript-lang/rescript/pull/8194
0 commit comments