We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdfa707 commit 46df704Copy full SHA for 46df704
crates/ide-db/src/rename.rs
@@ -390,11 +390,6 @@ pub fn source_edit_from_references(
390
let mut edited_ranges = Vec::new();
391
for &FileReference { range, ref name, .. } in references {
392
let name_range = name.text_range();
393
- if name_range.len() != range.len() {
394
- // This usage comes from a different token kind that was downmapped to a NameLike in a macro
395
- // Renaming this will most likely break things syntax-wise
396
- continue;
397
- }
398
let has_emitted_edit = match name {
399
// if the ranges differ then the node is inside a macro call, we can't really attempt
400
// to make special rewrites like shorthand syntax and such, so just rename the node in
0 commit comments