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

@ -1,6 +1,6 @@
//! FIXME: write short doc here
use either::Either;
use hir::{Docs, HirDisplay, Semantics, Type};
use hir::{HasAttrs, HirDisplay, Semantics, Type};
use ide_db::RootDatabase;
use stdx::format_to;
use syntax::{