Skip to content

Commit 8455467

Browse files
committed
coverage: Forbid multiple #[coverage(..)] attributes
It might make sense to allow this in the future, if we add values that aren't mutually exclusive, but for now having multiple coverage attributes on one item is useless.
1 parent 684b355 commit 8455467

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_feature/src/builtin_attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
479479
),
480480
gated!(
481481
coverage, Normal, template!(Word, List: "on|off"),
482-
WarnFollowing, EncodeCrossCrate::No,
482+
ErrorPreceding, EncodeCrossCrate::No,
483483
coverage_attribute, experimental!(coverage)
484484
),
485485

0 commit comments

Comments
 (0)