remove obsolete ExistenceError::Declaration
This commit is contained in:
@@ -415,21 +415,6 @@ impl MachineState {
|
|||||||
from: ErrorProvenance::Constructed,
|
from: ErrorProvenance::Constructed,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ExistenceError::Declaration(name, arity) => {
|
|
||||||
let culprit = functor!(atom!("/"), [atom(name), fixnum(arity)]);
|
|
||||||
|
|
||||||
let stub = functor!(
|
|
||||||
atom!("existence_error"),
|
|
||||||
[atom(atom!("declaration")), str(self.heap.len(), 0)],
|
|
||||||
[culprit]
|
|
||||||
);
|
|
||||||
|
|
||||||
MachineError {
|
|
||||||
stub,
|
|
||||||
location: None,
|
|
||||||
from: ErrorProvenance::Constructed,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ExistenceError::ModuleSource(source) => {
|
ExistenceError::ModuleSource(source) => {
|
||||||
let source_stub = source.as_functor_stub();
|
let source_stub = source.as_functor_stub();
|
||||||
|
|
||||||
@@ -1059,7 +1044,6 @@ pub enum ExistenceError {
|
|||||||
Module(Atom),
|
Module(Atom),
|
||||||
ModuleSource(ModuleSource),
|
ModuleSource(ModuleSource),
|
||||||
Procedure(Atom, usize),
|
Procedure(Atom, usize),
|
||||||
Declaration(Atom, usize),
|
|
||||||
QualifiedProcedure {
|
QualifiedProcedure {
|
||||||
module_name: Atom,
|
module_name: Atom,
|
||||||
name: Atom,
|
name: Atom,
|
||||||
|
|||||||
Reference in New Issue
Block a user