Skip to content

Commit dc8e2fe

Browse files
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]>
2 parents c089795 + 506467b commit dc8e2fe

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)