-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
-Zalways-encode-mir=yes
misses MIR for statics
#85401
Comments
This is strange, Miri uses |
@RalfJung Does the test case I gave work for Miri? I notice that It would be nice to have an option to make lone Overall, I'm finding it hard to work out what controls what goes into a I guess I haven't confirmed that MIR is the only difference between the two cases. |
Yes: when I set up a 2-crate workspace matching your 2 files and then do |
PR #85793 adds |
I tried this code:
foo.rs:
bar.rs:
I expected to see this happen: generate libbar.rlib
Instead, this happened:
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: