v4
This commit is contained in:
parent
a0c8bee35e
commit
0118741632
@ -93,13 +93,7 @@ impl Definition {
|
|||||||
bail!("Cannot rename a builtin attr.")
|
bail!("Cannot rename a builtin attr.")
|
||||||
}
|
}
|
||||||
Definition::SelfType(_) => bail!("Cannot rename `Self`"),
|
Definition::SelfType(_) => bail!("Cannot rename `Self`"),
|
||||||
Definition::Macro(mac) => {
|
Definition::Macro(mac) => rename_reference(sema, Definition::Macro(mac), new_name),
|
||||||
if mac.is_builtin_derive(sema.db) {
|
|
||||||
bail!("Cannot rename builtin derive")
|
|
||||||
}
|
|
||||||
|
|
||||||
rename_reference(sema, Definition::Macro(mac), new_name)
|
|
||||||
}
|
|
||||||
def => rename_reference(sema, def, new_name),
|
def => rename_reference(sema, def, new_name),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user