From 60a3785ac27d7361617977bd53e11f2859e97c7c Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Fri, 18 Dec 2020 10:26:17 +0800 Subject: Temp fixes panic caused by no ast for proc-macro --- crates/completion/src/render/macro_.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/completion/src/render/macro_.rs') diff --git a/crates/completion/src/render/macro_.rs b/crates/completion/src/render/macro_.rs index 6cfbd6c9b..dac79592f 100644 --- a/crates/completion/src/render/macro_.rs +++ b/crates/completion/src/render/macro_.rs @@ -41,6 +41,7 @@ impl<'a> MacroRender<'a> { fn render(&self, import_to_add: Option) -> Option { // FIXME: Currently proc-macro do not have ast-node, // such that it does not have source + // more discussion: https://github.com/rust-analyzer/rust-analyzer/issues/6913 if self.macro_.is_proc_macro() { return None; } -- cgit v1.2.3