aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide_db/src')
-rw-r--r--crates/ide_db/src/rename.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide_db/src/rename.rs b/crates/ide_db/src/rename.rs
index 82855725f..643e67781 100644
--- a/crates/ide_db/src/rename.rs
+++ b/crates/ide_db/src/rename.rs
@@ -143,8 +143,8 @@ impl Definition {
143 hir::GenericParam::TypeParam(type_param) => { 143 hir::GenericParam::TypeParam(type_param) => {
144 let src = type_param.source(sema.db)?; 144 let src = type_param.source(sema.db)?;
145 let name = match &src.value { 145 let name = match &src.value {
146 Either::Left(_) => return None, 146 Either::Left(type_param) => type_param.name()?,
147 Either::Right(type_param) => type_param.name()?, 147 Either::Right(_trait) => return None,
148 }; 148 };
149 src.with_value(name.syntax()).original_file_range(sema.db) 149 src.with_value(name.syntax()).original_file_range(sema.db)
150 } 150 }