mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
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 const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
|
||||
),
|
||||
gated!(
|
||||
coverage, Normal, template!(Word, List: "on|off"),
|
||||
WarnFollowing, EncodeCrossCrate::No,
|
||||
ErrorPreceding, EncodeCrossCrate::No,
|
||||
coverage_attribute, experimental!(coverage)
|
||||
),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user