scryer-prolog icon indicating copy to clipboard operation
scryer-prolog copied to clipboard

cannot compile with debian testing: error[E0308]: mismatched types

Open matteoredaelli opened this issue 2 years ago • 3 comments

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

matteoredaelli avatar Mar 08 '22 13:03 matteoredaelli

Rust 1.57 or greater is required.

mthom avatar Mar 08 '22 15:03 mthom

It would be nice to have a bit more updated package uploaded to https://crates.io/crates/scryer-prolog

matteoredaelli avatar Mar 08 '22 15:03 matteoredaelli

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?

Skgland avatar Mar 08 '22 17:03 Skgland