remove forward pointer for attrs

This commit is contained in:
Aleksey Kladov 2019-10-30 18:06:08 +03:00
parent c1ed9ccc4e
commit e34e71c62d
4 changed files with 2 additions and 6 deletions

View File

@ -1 +0,0 @@
pub use hir_def::attr::*;

View File

@ -3,7 +3,7 @@
use rustc_hash::FxHashMap; use rustc_hash::FxHashMap;
use std::sync::Arc; use std::sync::Arc;
use hir_def::type_ref::TypeRef; use hir_def::{attr::Attr, type_ref::TypeRef};
use ra_arena::{impl_arena_id, map::ArenaMap, Arena, RawId}; use ra_arena::{impl_arena_id, map::ArenaMap, Arena, RawId};
use ra_cfg::CfgOptions; use ra_cfg::CfgOptions;
use ra_syntax::{ use ra_syntax::{
@ -12,7 +12,6 @@ use ra_syntax::{
}; };
use crate::{ use crate::{
attr::Attr,
code_model::{Module, ModuleSource}, code_model::{Module, ModuleSource},
db::{AstDatabase, DefDatabase, HirDatabase}, db::{AstDatabase, DefDatabase, HirDatabase},
generics::HasGenericParams, generics::HasGenericParams,

View File

@ -39,7 +39,6 @@ mod adt;
mod traits; mod traits;
mod type_alias; mod type_alias;
mod ty; mod ty;
mod attr;
mod impl_block; mod impl_block;
mod expr; mod expr;
mod lang_item; mod lang_item;

View File

@ -1,6 +1,6 @@
//! FIXME: write short doc here //! FIXME: write short doc here
use hir_def::{name, nameres::raw}; use hir_def::{attr::Attr, name, nameres::raw};
use ra_cfg::CfgOptions; use ra_cfg::CfgOptions;
use ra_db::FileId; use ra_db::FileId;
use ra_syntax::{ast, SmolStr}; use ra_syntax::{ast, SmolStr};
@ -8,7 +8,6 @@ use rustc_hash::FxHashMap;
use test_utils::tested_by; use test_utils::tested_by;
use crate::{ use crate::{
attr::Attr,
db::DefDatabase, db::DefDatabase,
ids::{AstItemDef, LocationCtx, MacroCallId, MacroCallLoc, MacroDefId, MacroFileKind}, ids::{AstItemDef, LocationCtx, MacroCallId, MacroCallLoc, MacroDefId, MacroFileKind},
nameres::{ nameres::{