diff options
author | Lukas Wirth <[email protected]> | 2021-01-15 17:57:32 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-01-15 18:21:23 +0000 |
commit | cb863390f23bc2eac6561d55def9bd3ba54605fc (patch) | |
tree | b19b39d9b6231e8857a4096cc803cf35e2ddbe81 /crates/ide/src/references | |
parent | 0c58aa9dc0e24f0fa6a6ee7eb0c35041dedddb0a (diff) |
Handle self/super/crate in PathSegment as NameRef
Diffstat (limited to 'crates/ide/src/references')
-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, _) => { |