Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation problems #261

Closed
UWN opened this issue Feb 20, 2020 · 4 comments
Closed

Compilation problems #261

UWN opened this issue Feb 20, 2020 · 4 comments

Comments

@UWN
Copy link

UWN commented Feb 20, 2020

$ cargo run
   Compiling scryer-prolog v0.8.118 (/opt/gupu/scryer-prolog)
error[E0008]: cannot bind by-move into a pattern guard
   --> src/prolog/machine/machine_state_impl.rs:326:67
    |
326 |                     (Addr::Lis(a1), Addr::Con(Constant::String(n, s)))
    |                                                                   ^ moves value into pattern guard

error[E0008]: cannot bind by-move into a pattern guard
   --> src/prolog/machine/machine_state_impl.rs:327:52
    |
327 |                   | (Addr::Con(Constant::String(n, s)), Addr::Lis(a1))
    |                                                    ^ moves value into pattern guard

error[E0008]: cannot bind by-move into a pattern guard
   --> src/prolog/machine/machine_state_impl.rs:360:79
    |
360 |                     (Addr::PStrLocation(h, n), Addr::Con(Constant::String(n1, s)))
    |                                                                               ^ moves value into pattern guard

error[E0008]: cannot bind by-move into a pattern guard
   --> src/prolog/machine/machine_state_impl.rs:361:53
    |
361 |                   | (Addr::Con(Constant::String(n1, s)), Addr::PStrLocation(h, n))
    |                                                     ^ moves value into pattern guard

error[E0008]: cannot bind by-move into a pattern guard
   --> src/prolog/machine/machine_state_impl.rs:489:67
    |
489 |                     (Addr::Lis(a1), Addr::Con(Constant::String(n, s)))
    |                                                                   ^ moves value into pattern guard

error[E0008]: cannot bind by-move into a pattern guard
   --> src/prolog/machine/machine_state_impl.rs:490:52
    |
490 |                   | (Addr::Con(Constant::String(n, s)), Addr::Lis(a1))
    |                                                    ^ moves value into pattern guard

error[E0008]: cannot bind by-move into a pattern guard
   --> src/prolog/machine/machine_state_impl.rs:522:79
    |
522 |                     (Addr::PStrLocation(h, n), Addr::Con(Constant::String(n1, s)))
    |                                                                               ^ moves value into pattern guard

error[E0008]: cannot bind by-move into a pattern guard
   --> src/prolog/machine/machine_state_impl.rs:523:53
    |
523 |                   | (Addr::Con(Constant::String(n1, s)), Addr::PStrLocation(h, n))
    |                                                     ^ moves value into pattern guard

error[E0008]: cannot bind by-move into a pattern guard
   --> src/prolog/machine/system_calls.rs:125:43
    |
125 |             Addr::Con(Constant::String(n, s)) if !self.flags.double_quotes.is_atom() => {
    |                                           ^ moves value into pattern guard

error: aborting due to 9 previous errors

For more information about this error, try `rustc --explain E0008`.
error: Could not compile `scryer-prolog`.

To learn more, run the command again with --verbose.
@mthom
Copy link
Owner

mthom commented Feb 20, 2020

Which version of rustc are you using? Type rustc --version. It may need an upgrade. The needed feature landed in rustc 1.39:

rust-lang/rust#63118

@UWN
Copy link
Author

UWN commented Feb 20, 2020

rustc 1.37.0 - most recent of Ubuntu 18.04.3 LTS

What platform are you using? Maybe binaries?

@mthom
Copy link
Owner

mthom commented Feb 20, 2020

I use the rustup tool. If you go to http://rustup.rs and follow the instructions from Ubuntu, you should have the latest version of rustc running.

@UWN
Copy link
Author

UWN commented Feb 21, 2020

Add to README: Remove existing rustc installation and use rustup.rs

mthom added a commit that referenced this issue Feb 23, 2020
@UWN UWN closed this as completed Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants