-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 printing of Yield
terminator
#69200
Conversation
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
r? @Zoxc |
@bors r+ |
📌 Commit 759526e has been approved by |
src/librustc/mir/mod.rs
Outdated
Return => write!(fmt, "return"), | ||
GeneratorDrop => write!(fmt, "generator_drop"), | ||
Resume => write!(fmt, "resume"), | ||
Abort => write!(fmt, "abort"), | ||
Yield { ref value, .. } => write!(fmt, "_1 = suspend({:?})", value), | ||
Yield { value, resume_arg, .. } => { | ||
write!(fmt, "{:?} = suspend({:?})", resume_arg, value) |
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.
You can probably output yield
instead of suspend
. I think this was just missed during the Suspend
to Yield
rename.
@bors r=eddyb,Zoxc |
📌 Commit bb482eb has been approved by |
…b,Zoxc Fix printing of `Yield` terminator Addresses the bug found in rust-lang#69039 (comment)
…b,Zoxc Fix printing of `Yield` terminator Addresses the bug found in rust-lang#69039 (comment)
…b,Zoxc Fix printing of `Yield` terminator Addresses the bug found in rust-lang#69039 (comment)
Addresses the bug found in #69039 (comment)