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

crucible-mir: Report line number when MIR Assert fails #1139

Open
spernsteiner opened this issue Nov 21, 2023 · 0 comments
Open

crucible-mir: Report line number when MIR Assert fails #1139

spernsteiner opened this issue Nov 21, 2023 · 0 comments
Labels
crucible enhancement MIR Issues relating to Rust/MIR support

Comments

@spernsteiner
Copy link
Contributor

When overflow checking is enabled (the default for debug builds), rustc emits MIR TerminatorKind::Assert to assert that overflow did not occur. Currently, our translation of Assert only reports the message from the MIR, which will be something generic like "attempted to add with overflow". It would be helpful to also provide the line number or other source information so the user can more easily identify which operation it was that overflowed.

@spernsteiner spernsteiner added enhancement crucible MIR Issues relating to Rust/MIR support labels Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crucible enhancement MIR Issues relating to Rust/MIR support
Projects
None yet
Development

No branches or pull requests

1 participant