Closed
Description
cargo fix appears to try and apply its fixes multiple times if a file is used multiple times. This can be a problem when using "support" modules for tests as cargo fix can end up calculating the locations for the fixes on the original file for two test, apply them for the first test and then apply them for the second test, only the file has now changed and the fix gets applied in the wrong location. (At least that is what appears to happen).
tests/
a.rs
b.rs
support/mod.rs # Used by a.rs and b.rs
Workaround is to specify --jobs 1
when running cargo fix