about summary refs log tree commit diff
path: root/compiler/rustc_attr_parsing/src/attributes/semantics.rs
blob: d7f624832971f683df6a89de8cea7f9526e392ca (plain)
1
2
3
4
5
6
7
8
9
use super::prelude::*;

pub(crate) struct MayDangleParser;
impl<S: Stage> NoArgsAttributeParser<S> for MayDangleParser {
    const PATH: &[Symbol] = &[sym::may_dangle];
    const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn;
    const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(ALL_TARGETS); //FIXME Still checked fully in `check_attr.rs`
    const CREATE: fn(span: Span) -> AttributeKind = AttributeKind::MayDangle;
}