| use rustc_feature::AttributeStability; |
| |
| use super::prelude::*; |
| |
| pub(crate) struct NoLinkParser; |
| impl NoArgsAttributeParser for NoLinkParser { |
| const PATH: &[Symbol] = &[sym::no_link]; |
| const ON_DUPLICATE: OnDuplicate = OnDuplicate::Warn; |
| const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(&[ |
| Allow(Target::ExternCrate), |
| Warn(Target::Field), |
| Warn(Target::Arm), |
| Warn(Target::MacroDef), |
| ]); |
| const STABILITY: AttributeStability = AttributeStability::Stable; |
| const CREATE: fn(Span) -> AttributeKind = |_| AttributeKind::NoLink; |
| } |