Skip to content
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

More Miri error tweaks #63245

Merged
merged 4 commits into from
Aug 5, 2019
Merged

More Miri error tweaks #63245

merged 4 commits into from
Aug 5, 2019

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Aug 3, 2019

  • Add err_ version of the _format! macros
  • Add UbExperimental variant so that Miri can mark some UB as experimental (e.g. Stacked Borrows)

r? @oli-obk

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 3, 2019
@oli-obk
Copy link
Contributor

oli-obk commented Aug 4, 2019

How will you use the experimental UB errors? Display an additional message about the experimental state? If so, don't you need to do that here?

@RalfJung
Copy link
Member Author

RalfJung commented Aug 4, 2019

How will you use the experimental UB errors? Display an additional message about the experimental state? If so, don't you need to do that here?

My plan is to first complete the categorization of errors (solving rust-lang/const-eval#4), and then look into how to best display this to the user (rust-lang/miri#417). My thinking is the latter will probably happen on the Miri side; CTFE and Miri have different needs for error display.

@oli-obk
Copy link
Contributor

oli-obk commented Aug 4, 2019

@bors r+

@bors
Copy link
Contributor

bors commented Aug 4, 2019

📌 Commit b9d4c75 has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 4, 2019
@bors
Copy link
Contributor

bors commented Aug 5, 2019

⌛ Testing commit b9d4c75 with merge 11a5148...

bors added a commit that referenced this pull request Aug 5, 2019
More Miri error tweaks

* Add `err_` version of the `_format!` macros
* Add `UbExperimental` variant so that Miri can mark some UB as experimental (e.g. Stacked Borrows)

r? @oli-obk
@bors
Copy link
Contributor

bors commented Aug 5, 2019

☀️ Test successful - checks-azure
Approved by: oli-obk
Pushing 11a5148 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 5, 2019
@bors bors merged commit b9d4c75 into rust-lang:master Aug 5, 2019
@RalfJung RalfJung deleted the miri-error branch August 5, 2019 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants