fix failing lint warnings in beta build
This commit is contained in:
@@ -435,7 +435,7 @@ pub(crate) struct Module {
|
|||||||
pub(crate) meta_predicates: MetaPredicateDir,
|
pub(crate) meta_predicates: MetaPredicateDir,
|
||||||
pub(crate) extensible_predicates: ExtensiblePredicates,
|
pub(crate) extensible_predicates: ExtensiblePredicates,
|
||||||
pub(crate) local_extensible_predicates: LocalExtensiblePredicates,
|
pub(crate) local_extensible_predicates: LocalExtensiblePredicates,
|
||||||
pub(crate) is_impromptu_module: bool,
|
pub(crate) _is_impromptu_module: bool,
|
||||||
pub(crate) listing_src: ListingSource,
|
pub(crate) listing_src: ListingSource,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -447,7 +447,7 @@ impl Module {
|
|||||||
code_dir: CodeDir::new(),
|
code_dir: CodeDir::new(),
|
||||||
op_dir: default_op_dir(),
|
op_dir: default_op_dir(),
|
||||||
meta_predicates: MetaPredicateDir::new(),
|
meta_predicates: MetaPredicateDir::new(),
|
||||||
is_impromptu_module: false,
|
_is_impromptu_module: false,
|
||||||
extensible_predicates: ExtensiblePredicates::new(),
|
extensible_predicates: ExtensiblePredicates::new(),
|
||||||
local_extensible_predicates: LocalExtensiblePredicates::new(),
|
local_extensible_predicates: LocalExtensiblePredicates::new(),
|
||||||
listing_src,
|
listing_src,
|
||||||
@@ -460,7 +460,7 @@ impl Module {
|
|||||||
code_dir: CodeDir::new(),
|
code_dir: CodeDir::new(),
|
||||||
op_dir: OpDir::new(),
|
op_dir: OpDir::new(),
|
||||||
meta_predicates: MetaPredicateDir::new(),
|
meta_predicates: MetaPredicateDir::new(),
|
||||||
is_impromptu_module: false,
|
_is_impromptu_module: false,
|
||||||
extensible_predicates: ExtensiblePredicates::new(),
|
extensible_predicates: ExtensiblePredicates::new(),
|
||||||
local_extensible_predicates: LocalExtensiblePredicates::new(),
|
local_extensible_predicates: LocalExtensiblePredicates::new(),
|
||||||
listing_src: ListingSource::DynamicallyGenerated,
|
listing_src: ListingSource::DynamicallyGenerated,
|
||||||
|
|||||||
@@ -339,7 +339,7 @@ pub(crate) struct HCPrinter<'a, Outputter> {
|
|||||||
state_stack: Vec<TokenOrRedirect>,
|
state_stack: Vec<TokenOrRedirect>,
|
||||||
toplevel_spec: Option<DirectedOp>,
|
toplevel_spec: Option<DirectedOp>,
|
||||||
heap_locs: ReverseHeapVarDict,
|
heap_locs: ReverseHeapVarDict,
|
||||||
printed_vars: IndexSet<Addr>,
|
_printed_vars: IndexSet<Addr>,
|
||||||
last_item_idx: usize,
|
last_item_idx: usize,
|
||||||
cyclic_terms: IndexMap<Addr, usize>,
|
cyclic_terms: IndexMap<Addr, usize>,
|
||||||
non_cyclic_terms: IndexSet<usize>,
|
non_cyclic_terms: IndexSet<usize>,
|
||||||
@@ -348,7 +348,7 @@ pub(crate) struct HCPrinter<'a, Outputter> {
|
|||||||
pub(crate) numbervars: bool,
|
pub(crate) numbervars: bool,
|
||||||
pub(crate) quoted: bool,
|
pub(crate) quoted: bool,
|
||||||
pub(crate) ignore_ops: bool,
|
pub(crate) ignore_ops: bool,
|
||||||
pub(crate) print_strings_as_strs: bool,
|
pub(crate) _print_strings_as_strs: bool,
|
||||||
pub(crate) max_depth: usize,
|
pub(crate) max_depth: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -466,7 +466,7 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> {
|
|||||||
state_stack: vec![],
|
state_stack: vec![],
|
||||||
heap_locs: ReverseHeapVarDict::new(),
|
heap_locs: ReverseHeapVarDict::new(),
|
||||||
toplevel_spec: None,
|
toplevel_spec: None,
|
||||||
printed_vars: IndexSet::new(),
|
_printed_vars: IndexSet::new(),
|
||||||
last_item_idx: 0,
|
last_item_idx: 0,
|
||||||
numbervars: false,
|
numbervars: false,
|
||||||
numbervars_offset: Integer::from(0),
|
numbervars_offset: Integer::from(0),
|
||||||
@@ -475,7 +475,7 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> {
|
|||||||
cyclic_terms: IndexMap::new(),
|
cyclic_terms: IndexMap::new(),
|
||||||
non_cyclic_terms: IndexSet::new(),
|
non_cyclic_terms: IndexSet::new(),
|
||||||
var_names: IndexMap::new(),
|
var_names: IndexMap::new(),
|
||||||
print_strings_as_strs: false,
|
_print_strings_as_strs: false,
|
||||||
max_depth: 0,
|
max_depth: 0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ impl LoadContext {
|
|||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Machine {
|
pub struct Machine {
|
||||||
pub(super) machine_st: MachineState,
|
pub(super) machine_st: MachineState,
|
||||||
pub(super) inner_heap: Heap,
|
pub(super) _inner_heap: Heap,
|
||||||
pub(super) policies: MachinePolicies,
|
pub(super) policies: MachinePolicies,
|
||||||
pub(super) indices: IndexStore,
|
pub(super) indices: IndexStore,
|
||||||
pub(super) code_repo: CodeRepo,
|
pub(super) code_repo: CodeRepo,
|
||||||
@@ -280,7 +280,7 @@ impl Machine {
|
|||||||
|
|
||||||
let mut wam = Machine {
|
let mut wam = Machine {
|
||||||
machine_st: MachineState::new(),
|
machine_st: MachineState::new(),
|
||||||
inner_heap: Heap::new(),
|
_inner_heap: Heap::new(),
|
||||||
policies: MachinePolicies::new(),
|
policies: MachinePolicies::new(),
|
||||||
indices: IndexStore::new(),
|
indices: IndexStore::new(),
|
||||||
code_repo: CodeRepo::new(),
|
code_repo: CodeRepo::new(),
|
||||||
|
|||||||
@@ -553,14 +553,14 @@ fn qualified_clause_to_query_term<'a>(
|
|||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub(crate) struct Preprocessor {
|
pub(crate) struct Preprocessor {
|
||||||
flags: MachineFlags,
|
_flags: MachineFlags,
|
||||||
queue: VecDeque<VecDeque<Term>>,
|
queue: VecDeque<VecDeque<Term>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Preprocessor {
|
impl Preprocessor {
|
||||||
pub(super) fn new(flags: MachineFlags) -> Self {
|
pub(super) fn new(flags: MachineFlags) -> Self {
|
||||||
Preprocessor {
|
Preprocessor {
|
||||||
flags,
|
_flags: flags,
|
||||||
queue: VecDeque::new(),
|
queue: VecDeque::new(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ pub(crate) struct OrFramePrelude {
|
|||||||
pub(crate) b: usize,
|
pub(crate) b: usize,
|
||||||
pub(crate) bp: LocalCodePtr,
|
pub(crate) bp: LocalCodePtr,
|
||||||
pub(crate) tr: usize,
|
pub(crate) tr: usize,
|
||||||
pub(crate) pstr_tr: usize,
|
pub(crate) _pstr_tr: usize,
|
||||||
pub(crate) h: usize,
|
pub(crate) h: usize,
|
||||||
pub(crate) b0: usize,
|
pub(crate) b0: usize,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user