We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fe41c93 + 9319252 commit 0b7117bCopy full SHA for 0b7117b
src/librustc_driver/driver.rs
@@ -814,7 +814,9 @@ fn write_out_deps(sess: &Session,
814
// Build a list of files used to compile the output and
815
// write Makefile-compatible dependency rules
816
let files: Vec<String> = sess.codemap().files.borrow()
817
- .iter().filter(|fmap| fmap.is_real_file())
+ .iter()
818
+ .filter(|fmap| fmap.is_real_file())
819
+ .filter(|fmap| !fmap.is_imported())
820
.map(|fmap| escape_dep_filename(&fmap.name))
821
.collect();
822
let mut file = try!(fs::File::create(&deps_filename));
0 commit comments