From 506467b4c80416381423f0f17fbf97f72797499c Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Fri, 19 Mar 2021 14:33:31 +0100 Subject: Add builtin macro-like attributes --- crates/hir_def/src/builtin_attr.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/hir_def/src/builtin_attr.rs b/crates/hir_def/src/builtin_attr.rs index 2e989c504..d5d7f0f47 100644 --- a/crates/hir_def/src/builtin_attr.rs +++ b/crates/hir_def/src/builtin_attr.rs @@ -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: // ========================================================================== -- cgit v1.2.3