Skip to content

Commit

Permalink
Remove VALID_ALIAS_ATTRIBUTES array (#1731)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Nov 20, 2023
1 parent fde6d22 commit bfea1ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/analyzer.rs
Original file line number Diff line number Diff line change
@@ -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>>,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit bfea1ae

Please sign in to comment.