Rollup merge of #23090 - alexcrichton:dep-info, r=pnkfelix

Closes #23089
This commit is contained in:
Manish Goregaokar 2015-03-06 09:02:08 +05:30
commit 0b7117b7a3

View File

@ -814,7 +814,9 @@ fn write_out_deps(sess: &Session,
// Build a list of files used to compile the output and
// write Makefile-compatible dependency rules
let files: Vec<String> = sess.codemap().files.borrow()
.iter().filter(|fmap| fmap.is_real_file())
.iter()
.filter(|fmap| fmap.is_real_file())
.filter(|fmap| !fmap.is_imported())
.map(|fmap| escape_dep_filename(&fmap.name))
.collect();
let mut file = try!(fs::File::create(&deps_filename));