eliminate lingering attribute goals
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "scryer-prolog"
|
name = "scryer-prolog"
|
||||||
version = "0.8.111"
|
version = "0.8.112"
|
||||||
authors = ["Mark Thom <markjordanthom@gmail.com>"]
|
authors = ["Mark Thom <markjordanthom@gmail.com>"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
repository = "https://github.com/mthom/scryer-prolog"
|
repository = "https://github.com/mthom/scryer-prolog"
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ impl<'a> VariableFixtures<'a> {
|
|||||||
|
|
||||||
for term_ref in iter {
|
for term_ref in iter {
|
||||||
if let &TermRef::Var(lvl, cell, ref var) = &term_ref {
|
if let &TermRef::Var(lvl, cell, ref var) = &term_ref {
|
||||||
let mut status = self.perm_vars.remove(var).unwrap_or((
|
let mut status = self.perm_vars.swap_remove(var).unwrap_or((
|
||||||
VarStatus::Temp(chunk_num, TempVarData::new(lt_arity)),
|
VarStatus::Temp(chunk_num, TempVarData::new(lt_arity)),
|
||||||
Vec::new(),
|
Vec::new(),
|
||||||
));
|
));
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ impl AttrVarInitializer {
|
|||||||
pub(super) fn reset(&mut self) {
|
pub(super) fn reset(&mut self) {
|
||||||
self.attr_var_queue.clear();
|
self.attr_var_queue.clear();
|
||||||
self.bindings.clear();
|
self.bindings.clear();
|
||||||
|
self.attribute_goals.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user