New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alexcrichton opened this Issue Dec 10, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@alexcrichton
Copy link
Member

alexcrichton commented Dec 10, 2018

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!

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