Skip to content

Commit b5dfeba

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 2c243d9 commit b5dfeba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_feature/src/builtin_attrs.rs

+1-1
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)