diagnostics: Do not suggest using #[unix_sigpipe]
without a value
Remove `Word` from the `unix_sigpipe` attribute template so that plain `#[unix_sigpipe]` is not included in suggestions of valid forms of the attribute. Also re-arrange diagnostics code slightly to avoid duplicate diagnostics.
This commit is contained in:
parent
48a15aa2c4
commit
ee428c55b2
5 changed files with 9 additions and 16 deletions
|
@ -389,7 +389,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
|
|||
),
|
||||
|
||||
// Entry point:
|
||||
gated!(unix_sigpipe, Normal, template!(Word, NameValueStr: "inherit|sig_ign|sig_dfl"), ErrorFollowing, experimental!(unix_sigpipe)),
|
||||
gated!(unix_sigpipe, Normal, template!(NameValueStr: "inherit|sig_ign|sig_dfl"), ErrorFollowing, experimental!(unix_sigpipe)),
|
||||
ungated!(start, Normal, template!(Word), WarnFollowing, @only_local: true),
|
||||
ungated!(no_start, CrateLevel, template!(Word), WarnFollowing, @only_local: true),
|
||||
ungated!(no_main, CrateLevel, template!(Word), WarnFollowing, @only_local: true),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue