From 9fb67e7477a43fc91946f17c00205b7e31db00d8 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 14 Jun 2021 19:08:12 +0300 Subject: internal: document rename challenges --- crates/ide/src/references/rename.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'crates/ide/src/references') diff --git a/crates/ide/src/references/rename.rs b/crates/ide/src/references/rename.rs index 88b6b1260..cec1d4552 100644 --- a/crates/ide/src/references/rename.rs +++ b/crates/ide/src/references/rename.rs @@ -1767,4 +1767,22 @@ fn f() { <()>::BAR$0; }"#, res, ); } + + #[test] + fn macros_are_broken_lol() { + cov_mark::check!(macros_are_broken_lol); + check( + "lol", + r#" +macro_rules! m { () => { fn f() {} } } +m!(); +fn main() { f$0() } +"#, + r#" +macro_rules! m { () => { fn f() {} } } +lol +fn main() { lol() } +"#, + ) + } } -- cgit v1.2.3