diff options
Diffstat (limited to 'crates/ide/src/references/rename.rs')
-rw-r--r-- | crates/ide/src/references/rename.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/references/rename.rs b/crates/ide/src/references/rename.rs index 039efb26f..9ac4af026 100644 --- a/crates/ide/src/references/rename.rs +++ b/crates/ide/src/references/rename.rs | |||
@@ -444,7 +444,7 @@ fn rename_reference( | |||
444 | mark::hit!(rename_not_an_ident_ref); | 444 | mark::hit!(rename_not_an_ident_ref); |
445 | bail!("Invalid name `{}`: not an identifier", new_name) | 445 | bail!("Invalid name `{}`: not an identifier", new_name) |
446 | } | 446 | } |
447 | (IdentifierKind::ToSelf, ReferenceKind::SelfKw) => { | 447 | (IdentifierKind::ToSelf, ReferenceKind::SelfParam) => { |
448 | unreachable!("rename_self_to_param should've been called instead") | 448 | unreachable!("rename_self_to_param should've been called instead") |
449 | } | 449 | } |
450 | (IdentifierKind::ToSelf, _) => { | 450 | (IdentifierKind::ToSelf, _) => { |