Skip to content

Commit

Permalink
Update compiler/noirc_frontend/src/parser/parser.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Apr 29, 2024
1 parent 6cc6d0e commit 1c5dced
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/noirc_frontend/src/parser/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ fn global_declaration() -> impl NoirParser<TopLevelStatement> {
attributes::validate_secondary_attributes(attributes, span, emit);

// Only comptime globals are allowed to be mutable, but we always parse the `mut`
// and throw the error in name resolution.
if let Some((_, mut_span)) = mutable {
let span = mut_span.merge(pattern.span());
pattern = Pattern::Mutable(Box::new(pattern), span, false);
Expand Down

0 comments on commit 1c5dced

Please sign in to comment.