-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed as not planned
Closed as not planned
Copy link
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
Description
1.19 prevents access to -Zno-landing-pads
. I was using that to get accurate test coverage; without it all landing pads appear as uncovered code at the start and end of every function.
-Cpanic=abort
is intended to be the stable replacement for -Zno-landing-pads
but unfortunately that isn't supported for unit tests (apparently, because libtest requires unwinding support).
I'd like a way to do any of the following on stable:
- restore
no-landing-pads
behaviour, or, - have
panic=abort
work for unit tests. Note that I don't much care thatshould_panic
tests wouldn't work.
Is there some combination of cargo/rustc options that might achieve that?
Metadata
Metadata
Assignees
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.