diff options
Diffstat (limited to 'crates/ra_ide/src/completion/complete_attribute.rs')
-rw-r--r-- | crates/ra_ide/src/completion/complete_attribute.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide/src/completion/complete_attribute.rs b/crates/ra_ide/src/completion/complete_attribute.rs index 9db317509..047299de9 100644 --- a/crates/ra_ide/src/completion/complete_attribute.rs +++ b/crates/ra_ide/src/completion/complete_attribute.rs | |||
@@ -195,7 +195,7 @@ fn parse_derive_input(derive_input: ast::TokenTree) -> Result<FxHashSet<String>, | |||
195 | 195 | ||
196 | fn get_derive_names_in_scope(ctx: &CompletionContext) -> FxHashSet<String> { | 196 | fn get_derive_names_in_scope(ctx: &CompletionContext) -> FxHashSet<String> { |
197 | let mut result = FxHashSet::default(); | 197 | let mut result = FxHashSet::default(); |
198 | ctx.scope().process_all_names(&mut |name, scope_def| { | 198 | ctx.scope.process_all_names(&mut |name, scope_def| { |
199 | if let hir::ScopeDef::MacroDef(mac) = scope_def { | 199 | if let hir::ScopeDef::MacroDef(mac) = scope_def { |
200 | if mac.is_derive_macro() { | 200 | if mac.is_derive_macro() { |
201 | result.insert(name.to_string()); | 201 | result.insert(name.to_string()); |