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

rustc_mir_dataflow tests fail with debug-assertions enabled #90152

Closed
ehuss opened this issue Oct 22, 2021 · 3 comments · Fixed by #90042
Closed

rustc_mir_dataflow tests fail with debug-assertions enabled #90152

ehuss opened this issue Oct 22, 2021 · 3 comments · Fixed by #90042
Labels
C-bug Category: This is a bug.
Milestone

Comments

@ehuss
Copy link
Contributor

ehuss commented Oct 22, 2021

The rustc_mir_dataflow tests forward_cursor and backward_cursor are failing when built with debug-assertions.

This is related to the bootstrap bump in #90042. This brings in a change in cargo where tests now inherit profile settings from the dev/release profiles. When debug-assertions is enabled in config.toml, tests are now built with debug-assertions enabled where they previously didn't.

These tests seem to intentionally create a mir body with disconnected basic blocks. However in #74169 a debug assertion was added to prevent API consumers from visiting those basic blocks by accident. That assertion is now triggering in the test.

I don't have any particular ideas on how to resolve this, since the test seems to be fundamentally going against that assertion.

@ehuss ehuss added the C-bug Category: This is a bug. label Oct 22, 2021
@Mark-Simulacrum Mark-Simulacrum added this to the 1.57.0 milestone Oct 22, 2021
@Mark-Simulacrum
Copy link
Member

cc @ecstatic-morse @pnkfelix we'll likely just disable the mir dataflow tests for the 1.57 bootstrap bump, but a more complete fix seems in order as well. Would you be able to put up a PR which fixes the tests to not trigger debug asserts here?

@ecstatic-morse
Copy link
Contributor

ecstatic-morse commented Oct 22, 2021

I can do it. The fix is pretty simple. Feel free to disable the test in the meantime, since the cursor logic doesn't change often.

@Mark-Simulacrum
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
3 participants