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

external libc crate triggers unstable library feature warnings #21858

Closed
brson opened this issue Feb 2, 2015 · 2 comments
Closed

external libc crate triggers unstable library feature warnings #21858

brson opened this issue Feb 2, 2015 · 2 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@brson
Copy link
Contributor

brson commented Feb 2, 2015

I have a cargo project that links to libc 0.1.1. I see this warning

src/lib.rs:4:1: 4:19 warning: use of unstable library feature 'libc'
src/lib.rs:4 extern crate libc;
             ^~~~~~~~~~~~~~~~~~
src/lib.rs:4:1: 4:19 help: add #![feature(libc)] to the crate attributes to silence this warning
src/lib.rs:4 extern crate libc;
             ^~~~~~~~~~~~~~~~~~

This shouldn't happen with the out-of-tree crate.

@steveklabnik steveklabnik added the A-diagnostics Area: Messages for errors, warnings, and lints label Feb 2, 2015
@alexcrichton
Copy link
Member

Dupe of #21771

@alexcrichton
Copy link
Member

(fixed by #21782)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

No branches or pull requests

3 participants