Skip to content

Compile failure with libc 0.2.90 #35

@bgilbert

Description

@bgilbert

rust-lang/libc#2116 made libc::RENAME_EXCHANGE unsigned:

error[E0308]: mismatched types
   --> src/dir.rs:371:13
    |
371 |             libc::RENAME_EXCHANGE)
    |             ^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `u32`
    |
help: you can convert a `u32` to an `i32` and panic if the converted value doesn't fit
    |
371 |             libc::RENAME_EXCHANGE.try_into().unwrap())
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions