Skip to content

Commit

Permalink
coverage: Forbid multiple #[coverage(..)] attributes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Zalathar committed Jun 24, 2024
1 parent 2c243d9 commit b5dfeba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_feature/src/builtin_attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
),

Expand Down

0 comments on commit b5dfeba

Please sign in to comment.