diff options
author | Aleksey Kladov <[email protected]> | 2021-06-14 17:08:12 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-06-14 17:08:12 +0100 |
commit | 9fb67e7477a43fc91946f17c00205b7e31db00d8 (patch) | |
tree | d8bbae97eb17928ad524d9c16bb0c689119b478c /crates/ide/src/references | |
parent | 26c978f258ed2af45a6979eefea9860c1eaeacda (diff) |
internal: document rename challenges
Diffstat (limited to 'crates/ide/src/references')
-rw-r--r-- | crates/ide/src/references/rename.rs | 18 |
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#" | ||
1777 | macro_rules! m { () => { fn f() {} } } | ||
1778 | m!(); | ||
1779 | fn main() { f$0() } | ||
1780 | "#, | ||
1781 | r#" | ||
1782 | macro_rules! m { () => { fn f() {} } } | ||
1783 | lol | ||
1784 | fn main() { lol() } | ||
1785 | "#, | ||
1786 | ) | ||
1787 | } | ||
1770 | } | 1788 | } |