From bfea1ae5f1532371bd70f6d74996123174993abb Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 20 Nov 2023 17:35:29 -0600 Subject: [PATCH] Remove VALID_ALIAS_ATTRIBUTES array (#1731) --- src/analyzer.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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,