We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36298c6 commit 38a50cfCopy full SHA for 38a50cf
crates/ide-assists/src/handlers/inline_call.rs
@@ -1798,4 +1798,25 @@ fn _hash2(self_: &u64, state: &mut u64) {
1798
"#,
1799
)
1800
}
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
+ }
1822
0 commit comments