mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-05-06 00:54:15 +00:00
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`.