Skip to content

Conversation

MortenLohne
Copy link

@MortenLohne MortenLohne commented Jul 20, 2025

5/8 tests in this repository use the global allocator, making them ineffective without --features global. The miri tests in CI were unfortunately run without this flag, and they show UB if run properly, see #51.

This PR also completely feature-gates the global tests behind the global feature, since they are basically no-ops without it. This should help avoid similar mistakes in the future.

… global)]'

If testing without --target global, the tests would run and succeed, but not actually use the allocator's code. This behavior makes it more obvious that you're doing something wrong
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