blob: b817d9346dafc47ca917a7b232f3780bc7077edd [file]
//! Attributes that can be found in function body.
use rustc_feature::AttributeStability;
use super::prelude::*;
pub(crate) struct CoroutineParser;
impl NoArgsAttributeParser for CoroutineParser {
const PATH: &[Symbol] = &[sym::coroutine];
const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(&[Allow(Target::Closure)]);
const STABILITY: AttributeStability = unstable!(coroutines);
const CREATE: fn(rustc_span::Span) -> AttributeKind = |_| AttributeKind::Coroutine;
}