diff options
Diffstat (limited to 'crates/ra_ide/src/completion')
-rw-r--r-- | crates/ra_ide/src/completion/presentation.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_ide/src/completion/presentation.rs b/crates/ra_ide/src/completion/presentation.rs index bb12a1bdc..f8dac1d54 100644 --- a/crates/ra_ide/src/completion/presentation.rs +++ b/crates/ra_ide/src/completion/presentation.rs | |||
@@ -161,6 +161,12 @@ impl Completions { | |||
161 | name: Option<String>, | 161 | name: Option<String>, |
162 | macro_: hir::MacroDef, | 162 | macro_: hir::MacroDef, |
163 | ) { | 163 | ) { |
164 | // FIXME: Currently proc-macro do not have ast-node, | ||
165 | // such that it does not have source | ||
166 | if macro_.is_proc_macro() { | ||
167 | return; | ||
168 | } | ||
169 | |||
164 | let name = match name { | 170 | let name = match name { |
165 | Some(it) => it, | 171 | Some(it) => it, |
166 | None => return, | 172 | None => return, |