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.
This commit is contained in:
parent
2c243d9570
commit
b5dfeba0e1
@ -479,7 +479,7 @@ pub struct BuiltinAttribute {
|
|||||||
),
|
),
|
||||||
gated!(
|
gated!(
|
||||||
coverage, Normal, template!(Word, List: "on|off"),
|
coverage, Normal, template!(Word, List: "on|off"),
|
||||||
WarnFollowing, EncodeCrossCrate::No,
|
ErrorPreceding, EncodeCrossCrate::No,
|
||||||
coverage_attribute, experimental!(coverage)
|
coverage_attribute, experimental!(coverage)
|
||||||
),
|
),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user