rust-lang/rust

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

Closed this issue · 1 comments

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!

ehuss commented

I think this can be closed. This was fixed in 1.32 via #56759.