Skip to content

external libc crate triggers unstable library feature warnings #21858

Closed
@brson

Description

@brson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions