diff options
Diffstat (limited to 'crates/ra_hir_def/src/attr.rs')
-rw-r--r-- | crates/ra_hir_def/src/attr.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_hir_def/src/attr.rs b/crates/ra_hir_def/src/attr.rs index eee5e44bf..48ce8cd93 100644 --- a/crates/ra_hir_def/src/attr.rs +++ b/crates/ra_hir_def/src/attr.rs | |||
@@ -12,7 +12,7 @@ use ra_syntax::{ | |||
12 | use tt::Subtree; | 12 | use tt::Subtree; |
13 | 13 | ||
14 | use crate::{ | 14 | use crate::{ |
15 | db::DefDatabase2, path::Path, AdtId, AstItemDef, AttrDefId, HasChildSource, HasSource, Lookup, | 15 | db::DefDatabase, path::Path, AdtId, AstItemDef, AttrDefId, HasChildSource, HasSource, Lookup, |
16 | }; | 16 | }; |
17 | 17 | ||
18 | #[derive(Default, Debug, Clone, PartialEq, Eq)] | 18 | #[derive(Default, Debug, Clone, PartialEq, Eq)] |
@@ -32,7 +32,7 @@ impl ops::Deref for Attrs { | |||
32 | } | 32 | } |
33 | 33 | ||
34 | impl Attrs { | 34 | impl Attrs { |
35 | pub(crate) fn attrs_query(db: &impl DefDatabase2, def: AttrDefId) -> Attrs { | 35 | pub(crate) fn attrs_query(db: &impl DefDatabase, def: AttrDefId) -> Attrs { |
36 | match def { | 36 | match def { |
37 | AttrDefId::ModuleId(module) => { | 37 | AttrDefId::ModuleId(module) => { |
38 | let def_map = db.crate_def_map(module.krate); | 38 | let def_map = db.crate_def_map(module.krate); |
@@ -162,7 +162,7 @@ impl Attr { | |||
162 | fn attrs_from_ast<D, N>(src: AstId<N>, db: &D) -> Attrs | 162 | fn attrs_from_ast<D, N>(src: AstId<N>, db: &D) -> Attrs |
163 | where | 163 | where |
164 | N: ast::AttrsOwner, | 164 | N: ast::AttrsOwner, |
165 | D: DefDatabase2, | 165 | D: DefDatabase, |
166 | { | 166 | { |
167 | let hygiene = Hygiene::new(db, src.file_id()); | 167 | let hygiene = Hygiene::new(db, src.file_id()); |
168 | Attr::from_attrs_owner(&src.to_node(db), &hygiene) | 168 | Attr::from_attrs_owner(&src.to_node(db), &hygiene) |
@@ -172,7 +172,7 @@ fn attrs_from_loc<T, D>(node: T, db: &D) -> Attrs | |||
172 | where | 172 | where |
173 | T: HasSource, | 173 | T: HasSource, |
174 | T::Value: ast::AttrsOwner, | 174 | T::Value: ast::AttrsOwner, |
175 | D: DefDatabase2, | 175 | D: DefDatabase, |
176 | { | 176 | { |
177 | let src = node.source(db); | 177 | let src = node.source(db); |
178 | let hygiene = Hygiene::new(db, src.file_id); | 178 | let hygiene = Hygiene::new(db, src.file_id); |