]> git.lizzy.rs Git - rust.git/commit
Prevent rustc overwriting input files
authorvarkor <github@varkor.com>
Mon, 18 Dec 2017 15:35:45 +0000 (15:35 +0000)
committervarkor <github@varkor.com>
Mon, 18 Dec 2017 15:35:45 +0000 (15:35 +0000)
commitc76cdce3d953759a53d4990af0f5fb472cbc04de
treedcbcbc14b7064b3da433a12cc9bba35969e1ea03
parent53a6d14e5bb8b1915a5f0b9371bbf0da934ed052
Prevent rustc overwriting input files

If rustc is invoked on a file that would be overwritten by the
compilation, the compilation now fails, to avoid accidental loss. This
resolves #13019.
src/librustc/session/config.rs
src/librustc_driver/lib.rs
src/test/run-make/output-filename-overwrites-input/Makefile [new file with mode: 0644]
src/test/run-make/output-filename-overwrites-input/foo.rs [new file with mode: 0644]
src/test/run-make/weird-output-filenames/Makefile