Fix usage of rustc --ls on invalid files

Closes #11259
This commit is contained in:
Alex Crichton 2014-01-01 13:03:26 -08:00
parent c34ef5d7e4
commit dd33b145f3
3 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,7 @@
-include ../tools.mk
all:
$(RUSTC) foo.rs
$(RUSTC) --ls $(TMPDIR)/foo
touch $(TMPDIR)/bar
$(RUSTC) --ls $(TMPDIR)/bar

View file

@ -0,0 +1 @@
fn main() {}