-
Notifications
You must be signed in to change notification settings - Fork 225
Allow user to specify aliasing model for Miri #1074
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
Conversation
The one problem I have with my implementation is that this knob is not saved when sharing via link. I could easily fix this, but it will add an extra |
@shepmaster Hi! Looking at the commit history, I think I should ask you to review these changes. |
be78b11
to
ccc1e90
Compare
ccc1e90
to
0e65195
Compare
I think that's fine for now. Similarly, the "backtrace" configuration is not added as a query parameter.
That's basically to avoid dealing with changing defaults. For example, if you click on a playground link from the year 2015, it will not have the In this case, Miri defaults to stacked borrows today, but conceptually could switch to tree borrows tomorrow. A URL generated today with no value would become ambigous if loaded tomorrow. All that said, I've been mulling over a richer way of saving data about the current playground instance. If enough interest arises from people missing this setting sticking around, I might look into that. |
Thanks for your patience! The code looks good, but I did pull it down and make some small tweaks, as well as rebasing it to address some conflicts. I then force-pushed those changes. Due to that, your two commits are no longer verified. If that's OK with you, I can go ahead and merge this. Otherwise, feel free to review the commits then rebase them and force-push yourself with the new approvals. The updated UI ![]() |
The thing I find myself missing the most is the state of the big “Run” button: I often want to share some code in ASM or LLVM IR mode and right now the best way to do it is to just specify it in prose. (Aside: I think “Expand macros”, “Miri” and “Clippy” could also be under the “Run” button instead of in “Tools”). I don’t think not saving Miri mode is that bad, since it’s mostly useful for comparing Miri modes, so you’ll need to switch it anyway.
Give me a minute, I’ll review and re-sign these commits. |
0e65195
to
2d705f5
Compare
I signed the commits (adding you as a co-author for the second one). |
We usually spell the tool's name "Miri", would be good to be consistent here as well. :) |
Ah, seems like the section titles are generally all-caps... I guess this will lead to more people spelling it MIRI but oh well. |
If it makes you feel any better, I do spell it the right way in the pre-stylized code 😉 : <MenuGroup title="Miri"> I feel your pain though, albeit in the opposite direction. I generally prefer SNAFU to be in all caps as it's an acronym, but most people pick something else. |
This has the side benefit of not exceeding the width of the config widget.
2d705f5
to
c7f92af
Compare
`#!/bin/bash` is non-standard and doesn't work on e.g. NixOS.
Co-authored-by: Jake Goulding <[email protected]>
c7f92af
to
7c4f574
Compare
Thank you for your patience. |
Thank you for pushing this over the finish line :)
|
Very useful for comparing stacked borrows and tree borrows.
An example for testing:
is valid under Tree Borrows, but not under Stacked Borrows.
UI looks like this: