aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src')
-rw-r--r--crates/ide/src/references/rename.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide/src/references/rename.rs b/crates/ide/src/references/rename.rs
index 99a558532..ebb1ce7dd 100644
--- a/crates/ide/src/references/rename.rs
+++ b/crates/ide/src/references/rename.rs
@@ -415,9 +415,9 @@ fn rename_reference(
415) -> RenameResult<SourceChange> { 415) -> RenameResult<SourceChange> {
416 let ident_kind = check_identifier(new_name)?; 416 let ident_kind = check_identifier(new_name)?;
417 417
418 let def_is_lbl_or_lt = matches!(def, 418 let def_is_lbl_or_lt = matches!(
419 Definition::GenericParam(hir::GenericParam::LifetimeParam(_)) 419 def,
420 | Definition::Label(_) 420 Definition::GenericParam(hir::GenericParam::LifetimeParam(_)) | Definition::Label(_)
421 ); 421 );
422 match (ident_kind, def) { 422 match (ident_kind, def) {
423 (IdentifierKind::ToSelf, _) 423 (IdentifierKind::ToSelf, _)