Do not replace items annotated with builtin attrs with the attr input

This commit is contained in:
Lukas Wirth 2021-08-18 15:35:14 +02:00
parent 8dd3a71730
commit 351cec0cb4
4 changed files with 25 additions and 18 deletions

View file

@ -34,9 +34,6 @@ macro_rules! rustc_attr {
};
}
/// Built-in macro-like attributes.
pub const EXTRA_ATTRIBUTES: &[BuiltinAttribute] = &["test", "bench"];
/// "Inert" built-in attributes that have a special meaning to rustc or rustdoc.
#[rustfmt::skip]
pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[