Check for duplicate output filenames. by ehuss · Pull Request #6308 · rust-lang/cargo (original) (raw)
@alexcrichton I didn't fully follow your last comment, because it kinda sounded like you were saying two different things. I think generating an error if the current command would generate duplicates is the right thing to do, because almost certainly that is the wrong behavior. These can be converted to warnings if needed, though.
I might follow up with a separate PR sometime later to clean up the OutputFile
calculation. It currently does not generate all outputs correctly. In particular, some debug files are missing because file_types
is making hardlinking decisions which should be deferred. Also, doc and doctests both create wrong paths (and handling doc units correctly could simplify some special cases).