Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile failure with libc 0.2.90 #35

Closed
bgilbert opened this issue Mar 19, 2021 · 2 comments · Fixed by #36
Closed

Compile failure with libc 0.2.90 #35

bgilbert opened this issue Mar 19, 2021 · 2 comments · Fixed by #36

Comments

@bgilbert
Copy link

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())
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@cgwalters
Copy link
Contributor

PR in #36

@tailhook
Copy link
Owner

Released as v0.1.20

@tailhook tailhook reopened this Mar 19, 2021
facebook-github-bot pushed a commit to facebookincubator/below that referenced this issue Apr 5, 2021
Summary:
Tried building open source build yesterday on my own machine and
getting errors. For example:
tailhook/openat#35. Let's just update
Cargo.lock again.

Generate with `cargo generate-lockfile`.

Reviewed By: boyuni

Differential Revision: D27540835

fbshipit-source-id: 88465b88219c740f8c2d8885ea539dbad89c9471
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants