Skip to content

2018 compatibility lint isn't firing for all imports that need to be rewritten #50660

Closed
@alexcrichton

Description

@alexcrichton

This code:

#![feature(rust_2018_preview)]
#![warn(rust_2018_breakage)]

mod m {
    use foo;

    crate fn bar() {
        foo();
    }
}

fn foo() {}

fn main() {
    m::bar();
}

on nightly produces no warnings, but to compile in the 2018 edition the use statement needs to be rewritten to crate::.

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsA-edition-2018Area: The 2018 editionF-rust_2018_preview`#![feature(rust_2018_preview)]`

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions