diff options
author | Jonas Schievink <[email protected]> | 2021-03-19 13:33:31 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-03-19 13:33:31 +0000 |
commit | 506467b4c80416381423f0f17fbf97f72797499c (patch) | |
tree | fd915cff7b4a62113ebd11f3b014b71e3f38bc94 /crates/hir_def | |
parent | c0897957133dde949d9c852c49766b7d116ff6ba (diff) |
Add builtin macro-like attributes
Diffstat (limited to 'crates/hir_def')
-rw-r--r-- | crates/hir_def/src/builtin_attr.rs | 7 |
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. |
38 | pub 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] |
39 | pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ | 42 | pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[ |
40 | // ========================================================================== | 43 | // ========================================================================== |
41 | // Stable attributes: | 44 | // Stable attributes: |
42 | // ========================================================================== | 45 | // ========================================================================== |