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

adjust Miri to needs of changed unwinding strategy #69999

Merged
merged 5 commits into from
Mar 14, 2020

Conversation

RalfJung
Copy link
Member

As expected, #67502 broke unwinding in Miri. To fix it we have to adjust parts of the engine and the panic runtime, which this PR does. The Miri-side changes are in rust-lang/miri#1227.

Cc @oli-obk @Aaron1011 @Mark-Simulacrum @Amanieu

@rust-highfive
Copy link
Collaborator

r? @davidtwco

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 14, 2020
@RalfJung
Copy link
Member Author

RalfJung commented Mar 14, 2020

@bors p=1
because we cannot even test Miri with rustc master until this lands (so there is a risk of other breakage landing, and the more that accumulates the harder it is to fix)

@davidtwco
Copy link
Member

r? @oli-obk

@rust-highfive rust-highfive assigned oli-obk and unassigned davidtwco Mar 14, 2020
Copy link
Member

@Mark-Simulacrum Mark-Simulacrum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good, though I wasn't able to quite follow the miri changes.

@@ -272,11 +272,13 @@ impl<'tcx, Tag> Scalar<Tag> {

#[inline]
pub fn from_bool(b: bool) -> Self {
// Guaranteed to be truncated and does not need sign extension.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seem like they could be separate? But fine to leave them in too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to add from_i32 for the Miri side of this. So while I was at it I figured I might as well add the comments here, instead of making them a separate PR.

@oli-obk
Copy link
Contributor

oli-obk commented Mar 14, 2020

r=me with the comment updated.

@RalfJung
Copy link
Member Author

@bors r=oli-obk

@bors
Copy link
Contributor

bors commented Mar 14, 2020

📌 Commit b450e1b 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 Mar 14, 2020
@bors
Copy link
Contributor

bors commented Mar 14, 2020

⌛ Testing commit b450e1b with merge 7cdbc87...

@bors
Copy link
Contributor

bors commented Mar 14, 2020

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

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Mar 14, 2020
@bors bors merged commit 7cdbc87 into rust-lang:master Mar 14, 2020
@RalfJung RalfJung deleted the miri-unwind branch March 15, 2020 10:50
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.

6 participants