-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
#[no_coverage]
renamed to #[coverage(off)]
without a migration period
#312
Comments
#[no_coverage]
is being renamed to #[coverage(off)]
#[no_coverage]
will be removed and replaced with #[coverage(off)]
It is unfortunate that this is being removed without a migration period. (Despite what was discussed here.) As for coverage-helper, once rust-lang/rust#114656 is merged, I plan to release a new 0.1.x version that does not generate I'm not sure what should be done about users who use One way is to add a wrapper for |
#[no_coverage]
will be removed and replaced with #[coverage(off)]
#[no_coverage]
will be removed without a migration period and replaced with #[coverage(off)]
Anyway thanks for the heads up. |
The PR is currently waiting for another review, since the earlier CI run failed. So it may not be too late to speak up and ask for a migration period. It doesn’t seem like supporting both for a while would be particularly onerous. |
#[no_coverage]
will be removed without a migration period and replaced with #[coverage(off)]
#[no_coverage]
will be renamed to #[coverage(off)]
without a migration period
Opened #314, taiki-e/coverage-helper#4, and taiki-e/coverage-helper#3. |
#[no_coverage]
will be renamed to #[coverage(off)]
without a migration period#[no_coverage]
renamed to #[coverage(off)]
without a migration period
UPDATE(taiki-e):
#[no_coverage]
renamed to#[coverage(off)]
.#[coverage(off)]
in the new nightly, replacefeature(no_coverage)
withfeature(coverage_attribute)
,no_coverage
withcoverage(off)
, and coverage-helper 0.1 with coverage-helper 0.2.--no-cfg-coverage-nightly
or/and--no-cfg-coverage
flags, in many cases.See rust-lang/rust#114656.
Apparently this has been intended for a while, but in August 2023 someone stepped up to actually implement the change, and it's now close to being merged into nightly.
When this happens, it will affect anyone who is following the advice at https://github.com/taiki-e/cargo-llvm-cov#exclude-function-from-coverage. Affected users will need to update their code to use the new attribute, or else temporarily pin to a nightly version from before the change.
The text was updated successfully, but these errors were encountered: