NoArgsAttributeParser

Trait NoArgsAttributeParser 

Source
pub(crate) trait NoArgsAttributeParser<S: Stage>: 'static {
    const PATH: &[Symbol];
    const ON_DUPLICATE: OnDuplicate<S>;
    const ALLOWED_TARGETS: AllowedTargets;
    const CREATE: fn(Span) -> AttributeKind;
}
Expand description

An even simpler version of SingleAttributeParser: now automatically check that there are no arguments provided to the attribute.

WithoutArgs<T> where T: NoArgsAttributeParser implements SingleAttributeParser.

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S: Stage> NoArgsAttributeParser<S> for CoroutineParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for ColdParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::Cold

Source§

impl<S: Stage> NoArgsAttributeParser<S> for EiiForeignItemParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for NoMangleParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::NoMangle

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcPassIndirectlyInNonRusticAbisParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::RustcPassIndirectlyInNonRusticAbis

Source§

impl<S: Stage> NoArgsAttributeParser<S> for ThreadLocalParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for TrackCallerParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::TrackCaller

Source§

impl<S: Stage> NoArgsAttributeParser<S> for NoCoreParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::NoCore

Source§

impl<S: Stage> NoArgsAttributeParser<S> for NoStdParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::NoStd

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcCoherenceIsCoreParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::RustcCoherenceIsCore

Source§

impl<S: Stage> NoArgsAttributeParser<S> for ExportStableParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for FfiConstParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::FfiConst

Source§

impl<S: Stage> NoArgsAttributeParser<S> for FfiPureParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::FfiPure

Source§

impl<S: Stage> NoArgsAttributeParser<S> for StdInternalSymbolParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::StdInternalSymbol

Source§

impl<S: Stage> NoArgsAttributeParser<S> for AsPtrParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::AsPtr

Source§

impl<S: Stage> NoArgsAttributeParser<S> for AutomaticallyDerivedParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::AutomaticallyDerived

Source§

impl<S: Stage> NoArgsAttributeParser<S> for PassByValueParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::PassByValue

Source§

impl<S: Stage> NoArgsAttributeParser<S> for PubTransparentParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::PubTransparent

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcShouldNotBeCalledOnConstItems

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::RustcShouldNotBeCalledOnConstItems

Source§

impl<S: Stage> NoArgsAttributeParser<S> for ConstContinueParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::ConstContinue

Source§

impl<S: Stage> NoArgsAttributeParser<S> for LoopMatchParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::LoopMatch

Source§

impl<S: Stage> NoArgsAttributeParser<S> for AllowInternalUnsafeParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for MacroEscapeParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets = MACRO_USE_ALLOWED_TARGETS

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::MacroEscape

Source§

impl<S: Stage> NoArgsAttributeParser<S> for NoImplicitPreludeParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::NoImplicitPrelude

Source§

impl<S: Stage> NoArgsAttributeParser<S> for NoLinkParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for NonExhaustiveParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::NonExhaustive

Source§

impl<S: Stage> NoArgsAttributeParser<S> for PinV2Parser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::PinV2

Source§

impl<S: Stage> NoArgsAttributeParser<S> for ProcMacroAttributeParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets = PROC_MACRO_ALLOWED_TARGETS

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::ProcMacroAttribute

Source§

impl<S: Stage> NoArgsAttributeParser<S> for ProcMacroParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets = PROC_MACRO_ALLOWED_TARGETS

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::ProcMacro

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcDumpDefParents

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcDumpItemBounds

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcDumpPredicates

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcDumpUserArgs

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcDumpVtable

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::RustcDumpVtable

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcHasIncoherentInherentImplsParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcLintDiagnosticsParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcLintOptTyParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcLintQueryInstabilityParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcLintUntrackedQueryInformationParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcMainParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcNeverReturnsNullPointerParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for RustcNoImplicitAutorefsParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for MayDangleParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(span: Span) -> AttributeKind = AttributeKind::MayDangle

Source§

impl<S: Stage> NoArgsAttributeParser<S> for ConstStabilityIndirectParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for AllowIncoherentImplParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::AllowIncoherentImpl

Source§

impl<S: Stage> NoArgsAttributeParser<S> for CoinductiveParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::Coinductive

Source§

impl<S: Stage> NoArgsAttributeParser<S> for DenyExplicitImplParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::DenyExplicitImpl

Source§

impl<S: Stage> NoArgsAttributeParser<S> for DoNotImplementViaObjectParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::DoNotImplementViaObject

Source§

impl<S: Stage> NoArgsAttributeParser<S> for FundamentalParser

Source§

impl<S: Stage> NoArgsAttributeParser<S> for MarkerParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Warn

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::Marker

Source§

impl<S: Stage> NoArgsAttributeParser<S> for ParenSugarParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::ParenSugar

Source§

impl<S: Stage> NoArgsAttributeParser<S> for PointeeParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::Pointee

Source§

impl<S: Stage> NoArgsAttributeParser<S> for SpecializationTraitParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::SpecializationTrait

Source§

impl<S: Stage> NoArgsAttributeParser<S> for TypeConstParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::TypeConst

Source§

impl<S: Stage> NoArgsAttributeParser<S> for UnsafeSpecializationMarkerParser

Source§

const PATH: &[Symbol]

Source§

const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

const CREATE: fn(Span) -> AttributeKind = AttributeKind::UnsafeSpecializationMarker