Closed
Description
This code currently compiles on nightly:
#![warn(rust_2018_compatibility)]
#![feature(rust_2018_preview)]
macro_rules! r#async {
() => ()
}
fn main() {
async!();
}
.. with no warnings, but it should get a warning about the macro invocation!
cc @zackmdavis, do you know if there's a good location we can run lints before macro expansion? I think the bug here is that the macro is fully expanded by the time we hit the lint passes, so it's not even present in the AST.
Metadata
Metadata
Assignees
Labels
Area: The 2018 editionArea: Lints (warnings about flaws in source code) such as unused_mut.`#![feature(rust_2018_preview)]`Issue: In need of a decision.High priorityRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the language team, which will review and decide on the PR/issue.