-
Notifications
You must be signed in to change notification settings - Fork 13.4k
refactor goto_block and also add unwind_to_block #66646
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
82c6467
to
419d3fc
Compare
This comment has been minimized.
This comment has been minimized.
The corresponding Miri PR is at rust-lang/miri#1077 |
@@ -268,34 +274,39 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { | |||
// exception from the exception.) | |||
// This is the dual to the special exception for offset-by-0 | |||
// in the inbounds pointer offset operation (see the Miri code, `src/operator.rs`). | |||
if a.is_bits() && b.is_bits() { | |||
// | |||
// Control flow is weird because we cannot early-return (to reach the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have a bunch of situations like that in miri... Maybe we should consider using try
blocks at some point
@bors r+ |
📌 Commit 6797d52 has been approved by |
refactor goto_block and also add unwind_to_block r? @oli-obk
☀️ Test successful - checks-azure |
Tested on commit rust-lang/rust@a7d791b. Direct link to PR: <rust-lang/rust#66646> 💔 miri on windows: test-pass → build-fail (cc @oli-obk @eddyb @RalfJung, @rust-lang/infra). 💔 miri on linux: test-pass → build-fail (cc @oli-obk @eddyb @RalfJung, @rust-lang/infra).
adjust for goto_block refactoring The Miri side of rust-lang/rust#66646
adjust for goto_block refactoring The Miri side of rust-lang/rust#66646
r? @oli-obk