Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_completion/src/completions/qualified_path.rs')
| -rw-r--r-- | crates/ide_completion/src/completions/qualified_path.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/crates/ide_completion/src/completions/qualified_path.rs b/crates/ide_completion/src/completions/qualified_path.rs index c4ba77b3f7..acd02616b1 100644 --- a/crates/ide_completion/src/completions/qualified_path.rs +++ b/crates/ide_completion/src/completions/qualified_path.rs @@ -63,7 +63,13 @@ pub(crate) fn complete_qualified_path(acc: &mut Completions, ctx: &CompletionCon } match kind { - Some(PathKind::Pat | PathKind::Attr { .. } | PathKind::Vis { .. } | PathKind::Use) => { + Some( + PathKind::Pat + | PathKind::Attr { .. } + | PathKind::Vis { .. } + | PathKind::Use + | PathKind::Derive, + ) => { return; } _ => { @@ -415,10 +421,10 @@ macro_rules! foo { () => {} } fn main() { let _ = crate::$0 } "#, - expect![[r##" + expect![[r#" fn main() fn() - ma foo!(…) #[macro_export] macro_rules! foo - "##]], + ma foo!(…) macro_rules! foo + "#]], ); } |