blob: 772ebb6b34f699c9d89f295a63b81fc83a6c859c [file]
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;
}