diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-14 20:44:59 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-14 20:44:59 +0100 |
commit | 447d849c9ecb3d0f7783a56db429ccc526d0d8dc (patch) | |
tree | b6325f21f742f55d225caebad4d5ac057f683855 /crates/ide_db/src | |
parent | ce8fdf3ab05b59b517dee985e4b3828c6e373a91 (diff) | |
parent | c2015e7d182f3cb2cebe686127dd6a3e683df9e6 (diff) |
Merge #9277
9277: internal: more natural order of sources for TypeParam r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide_db/src')
-rw-r--r-- | crates/ide_db/src/rename.rs | 4 |
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 | } |