scryer-prolog
scryer-prolog copied to clipboard
cannot compile with debian testing: error[E0308]: mismatched types
Hello I get teh following error using master branch
matteo@debian:~/Downloads/scryer-prolog$ cargo run
Compiling to-syn-value_derive v0.1.0 (/home/matteo/Downloads/scryer-prolog/crates/to-syn-value_derive)
Compiling html5ever v0.23.0
Compiling ripemd160 v0.8.0
Compiling sha3 v0.8.2
error: expected expression, found `.`
--> crates/to-syn-value_derive/src/lib.rs:19:6
|
19 | }.into()
| ^ expected expression
error[E0308]: mismatched types
--> crates/to-syn-value_derive/src/lib.rs:9:5
|
9 | / quote! {
10 | | use to_syn_value::*;
11 | |
12 | | impl ToDeriveInput for #ty_name {
... |
18 | | }
19 | | }.into()
| |_____^ expected `()`, found struct `TokenStream2`
|
= note: this error originates in the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0308`.
error: could not compile `to-syn-value_derive` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
matteo@debian:~/Downloads/scryer-prolog$ rustc --version
rustc 1.56.0
Rust 1.57 or greater is required.
It would be nice to have a bit more updated package uploaded to https://crates.io/crates/scryer-prolog
Rust 1.57 or greater is required.
Maybe rust-version could be set in Cargo.toml
so that one would get an error pointing at the too old version?