diff options
author | Edwin Cheng <[email protected]> | 2020-03-04 14:29:55 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2020-03-04 15:41:14 +0000 |
commit | 028595548bea83508c9626835ac84409c83778ed (patch) | |
tree | 09a94c9b8d4b96c960033df710b80b8b667a7098 /crates/ra_hir_expand | |
parent | e76dddd61078e1636ad8dc2ed02d53d37ae987e1 (diff) |
Fix #3436
Diffstat (limited to 'crates/ra_hir_expand')
-rw-r--r-- | crates/ra_hir_expand/src/db.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/ra_hir_expand/src/db.rs b/crates/ra_hir_expand/src/db.rs index d29985d0b..73137f33b 100644 --- a/crates/ra_hir_expand/src/db.rs +++ b/crates/ra_hir_expand/src/db.rs | |||
@@ -181,13 +181,9 @@ pub(crate) fn parse_macro( | |||
181 | err, | 181 | err, |
182 | node.value | 182 | node.value |
183 | ); | 183 | ); |
184 | 184 | let mut parent = loc.kind.file_id().call_node(db); | |
185 | let mut parent = loc.kind.file_id().call_node(db); | ||
186 | while let Some(node) = parent.clone() { | 185 | while let Some(node) = parent.clone() { |
187 | log::warn!( | 186 | log::warn!("parent: macro_call: {:#})", node.value); |
188 | "parent: macro_call: {:#})", | ||
189 | node.value | ||
190 | ); | ||
191 | parent = node.file_id.call_node(db); | 187 | parent = node.file_id.call_node(db); |
192 | } | 188 | } |
193 | } | 189 | } |