Skip to content

uucore breaks NetBSD build, mismatched types #10435

@0323pin

Description

@0323pin

Describe the bug

Compiling nu-0.85.0 from source is now broken on NetBSD.

   Compiling uucore v0.0.21
error[E0308]: mismatched types
   --> /usr/pkgsrc/wip/nushell/work/vendor/uucore-0.0.21/src/lib/features/fs.rs:121:16
    |
111 |     pub fn number_of_links(&self) -> u64 {
    |                                      --- expected `u64` because of return type
...
121 |         return self.0.st_nlink;
    |                ^^^^^^^^^^^^^^^ expected `u64`, found `u32`
    |
help: you can convert a `u32` to a `u64`
    |
121 |         return self.0.st_nlink.into();
    |                               +++++++

For more information about this error, try `rustc --explain E0308`.
error: could not compile `uucore` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
*** Error code 101

Stop.

How to reproduce

Build from the release tarball.

Expected behavior

Successful compilation from source.

Screenshots

NA

Configuration

NA, build error

Additional context

NetBSD-10.99.7 dev OS version
Rust-1.71.1

OT, Cargo.toml states rust-version = "1.60" but, this is clearly wrong as #10113 has bumped the MSRV to 1.70

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:coreutils-uutilsChanges relating to coreutils/uutilsdeprecated:platform-specificUse a more specific platform:* label instead of this label

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions