blob: d067db5df81e64dbe18f0c4cfec69643a269ca12 [file] [edit]
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;
}