diff --git a/src/analyzer.rs b/src/analyzer.rs index 8db272e..4516621 100644 --- a/src/analyzer.rs +++ b/src/analyzer.rs @@ -1,7 +1,5 @@ use {super::*, CompileErrorKind::*}; -const VALID_ALIAS_ATTRIBUTES: [Attribute; 1] = [Attribute::Private]; - #[derive(Default)] pub(crate) struct Analyzer<'src> { assignments: Table<'src, Assignment<'src>>, @@ -150,7 +148,7 @@ impl<'src> Analyzer<'src> { } for attr in &alias.attributes { - if !VALID_ALIAS_ATTRIBUTES.contains(attr) { + if *attr != Attribute::Private { return Err(alias.name.token().error(AliasInvalidAttribute { alias: name, attr: *attr,