Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checking bayes-star v0.1.0 (/Users/greg/Code/bayes-star/rust)
error: expected expression, found `let` statement --> src/common/run.rs:65:5 | 65 | let train_result = do_training(&mut storage); | ^^^ error: expected expression, found statement (`let`) --> src/common/run.rs:65:5 | 65 | let train_result = do_training(&mut storage); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: variable declaration using `let` is a statement error[E0425]: cannot find function `train_on_example` in this scope --> src/common/run.rs:30:15 | 30 | match train_on_example(storage, &proposition, &backlinks) { | ^^^^^^^^^^^^^^^^ not found in this scope | help: consider importing this function | 1 | use crate::model::maxent::train_on_example; | error[E0658]: `let` expressions in this position are unstable --> src/common/run.rs:65:5 | 65 | let train_result = do_training(&mut storage); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #53667 <rust-lang/rust#53667> for more information warning: unused import: `super::choose::compute_backlinks` --> src/model/maxent.rs:8:5 | 8 | use super::choose::compute_backlinks; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused import: `initialize_weights` --> src/model/maxent.rs:11:58 | 11 | use super::weights::{negative_feature, positive_feature, initialize_weights}; | ^^^^^^^^^^^^^^^^^^ error[E0308]: mismatched types --> src/common/run.rs:27:43 | 27 | let backlinks = compute_backlinks(storage, &proposition)?; | ----------------- ^^^^^^^ types differ in mutability | | | arguments to this function are incorrect | = note: expected mutable reference `&mut Storage` found reference `&Storage` note: function defined here --> src/model/choose.rs:74:8 | 74 | pub fn compute_backlinks( | ^^^^^^^^^^^^^^^^^ 75 | storage: &mut Storage, | --------------------- error[E0061]: this function takes 2 arguments but 1 argument was supplied --> src/common/run.rs:65:24 | 65 | let train_result = do_training(&mut storage); | ^^^^^^^^^^^ ------------ an argument of type `Box<(dyn LogicalModel + 'static)>` is missing | note: function defined here --> src/common/run.rs:12:8 | 12 | pub fn do_training(model:Box<dyn LogicalModel>, storage: &Storage) -> Result<(), Box<dyn Error>> { | ^^^^^^^^^^^ --------------------------- ----------------- help: provide the argument | 65 | let train_result = do_training(/* Box<(dyn LogicalModel + 'static)> */, &mut storage);
- Loading branch information