Skip to main content

duplicate_declarations

Function duplicate_declarations 

Source
pub fn duplicate_declarations(
    changes: &[FileChange],
) -> Vec<DuplicateDeclaration>
Expand description

Scan the integrated after side for duplicate declarations: two definitions of the same (name, kind) in one file. Uses all_symbols() so method-level duplicates inside impl/class blocks are caught (the common CodeCRDT case), not just top-level ones. Cross-file duplicates are normal and not flagged.