diff options
Diffstat (limited to 'crates/ra_ide_api/src/display/navigation_target.rs')
-rw-r--r-- | crates/ra_ide_api/src/display/navigation_target.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_ide_api/src/display/navigation_target.rs b/crates/ra_ide_api/src/display/navigation_target.rs index 640d68544..e5e1aa011 100644 --- a/crates/ra_ide_api/src/display/navigation_target.rs +++ b/crates/ra_ide_api/src/display/navigation_target.rs | |||
@@ -248,12 +248,12 @@ impl NavigationTarget { | |||
248 | } | 248 | } |
249 | 249 | ||
250 | pub(crate) fn from_macro_def(db: &RootDatabase, macro_call: hir::MacroDef) -> NavigationTarget { | 250 | pub(crate) fn from_macro_def(db: &RootDatabase, macro_call: hir::MacroDef) -> NavigationTarget { |
251 | let (file_id, node) = macro_call.source(db); | 251 | let src = macro_call.source(db); |
252 | log::debug!("nav target {}", node.syntax().debug_dump()); | 252 | log::debug!("nav target {}", src.ast.syntax().debug_dump()); |
253 | NavigationTarget::from_named( | 253 | NavigationTarget::from_named( |
254 | file_id.original_file(db), | 254 | src.file_id.original_file(db), |
255 | &*node, | 255 | &*src.ast, |
256 | node.doc_comment_text(), | 256 | src.ast.doc_comment_text(), |
257 | None, | 257 | None, |
258 | ) | 258 | ) |
259 | } | 259 | } |