Use the same abstraction for attrs and docs

Doc comments *are* attributes, so there's no reason to have two crates
here.
This commit is contained in:
Aleksey Kladov 2020-08-25 12:13:31 +02:00
parent 59c77ff062
commit b45dd9ef54
5 changed files with 7 additions and 12 deletions

View file

@ -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,