mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Replace doc_comments_and_attrs
with collect_attrs
, 2nd round
This commit is contained in:
parent
3aa6306728
commit
801c0ea478
7 changed files with 57 additions and 55 deletions
|
@ -67,6 +67,18 @@ macro_rules! m { () => {} } }
|
|||
|
||||
self::m!(); self::m2!();
|
||||
//^^ error: unresolved macro `self::m2!`
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn regression_panic_with_inner_attribute_in_presence_of_unresolved_crate() {
|
||||
check_diagnostics(
|
||||
r#"
|
||||
mod _test_inner {
|
||||
#![empty_attr]
|
||||
//^^^^^^^^^^^^^^ error: unresolved macro `empty_attr`
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue