Skip to content

Commit c397ca0

Browse files
committed
Fix the error message for #![feature(no_coverage)]
1 parent c728bf3 commit c397ca0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_feature/src/removed.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ declare_features! (
137137
/// Allows use of unary negate on unsigned integers, e.g., -e for e: u8
138138
(removed, negate_unsigned, "1.0.0", Some(29645), None, None),
139139
/// Allows `#[no_coverage]` on functions.
140-
/// The feature was renamed to `coverage` and the attribute to `#[coverage(on|off)]`
141-
(removed, no_coverage, "CURRENT_RUSTC_VERSION", Some(84605), None, Some("renamed to `coverage`")),
140+
/// The feature was renamed to `coverage_attribute` and the attribute to `#[coverage(on|off)]`
141+
(removed, no_coverage, "CURRENT_RUSTC_VERSION", Some(84605), None, Some("renamed to `coverage_attribute`")),
142142
/// Allows `#[no_debug]`.
143143
(removed, no_debug, "1.43.0", Some(29721), None, Some("removed due to lack of demand")),
144144
/// Allows using `#[on_unimplemented(..)]` on traits.

tests/ui/feature-gates/feature-gate-coverage-attribute.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0557]: feature has been removed
44
LL | #![feature(no_coverage)]
55
| ^^^^^^^^^^^ feature has been removed
66
|
7-
= note: renamed to `coverage`
7+
= note: renamed to `coverage_attribute`
88

99
error[E0658]: the `#[coverage]` attribute is an experimental feature
1010
--> $DIR/feature-gate-coverage-attribute.rs:10:1

0 commit comments

Comments
 (0)