aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r--crates/ra_ide/src/completion/complete_attribute.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/crates/ra_ide/src/completion/complete_attribute.rs b/crates/ra_ide/src/completion/complete_attribute.rs
index 20e6edc17..4eaaa0b6f 100644
--- a/crates/ra_ide/src/completion/complete_attribute.rs
+++ b/crates/ra_ide/src/completion/complete_attribute.rs
@@ -3,15 +3,17 @@
3//! This module uses a bit of static metadata to provide completions 3//! This module uses a bit of static metadata to provide completions
4//! for built-in attributes. 4//! for built-in attributes.
5 5
6use super::completion_context::CompletionContext;
7use super::completion_item::{CompletionItem, CompletionItemKind, CompletionKind, Completions};
8use ast::AttrInput;
9use ra_syntax::{ 6use ra_syntax::{
10 ast::{self, AttrKind}, 7 ast::{self, AttrInput, AttrKind},
11 AstNode, SyntaxKind, 8 AstNode, SyntaxKind,
12}; 9};
13use rustc_hash::FxHashSet; 10use rustc_hash::FxHashSet;
14 11
12use crate::completion::{
13 completion_context::CompletionContext,
14 completion_item::{CompletionItem, CompletionItemKind, CompletionKind, Completions},
15};
16
15pub(super) fn complete_attribute(acc: &mut Completions, ctx: &CompletionContext) -> Option<()> { 17pub(super) fn complete_attribute(acc: &mut Completions, ctx: &CompletionContext) -> Option<()> {
16 let attribute = ctx.attribute_under_caret.as_ref()?; 18 let attribute = ctx.attribute_under_caret.as_ref()?;
17 19