Skip to content

edition compatibility: No warning emitted for crate/macro of the same name #56684

Description

@alexcrichton

Originally reported upstream this code:

#![warn(rust_2018_compatibility)]
#![allow(unused_imports)]

#[macro_use]
extern crate toml; // 0.4.8

mod x {
    use toml;
}

when compiled emits no warnings, but when compiled in the 2018 edition fails to compile.

This appears to have something to do with the fact that the toml crate has a toml macro perhaps? It seems unclear!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-edition-2018Area: The 2018 editionA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.A-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions