-
Notifications
You must be signed in to change notification settings - Fork 349
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
Miri diagnostics: Show location of creation/invalidation in own code #2185
Comments
Do you have a concrete example / testcase for this? That would help make the discussion less abstract. Cc @saethlin |
I have updated the issue with better info |
I think the problem here is that At the moment, the only thing I can think of to do for this is to give the end user more control over the local crate selection. But they might as well just use |
Oh, this is |
We could hard-code core, alloc, and std as never being local? 🤷 |
Maybe it would make sense to have a flag like |
I think there is a need for a kind of miri-walkthrough that explains the most important flags and ways to use miri in a nice tutorial. I might take a look at that. |
Yes, a "Miri book" would probably make a lot of sense. :-) |
At least the particular span |
I'm in a crate (
rustc_arena
) where some UB was found. The created/invalidated spans point atcore
, since it's in the same workspace.Backtrace
It would be useful to be able to make it point to the actual offending calls in
rustc_arena
, since the actual bug was there.See here: rust-lang/rust#97711
The text was updated successfully, but these errors were encountered: