Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libnixf/Sema: ignore builtin liveness warning #535

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Conversation

inclyc
Copy link
Member

@inclyc inclyc commented Jun 25, 2024

let ... in ... expr may create pass-through environments to "emitLivenessWarning". However, this function does not consider the "builtin" scope. In this case, Def->syntax() will be nullptr and thus the server crashes.

Add the checking to "emitLivenessWarning" function.

Fixes: #533

let ... in ... expr may create pass-through environments to "emitLivenessWarning".
However, this function does not consider the "builtin" scope.
In this case, `Def->syntax()` will be nullptr and thus the server crashes.

Add the checking to "emitLivenessWarning" function.

Fixes: #533
@inclyc inclyc added bug Something isn't working libnixf:sema Semantic analysis in libnixf labels Jun 25, 2024
@inclyc inclyc merged commit 6107557 into main Jun 25, 2024
36 checks passed
@inclyc inclyc deleted the libnixf/liveness-builtin branch June 25, 2024 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working libnixf:sema Semantic analysis in libnixf
Projects
None yet
Development

Successfully merging this pull request may close these issues.

crash on invalid let ... in ...
1 participant