aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/Cargo.toml
diff options
context:
space:
mode:
authorDanny Zhu <[email protected]>2021-04-25 21:28:38 +0100
committerDanny Zhu <[email protected]>2021-04-25 22:08:56 +0100
commit09fc5e1dd7f8635d111c12e745cf782fe3b58d95 (patch)
treed96e6a788638b64c3203b499f5f97985adab60f6 /crates/hir_def/Cargo.toml
parent1b4defd2409d6a6120b40a0730e9822a819e971d (diff)
Check more carefully for cases where a rename can't be done
Attempting to rename an element of a tuple field would previously replace the type with the new name, which doesn't make sense; now it fails instead. The check is done in both `prepare_rename` and `rename` so that the case is caught before the user is prompted for a new name. Some other existing failure cases are also now additionally checked in `prepare_rename`.
Diffstat (limited to 'crates/hir_def/Cargo.toml')
0 files changed, 0 insertions, 0 deletions