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

cargo build fails on Ubuntu 18.04 #12

Closed
Kuree opened this issue Jul 1, 2018 · 2 comments
Closed

cargo build fails on Ubuntu 18.04 #12

Kuree opened this issue Jul 1, 2018 · 2 comments

Comments

@Kuree
Copy link

Kuree commented Jul 1, 2018

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
   --> src/gcsf/file_manager.rs:275:13
    |
275 |             FileId::Inode(inode) => self.node_ids.contains_key(&inode),
    |             ^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&FileId::Inode(inode)`

error[E0658]: non-reference pattern used to match a reference (see issue #42640)
   --> src/gcsf/file_manager.rs:276:13
    |
276 |             FileId::DriveId(drive_id) => self.drive_ids.contains_key(drive_id),
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&FileId::DriveId(drive_id)`

Toolchain installed:

$ rustc --version
rustc 1.25.0 (84203cac6 2018-03-25)
$ cargo --version
cargo 0.26.0 (41480f5cc 2018-02-26)
@harababurel
Copy link
Owner

The errors are caused by a feature introduced in Rust 1.26 (see heading "Nicer match bindings" in this blog post).

They should be fixed after upgrading Rust to the latest version:

$ rustup update stable

@Kuree
Copy link
Author

Kuree commented Jul 2, 2018

Thanks!

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