Rollup merge of #70011 - petrochenkov:asyncice, r=Centril

def_collector: Fully visit async functions

We forgot to visit attributes previously, it caused ICEs.

Special treatment of async functions is also moved from `visit_item` to `visit_fn` to reuse more of the default visitor.

Fixes https://github.com/rust-lang/rust/issues/67778.
This commit is contained in:
Mazdak Farrokhzad 2020-03-15 15:40:12 +01:00 committed by GitHub
commit d74c5cd07c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 61 deletions

View file

@ -0,0 +1,13 @@
// check-pass
// edition:2018
macro_rules! with_doc {
($doc: expr) => {
#[doc = $doc]
async fn f() {}
};
}
with_doc!(concat!(""));
fn main() {}