Skip to content

Commit 506467b

Browse files
Add builtin macro-like attributes
1 parent c089795 commit 506467b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/hir_def/src/builtin_attr.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ macro_rules! rustc_attr {
3434
};
3535
}
3636

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.
3841
#[rustfmt::skip]
39-
pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
42+
pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[
4043
// ==========================================================================
4144
// Stable attributes:
4245
// ==========================================================================

0 commit comments

Comments
 (0)