Skip to content

Build failure on OpenBSD-current. #1125

Closed
@vext01

Description

@vext01
   Compiling nix v0.15.0 (/home/edd/source/nix)
error[E0308]: mismatched types
   --> src/sys/statfs.rs:111:9
    |
110 |     pub fn optimal_transfer_size(&self) -> i32 {
    |                                            --- expected `i32` because of return type
111 |         self.0.f_iosize
    |         ^^^^^^^^^^^^^^^ expected i32, found u32
help: you can convert an `u32` to `i32` and panic if the converted value wouldn't fit
    |
111 |         self.0.f_iosize.try_into().unwrap()
    |

error[E0308]: mismatched types
   --> src/sys/statfs.rs:392:9
    |
391 |     pub fn files_free(&self) -> i64 {
    |                                 --- expected `i64` because of return type
392 |         self.0.f_ffree
    |         ^^^^^^^^^^^^^^ expected i64, found u64
help: you can convert an `u64` to `i64` and panic if the converted value wouldn't fit
    |
392 |         self.0.f_ffree.try_into().unwrap()
    |

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.
error: Could not compile `nix`.

This is using the master branch, but the failure also exists on 0.15.0, but not on 0.14.1.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions