Skip to content

Simplify the configuration for no-panic #999

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

Merged
merged 2 commits into from
Jul 30, 2025

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented Jul 30, 2025

Currently, attributes for no-panic are gated behind both the test config and assert_no_panic, because no-panic is a dev dependency (so only available with test configuration). However, we only emit assert_no_panic when the test config is also set anyway, so there isn't any need to gate on both.

Replace gates on all(test, assert_no_panic) with only assert_no_panic. This is simpler, and also has the benefit that attempting to check for panics without --test errors.

ci: skip-extensive

tgross35 added 2 commits July 30, 2025 09:57
Currently, a failure in `ci-util.py` does not cause the job to fail
because the pipe eats the failure status . Set pipefail to fix this.

Fixes: ff2cc0e ("ci: Don't print output twice in `ci-util`")
Currently, attributes for `no-panic` are gated behind both the `test`
config and `assert_no_panic`, because `no-panic` is a dev dependency (so
only available with test configuration). However, we only emit
`assert_no_panic` when the test config is also set anyway, so there
isn't any need to gate on both.

Replace gates on `all(test, assert_no_panic)` with only
`assert_no_panic`. This is simpler, and also has the benefit that
attempting to check for panics without `--test` errors.
@tgross35 tgross35 force-pushed the simplify-no-panic branch from c1af180 to 13c5374 Compare July 30, 2025 15:02
@tgross35 tgross35 merged commit 13c5374 into rust-lang:master Jul 30, 2025
40 of 48 checks passed
@tgross35 tgross35 deleted the simplify-no-panic branch July 30, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant