Add builtin macro-like attributes

This commit is contained in:
Jonas Schievink 2021-03-19 14:33:31 +01:00
parent c089795713
commit 506467b4c8

View File

@ -34,9 +34,12 @@ macro_rules! rustc_attr {
};
}
/// Attributes that have a special meaning to rustc or rustdoc.
/// Built-in macro-like attributes.
pub const EXTRA_ATTRIBUTES: &[BuiltinAttribute] = &["test", "bench"];
/// "Inert" built-in attributes that have a special meaning to rustc or rustdoc.
#[rustfmt::skip]
pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[
// ==========================================================================
// Stable attributes:
// ==========================================================================