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.