Skip to content

Compile failure with libc 0.2.90 #35

Closed

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())
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Activity

  1. cgwalters commented on Mar 19, 2021

    @cgwalters
    Contributor

    PR in #36

  2. tailhook commented on Mar 19, 2021

    @tailhook
    Owner

    Released as v0.1.20

  3. added a commit that references this issue on Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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