aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-03-19 13:34:46 +0000
committerGitHub <[email protected]>2021-03-19 13:34:46 +0000
commitdc8e2fea98aecbba0c587e5999b9e09533e0091c (patch)
treefd915cff7b4a62113ebd11f3b014b71e3f38bc94
parentc0897957133dde949d9c852c49766b7d116ff6ba (diff)
parent506467b4c80416381423f0f17fbf97f72797499c (diff)
Merge #8106
8106: Add builtin macro-like attributes r=jonas-schievink a=jonas-schievink We also have to know about these to resolve them bors r+ Co-authored-by: Jonas Schievink <[email protected]>
-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 // ==========================================================================