summaryrefslogtreecommitdiff
path: root/src/stages/semantic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stages/semantic.rs')
-rw-r--r--src/stages/semantic.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stages/semantic.rs b/src/stages/semantic.rs
index 6cd83f8..eb9e7b6 100644
--- a/src/stages/semantic.rs
+++ b/src/stages/semantic.rs
@@ -45,7 +45,7 @@ impl SemanticParser {
match symbol {
ScopedSymbol::Global(name) => match &self.namespace {
Namespace::Macro(_) => {
- let error = SemanticError::LabelInMacroDefinition;
+ let error = SemanticError::GlobalLabelInMacroDefinition;
self.errors.push(Tracked::from(error, source.to_owned()));
None
}
@@ -62,7 +62,7 @@ impl SemanticParser {
Some(format!("{label_ns}/{name}"))
}
Namespace::None => {
- let error = SemanticError::SublabelWithoutNamespace;
+ let error = SemanticError::LocalLabelWithoutNamespace;
self.errors.push(Tracked::from(error, source.to_owned()));
None
}