-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Debugger step-over runs backward #141344
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
Comments
The bug is not reproduced with In disassembly it's clear that the assignments were reordered:
main.main.3-2-015.SingleUseConsts.before.mir:
main.main.3-2-015.SingleUseConsts.after.mir:
|
FWIW, I think what SingleUseConsts is doing here is entirely fine. There isn't an assignment in the MIR, so that assembly is an artifact of how the debug info is being emitted. |
сс @wesleywiser - can be related to #73210 |
This is a duplicate of #113819 I believe. (Or at least the same root cause) |
Setup
main.rs:
Reproducing in terminal:
Reproducing in RustRover:
Screencast.from.2025-05-21.15-04-15.mp4
Env
LLDB:
lldb version 19.1.7
Rust:
rustc 1.89.0-nightly (bc82152 2025-05-20)
or
rustc 1.87.0 (17067e9 2025-05-09)
The text was updated successfully, but these errors were encountered: