We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4368a3b commit 3021688Copy full SHA for 3021688
crates/hir/src/code_model.rs
@@ -1284,14 +1284,12 @@ impl Impl {
1284
impls.for_trait(trait_.id).map(Self::from).collect()
1285
}
1286
1287
+ // FIXME: the return type is wrong. This should be a hir version of
1288
+ // `TraitRef` (ie, resolved `TypeRef`).
1289
pub fn target_trait(self, db: &dyn HirDatabase) -> Option<TypeRef> {
1290
db.impl_data(self.id).target_trait.clone()
1291
1292
- pub fn target_type(self, db: &dyn HirDatabase) -> TypeRef {
- db.impl_data(self.id).target_type.clone()
1293
- }
1294
-
1295
pub fn target_ty(self, db: &dyn HirDatabase) -> Type {
1296
let impl_data = db.impl_data(self.id);
1297
let resolver = self.id.resolver(db.upcast());
0 commit comments