]> Repositorios git - scryer-prolog.git/commitdiff
fix failing lint warnings in beta build
authorSkgland <[email protected]>
Thu, 11 Nov 2021 17:53:08 +0000 (18:53 +0100)
committerSkgland <[email protected]>
Thu, 11 Nov 2021 17:53:08 +0000 (18:53 +0100)
src/forms.rs
src/heap_print.rs
src/machine/mod.rs
src/machine/preprocessor.rs
src/machine/stack.rs

index ed71030509c422e22e5087dd234aab406bd46433..b24884aba744c685e3beae72121839b239082341 100644 (file)
@@ -435,7 +435,7 @@ pub(crate) struct Module {
     pub(crate) meta_predicates: MetaPredicateDir,
     pub(crate) extensible_predicates: ExtensiblePredicates,
     pub(crate) local_extensible_predicates: LocalExtensiblePredicates,
-    pub(crate) is_impromptu_module: bool,
+    pub(crate) _is_impromptu_module: bool,
     pub(crate) listing_src: ListingSource,
 }
 
@@ -447,7 +447,7 @@ impl Module {
             code_dir: CodeDir::new(),
             op_dir: default_op_dir(),
             meta_predicates: MetaPredicateDir::new(),
-            is_impromptu_module: false,
+            _is_impromptu_module: false,
             extensible_predicates: ExtensiblePredicates::new(),
             local_extensible_predicates: LocalExtensiblePredicates::new(),
             listing_src,
@@ -460,7 +460,7 @@ impl Module {
             code_dir: CodeDir::new(),
             op_dir: OpDir::new(),
             meta_predicates: MetaPredicateDir::new(),
-            is_impromptu_module: false,
+            _is_impromptu_module: false,
             extensible_predicates: ExtensiblePredicates::new(),
             local_extensible_predicates: LocalExtensiblePredicates::new(),
             listing_src: ListingSource::DynamicallyGenerated,
index 7655983bf02f432d1e3985577ebe00eebd3febe2..68554d5be2e1528a1c2ee8c77eba1e89d72cd36c 100644 (file)
@@ -339,7 +339,7 @@ pub(crate) struct HCPrinter<'a, Outputter> {
     state_stack: Vec<TokenOrRedirect>,
     toplevel_spec: Option<DirectedOp>,
     heap_locs: ReverseHeapVarDict,
-    printed_vars: IndexSet<Addr>,
+    _printed_vars: IndexSet<Addr>,
     last_item_idx: usize,
     cyclic_terms: IndexMap<Addr, usize>,
     non_cyclic_terms: IndexSet<usize>,
@@ -348,7 +348,7 @@ pub(crate) struct HCPrinter<'a, Outputter> {
     pub(crate) numbervars: bool,
     pub(crate) quoted: 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,
 }
 
@@ -466,7 +466,7 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> {
             state_stack: vec![],
             heap_locs: ReverseHeapVarDict::new(),
             toplevel_spec: None,
-            printed_vars: IndexSet::new(),
+            _printed_vars: IndexSet::new(),
             last_item_idx: 0,
             numbervars: false,
             numbervars_offset: Integer::from(0),
@@ -475,7 +475,7 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> {
             cyclic_terms: IndexMap::new(),
             non_cyclic_terms: IndexSet::new(),
             var_names: IndexMap::new(),
-            print_strings_as_strs: false,
+            _print_strings_as_strs: false,
             max_depth: 0,
         }
     }
index 5712fe4dcb0952469360aebd61da28fa6cd2201c..11095caa918e62ed7cd47747bce70b82455a05f4 100644 (file)
@@ -109,7 +109,7 @@ impl LoadContext {
 #[derive(Debug)]
 pub struct Machine {
     pub(super) machine_st: MachineState,
-    pub(super) inner_heap: Heap,
+    pub(super) _inner_heap: Heap,
     pub(super) policies: MachinePolicies,
     pub(super) indices: IndexStore,
     pub(super) code_repo: CodeRepo,
@@ -280,7 +280,7 @@ impl Machine {
 
         let mut wam = Machine {
             machine_st: MachineState::new(),
-            inner_heap: Heap::new(),
+            _inner_heap: Heap::new(),
             policies: MachinePolicies::new(),
             indices: IndexStore::new(),
             code_repo: CodeRepo::new(),
index 62a446f81510659806196af738b95f96d57c6df6..317a6b94c2a33bbb1d7ccce9eacf6c6028f4190d 100644 (file)
@@ -553,14 +553,14 @@ fn qualified_clause_to_query_term<'a>(
 
 #[derive(Debug)]
 pub(crate) struct Preprocessor {
-    flags: MachineFlags,
+    _flags: MachineFlags,
     queue: VecDeque<VecDeque<Term>>,
 }
 
 impl Preprocessor {
     pub(super) fn new(flags: MachineFlags) -> Self {
         Preprocessor {
-            flags,
+            _flags: flags,
             queue: VecDeque::new(),
         }
     }
index c259ee5edc6370f11338a7f198dbbd2004724358..11b0a8f0f86b187529b2e906bc5319f28bcdd072 100644 (file)
@@ -109,7 +109,7 @@ pub(crate) struct OrFramePrelude {
     pub(crate) b: usize,
     pub(crate) bp: LocalCodePtr,
     pub(crate) tr: usize,
-    pub(crate) pstr_tr: usize,
+    pub(crate) _pstr_tr: usize,
     pub(crate) h: usize,
     pub(crate) b0: usize,
 }