Skip to main content

NoArgsAttributeParser

Trait NoArgsAttributeParser 

Source
pub(crate) trait NoArgsAttributeParser<S: Stage>: 'static {
    const PATH: &[Symbol];
    const ALLOWED_TARGETS: AllowedTargets;
    const CREATE: fn(Span) -> AttributeKind;
    const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error;
    const SAFETY: AttributeSafety = AttributeSafety::Normal;
}
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§

Source

const PATH: &[Symbol]

Source

const ALLOWED_TARGETS: AllowedTargets

Source

const CREATE: fn(Span) -> AttributeKind

Create the AttributeKind given attribute’s Span.

Provided Associated Constants§

Source

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

Source

const SAFETY: AttributeSafety = AttributeSafety::Normal

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 NoMangleParser

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

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 DefaultLibAllocatorParser

Source§

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

Source§

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

Source§

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

Source§

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

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 PanicRuntimeParser

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

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 RustcAsPtrParser

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

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 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 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 RustcProcMacroDeclsParser

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§

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

Source§

const PATH: &[Symbol]

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 ALLOWED_TARGETS: AllowedTargets = PROC_MACRO_ALLOWED_TARGETS

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

const PATH: &'static [Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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 RustcNeverReturnsNullPtrParser

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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

Source§

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

Source§

const PATH: &[Symbol]

Source§

const ALLOWED_TARGETS: AllowedTargets

Source§

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