Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/hir-def/src/attr/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[
template!(List: "address, kcfi, memory, thread"), DuplicatesOk,
experimental!(no_sanitize)
),
gated!(no_coverage, Normal, template!(Word), WarnFollowing, experimental!(no_coverage)),
gated!(coverage, Normal, template!(Word, List: "on|off"), WarnFollowing, experimental!(coverage)),

ungated!(
doc, Normal, template!(List: "hidden|inline|...", NameValueStr: "string"), DuplicatesOk
Expand Down
10 changes: 5 additions & 5 deletions crates/ide-db/src/generated/lints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3505,16 +3505,16 @@ This serves two purposes:
"##,
},
Lint {
label: "no_coverage",
description: r##"# `no_coverage`
label: "coverage",
description: r##"# `coverage`

The tracking issue for this feature is: [#84605]

[#84605]: https://github.com/rust-lang/rust/issues/84605

---

The `no_coverage` attribute can be used to selectively disable coverage
The `coverage` attribute can be used to selectively disable coverage
instrumentation in an annotated function. This might be useful to:

- Avoid instrumentation overhead in a performance critical function
Expand All @@ -3524,14 +3524,14 @@ instrumentation in an annotated function. This might be useful to:
## Example

```rust
#![feature(no_coverage)]
#![feature(coverage)]

// `foo()` will get coverage instrumentation (by default)
fn foo() {
// ...
}

#[no_coverage]
#[coverage(off)]
fn bar() {
// ...
}
Expand Down