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

Fix toolstate for rust-lang/rust#85546 #1812

Merged
merged 1 commit into from May 28, 2021
Merged

Fix toolstate for rust-lang/rust#85546 #1812

merged 1 commit into from May 28, 2021

Conversation

ghost
Copy link

@ghost ghost commented May 22, 2021

@ghost

This comment has been minimized.

) -> InterpResult<'tcx> {
let this = self.eval_context_mut();

trace!("miri_start_panic: {:?}", this.frame().instance);
// Make sure we only start unwinding when this matches our panic strategy.
if this.tcx.sess.panic_strategy() != PanicStrategy::Unwind {
Copy link
Member

Choose a reason for hiding this comment

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

Why did you remove this?

Copy link
Author

Choose a reason for hiding this comment

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

src/shims/panic.rs Outdated Show resolved Hide resolved
@ghost ghost changed the title Fix toolstate for rust-lang/rust#85546 in advance Fix toolstate for rust-lang/rust#85546 May 28, 2021
unwind: match unwind {
Some(cleanup) => StackPopUnwind::Cleanup(cleanup),
None => StackPopUnwind::Skip,
},
Copy link
Member

Choose a reason for hiding this comment

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

almost looks like we want a function to easily construct a StackPopUnwind from an Option<BasicBlock>... but that's for a future PR (and a rustc PR, most likely)

@RalfJung
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented May 28, 2021

📌 Commit 9b2d425 has been approved by RalfJung

@bors
Copy link
Contributor

bors commented May 28, 2021

⌛ Testing commit 9b2d425 with merge 4fa9363...

@bors
Copy link
Contributor

bors commented May 28, 2021

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing 4fa9363 to master...

@bors bors merged commit 4fa9363 into rust-lang:master May 28, 2021
@ghost ghost deleted the 85546 branch May 29, 2021 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants