aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/references
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-06-14 17:08:12 +0100
committerAleksey Kladov <[email protected]>2021-06-14 17:08:12 +0100
commit9fb67e7477a43fc91946f17c00205b7e31db00d8 (patch)
treed8bbae97eb17928ad524d9c16bb0c689119b478c /crates/ide/src/references
parent26c978f258ed2af45a6979eefea9860c1eaeacda (diff)
internal: document rename challenges
Diffstat (limited to 'crates/ide/src/references')
-rw-r--r--crates/ide/src/references/rename.rs18
1 files changed, 18 insertions, 0 deletions
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; }"#,
1767 res, 1767 res,
1768 ); 1768 );
1769 } 1769 }
1770
1771 #[test]
1772 fn macros_are_broken_lol() {
1773 cov_mark::check!(macros_are_broken_lol);
1774 check(
1775 "lol",
1776 r#"
1777macro_rules! m { () => { fn f() {} } }
1778m!();
1779fn main() { f$0() }
1780"#,
1781 r#"
1782macro_rules! m { () => { fn f() {} } }
1783lol
1784fn main() { lol() }
1785"#,
1786 )
1787 }
1770} 1788}