Skip to content

Commit b0e5d1e

Browse files
bors[bot]matklad
andauthored
Merge #6920
6920: Minor API cleanup r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents ce3db6c + 3021688 commit b0e5d1e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/hir/src/code_model.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,14 +1284,12 @@ impl Impl {
12841284
impls.for_trait(trait_.id).map(Self::from).collect()
12851285
}
12861286

1287+
// FIXME: the return type is wrong. This should be a hir version of
1288+
// `TraitRef` (ie, resolved `TypeRef`).
12871289
pub fn target_trait(self, db: &dyn HirDatabase) -> Option<TypeRef> {
12881290
db.impl_data(self.id).target_trait.clone()
12891291
}
12901292

1291-
pub fn target_type(self, db: &dyn HirDatabase) -> TypeRef {
1292-
db.impl_data(self.id).target_type.clone()
1293-
}
1294-
12951293
pub fn target_ty(self, db: &dyn HirDatabase) -> Type {
12961294
let impl_data = db.impl_data(self.id);
12971295
let resolver = self.id.resolver(db.upcast());

0 commit comments

Comments
 (0)