See this comment for details: https://github.com/rust-lang/cargo/pull/9478#issuecomment-1153392615. If it becomes a cargo issue we can track it here. In the mean time, one can delete the generated files in question . ### Tasks * [ ] make the issue reproducible and file an issue, PR (see [this comment](https://github.com/rust-lang/cargo/pull/9478#issuecomment-1153434862) for more information * [ ] maybe even provide a fix