-
Notifications
You must be signed in to change notification settings - Fork 361
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
linkme crate not supported by Miri #4171
Comments
Miri doesn't support the linker hacks that linkme is using. Few platforms do. We'd either have to have some sort of impl for all the platforms linkme supports or we'd add one impl and linkme would need to cfg(miri) that one on all platforms |
One impl and custom support in |
The even better approach would be Rust getting native support for "distributed slices". This has been discussed though I am not sure whether it reached the RFC stage.
|
Switched to inventory that works even better for my needs, which works under Miri |
Miri will probably not execute the "inventory::submit!" calls though, so the list will stay empty.
|
Indeed, spoke too soon 😅 |
This is probably related to #2757, but I'm less interested in suppressing it and more in being able to use it.
Specifically, I'm using linkme crate and would like to be able to run tests under Miri. Right now I'm getting this instead:
The text was updated successfully, but these errors were encountered: