blob: 57379877e76be58f3acff7e1adf9fcbcd40d4034 [file] [edit]
use rustc_feature::AttributeStability;
use super::prelude::*;
pub(crate) struct LoopMatchParser;
impl NoArgsAttributeParser for LoopMatchParser {
const PATH: &[Symbol] = &[sym::loop_match];
const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(&[Allow(Target::Expression)]);
const STABILITY: AttributeStability = unstable!(loop_match);
const CREATE: fn(Span) -> AttributeKind = AttributeKind::LoopMatch;
}
pub(crate) struct ConstContinueParser;
impl NoArgsAttributeParser for ConstContinueParser {
const PATH: &[Symbol] = &[sym::const_continue];
const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(&[Allow(Target::Expression)]);
const STABILITY: AttributeStability = unstable!(loop_match);
const CREATE: fn(Span) -> AttributeKind = AttributeKind::ConstContinue;
}