I cloned from Nest and ran nix-build but got some errors:
Some errors have detailed explanations: E0405, E0412, E0422, E0425, E0432, E0433.
For more information about an error, try `rustc --explain E0405`.
builder for '/nix/store/hmj2lw0jjrpfk4ay2plzda8j9i9dnq5z-rust_libpijul-1.0.0-alpha.19.drv' failed with exit code 1
cannot build derivation '/nix/store/yyp8iqy4fqmsgz7v87ziisj0g7jnssvx-rust_pijul-1.0.0-alpha.23.drv': 1 dependencies couldn't be built
error: build of '/nix/store/yyp8iqy4fqmsgz7v87ziisj0g7jnssvx-rust_pijul-1.0.0-alpha.23.drv' failed
First, I’m sorry that nest.pijul.com is down, I’ve been working hard to bring it back to life with all the upgrades (massive changes in Libpijul, Tokio 1.0) happening at the same time.
Which error is E0422? Where does the message come from in the code?
Also, are you using the latest version, i.e. 1.0.0-alpha.27 (cargo install pijul --version 1.0.0-alpha.27)?
If in doubt, you can check crates.io/crates/pijul to find out what the latest version is.
The associated type used was not defined in the trait.
Erroneous code example:
trait T1 {
type Bar;
}
type Foo = T1<F=i32>; // error: associated type `F` not found for `T1`
// or:
trait T2 {
type Bar;
// error: Baz is used but not declared
fn return_bool(&self, _: &Self::Bar, _: &Self::Baz) -> bool;
}
Make sure that you have defined the associated type in the trait body.
Also, verify that you used the right trait or you didn’t misspell the
associated type name. Example:
trait T1 {
type Bar;
}
type Foo = T1<Bar=i32>; // ok!
// or:
trait T2 {
type Bar;
type Baz; // we declare `Baz` in our trait.
// and now we can use it here:
fn return_bool(&self, _: &Self::Bar, _: &Self::Baz) -> bool;
}
Alright, sorry for the misunderstanding. I don’t think any trait is name T1 or T2 in the entire codebase, which is why I was a bit surprised.
I believe I fixed the Git feature in 1.0.0-alpha.31, does that work for you?