Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 38a50cf

Browse files
committed
test: callsites inside inline_into_callers
1 parent 36298c6 commit 38a50cf

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

crates/ide-assists/src/handlers/inline_call.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,4 +1798,25 @@ fn _hash2(self_: &u64, state: &mut u64) {
17981798
"#,
17991799
)
18001800
}
1801+
1802+
#[test]
1803+
fn inline_into_callers_in_macros_not_applicable() {
1804+
check_assist_not_applicable(
1805+
inline_into_callers,
1806+
r#"
1807+
fn foo() -> u32 {
1808+
42
1809+
}
1810+
1811+
macro_rules! bar {
1812+
($x:expr) => {
1813+
$x
1814+
};
1815+
}
1816+
1817+
fn f() {
1818+
bar!(foo$0());
1819+
}
1820+
"#);
1821+
}
18011822
}

0 commit comments

Comments
 (0)