aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-03-19 13:33:31 +0000
committerJonas Schievink <[email protected]>2021-03-19 13:33:31 +0000
commit506467b4c80416381423f0f17fbf97f72797499c (patch)
treefd915cff7b4a62113ebd11f3b014b71e3f38bc94 /crates/hir_def
parentc0897957133dde949d9c852c49766b7d116ff6ba (diff)
Add builtin macro-like attributes
Diffstat (limited to 'crates/hir_def')
-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 // ==========================================================================