aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r--crates/hir_def/src/builtin_attr.rs7
1 files changed, 5 insertions, 2 deletions
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 {
34 }; 34 };
35} 35}
36 36
37/// Attributes that have a special meaning to rustc or rustdoc. 37/// Built-in macro-like attributes.
38pub const EXTRA_ATTRIBUTES: &[BuiltinAttribute] = &["test", "bench"];
39
40/// "Inert" built-in attributes that have a special meaning to rustc or rustdoc.
38#[rustfmt::skip] 41#[rustfmt::skip]
39pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ 42pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[
40 // ========================================================================== 43 // ==========================================================================
41 // Stable attributes: 44 // Stable attributes:
42 // ========================================================================== 45 // ==========================================================================