Skip to content

Lint for adding crate:: misses a renamed extern crate: #50996

Closed
@alexcrichton

Description

@alexcrichton

The following code:

#![warn(rust_2018_compatibility)]
#![allow(dead_code, unused_imports)]
#![feature(rust_2018_preview)]

extern crate libc as foo;

use foo::getpid;

fn main() {}

generates no warnings, but when compiling with --edition 2018 it will yield an error about no crate foo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions