Skip to content

Commit 0b7117b

Browse files
committed
Rollup merge of rust-lang#23090 - alexcrichton:dep-info, r=pnkfelix
Closes rust-lang#23089
2 parents fe41c93 + 9319252 commit 0b7117b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc_driver/driver.rs

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

0 commit comments

Comments
 (0)