-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Rework no_coverage
to coverage(off)
#114656
Conversation
r? @oli-obk (rustbot has picked a reviewer for you, use r? to override) |
Changes to the code generated for builtin derived traits. cc @nnethercote |
This comment has been minimized.
This comment has been minimized.
Fantastic! |
The old model uses a feature-flag called |
1c02438
to
9a5ac56
Compare
Some changes occurred in src/tools/rust-analyzer cc @rust-lang/rust-analyzer |
c7e6502
to
8239f59
Compare
@bors r+ |
⌛ Testing commit 60a9007 with merge e216e03ca4c1bae9b161ea9b659cdec63171596e... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
A few of the tests in Note that those tests only run if you have the profiler runtime enabled in your |
Finished benchmarking commit (c728bf3): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Bootstrap: 631.556s -> 631.545s (-0.00%) |
Fix the error message for `#![feature(no_coverage)]` When rust-lang#114656 was written, the feature flag to replace `no_coverage` was originally spelled `coverage`, but it was eventually changed to `coverage_attribute` instead. That update happened to miss this error message in `removed.rs`, and unfortunately I only noticed just *after* the original PR was approved and merged. cc `@bossmc` (original author) `@oli-obk` (original reviewer) `@rustbot` label +A-code-coverage
Fix the error message for `#![feature(no_coverage)]` When rust-lang#114656 was written, the feature flag to replace `no_coverage` was originally spelled `coverage`, but it was eventually changed to `coverage_attribute` instead. That update happened to miss this error message in `removed.rs`, and unfortunately I only noticed just *after* the original PR was approved and merged. cc ``@bossmc`` (original author) ``@oli-obk`` (original reviewer) ``@rustbot`` label +A-code-coverage
Rollup merge of rust-lang#115832 - Zalathar:fix-no-coverage, r=oli-obk Fix the error message for `#![feature(no_coverage)]` When rust-lang#114656 was written, the feature flag to replace `no_coverage` was originally spelled `coverage`, but it was eventually changed to `coverage_attribute` instead. That update happened to miss this error message in `removed.rs`, and unfortunately I only noticed just *after* the original PR was approved and merged. cc ``@bossmc`` (original author) ``@oli-obk`` (original reviewer) ``@rustbot`` label +A-code-coverage
The way coverage is enabled/disabled was changed upstream. Links: rust-lang/rust#114656
The way coverage is enabled/disabled was changed upstream. Links: rust-lang/rust#114656
The way coverage is enabled/disabled was changed upstream. Links: rust-lang/rust#114656
The way coverage is enabled/disabled was changed upstream. Links: rust-lang/rust#114656
nightly has updated the coverage feature to coverage_attribute. See rust-lang/rust#114656
nightly has updated the coverage feature to coverage_attribute. See rust-lang/rust#114656
* `rust-ini` 0.20 bumped `ordered-multimap` to 0.7 * `ordered-multimap 0.71` fixed a feature renaming sgodwincs/ordered-multimap-rs@131ab56 * The feature renaming is required for downstream application to bump nightly rust-toolchain. see rust-lang/rust#114656 Please release a minor or patch version (both are OK because the update only breaks nightly toolchain and affect nothing on stable toolchain) after the PR got merged. Signed-off-by: TennyZhuang <[email protected]>
As discussed at the tail of #84605 this replaces the
no_coverage
attribute with acoverage
attribute that takes sub-parameters (currentlyoff
andon
) to control the coverage instrumentation.Allows future-proofing for things like
coverage(off, reason="Tested live", issue="#12345")
or similar.