Whitelist rustc_on_unimplemented to avoid erroneous flagging as an unused attribute.

This commit is contained in:
Felix S. Klock II 2019-03-29 14:24:14 +01:00
parent 4fec737f9a
commit ff33b2733a

View File

@ -906,7 +906,7 @@ pub const BUILTIN_ATTRIBUTES: &[(&str, AttributeType, AttributeTemplate, Attribu
not currently handle destructors.",
cfg_fn!(thread_local))),
("rustc_on_unimplemented", Normal, template!(List:
("rustc_on_unimplemented", Whitelisted, template!(List:
r#"/*opt*/ message = "...", /*opt*/ label = "...", /*opt*/ note = "...""#,
NameValueStr: "message"),
Gated(Stability::Unstable,