From b45dd9ef54c668b714c6fc41bc42d415ed772f32 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 25 Aug 2020 12:13:31 +0200 Subject: Use the same abstraction for attrs and docs Doc comments *are* attributes, so there's no reason to have two crates here. --- crates/ide/src/completion/complete_trait_impl.rs | 2 +- crates/ide/src/completion/presentation.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ide/src/completion') diff --git a/crates/ide/src/completion/complete_trait_impl.rs b/crates/ide/src/completion/complete_trait_impl.rs index 1a2b1e8a5..26f268bd1 100644 --- a/crates/ide/src/completion/complete_trait_impl.rs +++ b/crates/ide/src/completion/complete_trait_impl.rs @@ -32,7 +32,7 @@ //! ``` use assists::utils::get_missing_assoc_items; -use hir::{self, Docs, HasSource}; +use hir::{self, HasAttrs, HasSource}; use syntax::{ ast::{self, edit, Impl}, AstNode, SyntaxKind, SyntaxNode, TextRange, T, diff --git a/crates/ide/src/completion/presentation.rs b/crates/ide/src/completion/presentation.rs index 3371aed2d..24c507f9b 100644 --- a/crates/ide/src/completion/presentation.rs +++ b/crates/ide/src/completion/presentation.rs @@ -1,7 +1,7 @@ //! This modules takes care of rendering various definitions as completion items. //! It also handles scoring (sorting) completions. -use hir::{Docs, HasAttrs, HasSource, HirDisplay, ModPath, ScopeDef, StructKind, Type}; +use hir::{HasAttrs, HasSource, HirDisplay, ModPath, ScopeDef, StructKind, Type}; use itertools::Itertools; use syntax::ast::NameOwner; use test_utils::mark; -- cgit v1.2.3