From c2a63b97a80cb738f800da61c64e748994709c31 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 29 Mar 2021 17:46:33 +0200 Subject: Rename target_ty to self_ty --- crates/ide_assists/src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ide_assists/src/utils.rs') diff --git a/crates/ide_assists/src/utils.rs b/crates/ide_assists/src/utils.rs index 5f630ec75..d67524937 100644 --- a/crates/ide_assists/src/utils.rs +++ b/crates/ide_assists/src/utils.rs @@ -338,11 +338,11 @@ pub(crate) fn find_struct_impl( // (we currently use the wrong type parameter) // also we wouldn't want to use e.g. `impl S` - let same_ty = match blk.target_ty(db).as_adt() { + let same_ty = match blk.self_ty(db).as_adt() { Some(def) => def == struct_def, None => false, }; - let not_trait_impl = blk.target_trait(db).is_none(); + let not_trait_impl = blk.trait_(db).is_none(); if !(same_ty && not_trait_impl) { None -- cgit v1.2.3