Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.

Compilation on rustc 1.12.1 and 1.14.0-nightly fails #10

Closed
mokasin opened this issue Nov 8, 2016 · 3 comments
Closed

Compilation on rustc 1.12.1 and 1.14.0-nightly fails #10

mokasin opened this issue Nov 8, 2016 · 3 comments

Comments

@mokasin
Copy link

mokasin commented Nov 8, 2016

Doing a cargo update before cargo build leads to the following error:

Compiling freepass-core v0.0.0 (file:///some/path/freepass/core)
error[E0053]: method `lookup` has an incompatible type for trait
   --> some/path/freepass/core/src/attachments.rs:121:6
    |
121 |      fn lookup(&mut self, _req: &Request, parent: u64, name: &Path, reply: ReplyEntry) {
    |      ^ expected struct `std::ffi::OsStr`, found struct `std::path::Path`
    |
    = note: expected type `fn(&mut attachments::Attachments, &fuse::Request<'_>, u64, &std::ffi::OsStr, fuse::ReplyEntry)`
    = note:    found type `fn(&mut attachments::Attachments, &fuse::Request<'_>, u64, &std::path::Path, fuse::ReplyEntry)`

error[E0053]: method `mknod` has an incompatible type for trait
   --> /some/path/freepass/core/src/attachments.rs:226:6
    |
226 |      fn mknod(&mut self, _req: &Request, parent: u64, name: &Path, mode: u32, _rdev: u32, reply: ReplyEntry) {
    |      ^ expected struct `std::ffi::OsStr`, found struct `std::path::Path`
    |
    = note: expected type `fn(&mut attachments::Attachments, &fuse::Request<'_>, u64, &std::ffi::OsStr, u32, u32, fuse::ReplyEntry)`
    = note:    found type `fn(&mut attachments::Attachments, &fuse::Request<'_>, u64, &std::path::Path, u32, u32, fuse::ReplyEntry)`

error[E0053]: method `mkdir` has an incompatible type for trait
   --> /some/path/freepass/core/src/attachments.rs:235:6
    |
235 |      fn mkdir(&mut self, _req: &Request, parent: u64, name: &Path, mode: u32, reply: ReplyEntry) {
    |      ^ expected struct `std::ffi::OsStr`, found struct `std::path::Path`
    |
    = note: expected type `fn(&mut attachments::Attachments, &fuse::Request<'_>, u64, &std::ffi::OsStr, u32, fuse::ReplyEntry)`
    = note:    found type `fn(&mut attachments::Attachments, &fuse::Request<'_>, u64, &std::path::Path, u32, fuse::ReplyEntry)`

error[E0053]: method `create` has an incompatible type for trait
   --> /some/path/freepass/core/src/attachments.rs:243:6
    |
243 |      fn create(&mut self, _req: &Request, parent: u64, name: &Path, mode: u32, flags: u32, reply: ReplyCreate) {
    |      ^ expected struct `std::ffi::OsStr`, found struct `std::path::Path`
    |
    = note: expected type `fn(&mut attachments::Attachments, &fuse::Request<'_>, u64, &std::ffi::OsStr, u32, u32, fuse::ReplyCreate)`
    = note:    found type `fn(&mut attachments::Attachments, &fuse::Request<'_>, u64, &std::path::Path, u32, u32, fuse::ReplyCreate)`

error: aborting due to 4 previous errors

error: Could not compile `freepass-core`.

To learn more, run the command again with --verbose.

Steps to reproduce

git clone https://github.com/myfreeweb/freepass.git
cd freepass
git submodule update --init libsodium rusterpassword
cd "cli"
cargo update
cargo build --release
@valpackett
Copy link
Owner

rustc 0.12, seriously? That's from 2014. Rust has changed significantly since then. I only support recent compilers.

@mokasin mokasin changed the title Compilation on rustc 0.12.1 and 0.14.0-nightly fails Compilation on rustc 1.12.1 and 1.14.0-nightly fails Nov 8, 2016
@mokasin
Copy link
Author

mokasin commented Nov 8, 2016

Whoops, meant to be 1.12.1 and 1.14.0-nightly. Sorry.

@valpackett
Copy link
Owner

Oh. Sorry. Just tried compiling, got the same errors. Looks like a change in rust-fuse. Fixing this now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants