The sound distributed version control system

#856 [COMPILATION] “cargo test” failed

Opened by tankf33der on December 30, 2023
tankf33der on December 30, 2023
[mpech@lambda pijul]$ cargo test
...
...
warning: unused variable: `interaction_type`
  --> pijul/tests/common/mod.rs:79:17
   |
79 |             let interaction_type = second_attempt.input;
   |                 ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interaction_type`
   |
   = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `interaction_type`
  --> pijul/tests/common/mod.rs:80:39
   |
80 |             if !matches!(&self.input, interaction_type) {
   |                                       ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interaction_type`

   Compiling libpijul v1.0.0-beta.9 (/home/mpech/pijul/libpijul)
warning: `pijul` (test "identity") generated 2 warnings (run `cargo fix --test "identity"` to apply 2 suggestions)
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
  --> libpijul/src/tests/diff.rs:71:23
   |
71 |         let mut ret = retrieve(&*txn.read(), txn.read().graph(&*channel.read()), vertex)?;
   |                       ^^^^^^^^---------------------------------------------------------- an argument of type `bool` is missing
   |
note: function defined here
  --> libpijul/src/alive/retrieve.rs:6:8
   |
6  | pub fn retrieve<T: GraphTxnT>(
   |        ^^^^^^^^
7  |     txn: &T,
   |     -------
8  |     channel: &T::Graph,
   |     ------------------
9  |     pos0: Position<ChangeId>,
   |     ------------------------
10 |     include_deleted: bool,
   |     ---------------------
help: provide the argument
   |
71 |         let mut ret = retrieve(&*txn.read(), txn.read().graph(&*channel.read()), vertex, /* bool */)?;
   |                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For more information about this error, try `rustc --explain E0061`.
error: could not compile `libpijul` (lib test) due to previous error
[mpech@lambda pijul]$ 
ryanbooker on December 31, 2023

I’ve fixed this I think… at the very least it compiles and I don’t think there are any extra failing tests beyond those already broken. :)

ryanbooker added a change on December 31, 2023
Run cargo fmt created on December 29, 2023
QKOTAOI4PC62TRGRGLPNXE2ISHEL264A56SCTGKJW6S3ZXL2RZRAC
ryanbooker added a change on December 31, 2023
NXIO54FIMH57T5DK4UPSAPUZDNU4LR336PYC57Z5O3M2H6KK7KZAC