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

[Rust] Fixed PhysicalHash tests #3905

Merged
merged 1 commit into from
Sep 28, 2024
Merged

[Rust] Fixed PhysicalHash tests #3905

merged 1 commit into from
Sep 28, 2024

Conversation

ncave
Copy link
Collaborator

@ncave ncave commented Sep 28, 2024

When compiling the Rust tests in --release mode, sequentially allocated temporary objects that are immediately released can get allocated at the same address. This breaks referential equality (and PhysicalHash) expectations, so delaying their de-allocation by increasing their lifetime (by binding them to variables) makes the tests work.

@ncave ncave merged commit f2597e7 into fable-compiler:main Sep 28, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant