@@ -17,7 +17,7 @@ use ide_db::{
17
17
} ;
18
18
use syntax:: {
19
19
ast:: { self , AttrKind , NameOrNameRef } ,
20
- AstNode ,
20
+ AstNode , SmolStr ,
21
21
SyntaxKind :: { self , * } ,
22
22
SyntaxToken , TextRange , TextSize , T ,
23
23
} ;
@@ -493,7 +493,7 @@ impl<'a> CompletionContext<'a> {
493
493
494
494
/// A version of [`SemanticsScope::process_all_names`] that filters out `#[doc(hidden)]` items and
495
495
/// passes all doc-aliases along, to funnel it into [`Completions::add_path_resolution`].
496
- pub ( crate ) fn process_all_names ( & self , f : & mut dyn FnMut ( Name , ScopeDef , Vec < syntax :: SmolStr > ) ) {
496
+ pub ( crate ) fn process_all_names ( & self , f : & mut dyn FnMut ( Name , ScopeDef , Vec < SmolStr > ) ) {
497
497
let _p = profile:: span ( "CompletionContext::process_all_names" ) ;
498
498
self . scope . process_all_names ( & mut |name, def| {
499
499
if self . is_scope_def_hidden ( def) {
@@ -547,7 +547,7 @@ impl<'a> CompletionContext<'a> {
547
547
self . krate != defining_crate && attrs. has_doc_hidden ( )
548
548
}
549
549
550
- fn doc_aliases ( & self , scope_def : ScopeDef ) -> Vec < syntax :: SmolStr > {
550
+ fn doc_aliases ( & self , scope_def : ScopeDef ) -> Vec < SmolStr > {
551
551
if let Some ( attrs) = scope_def. attrs ( self . db ) {
552
552
attrs. doc_aliases ( )
553
553
} else {
0 commit comments