about summary refs log tree commit diff
path: root/src/librustc_trans
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo.net>2017-04-27 16:12:57 +0200
committerMichael Woerister <michaelwoerister@posteo.net>2017-05-08 12:31:26 +0200
commit6a5e2a5a9eee3a504d89c014d80fd8f301226c27 (patch)
tree6151252de6da4e37bafc4db02151463a7d60141f /src/librustc_trans
parent70198a0a44633c7c9d14fce2159c1f750491287b (diff)
downloadrust-6a5e2a5a9eee3a504d89c014d80fd8f301226c27.tar.gz
rust-6a5e2a5a9eee3a504d89c014d80fd8f301226c27.zip
incr.comp.: Hash more pieces of crate metadata to detect changes there.
Diffstat (limited to 'src/librustc_trans')
-rw-r--r--src/librustc_trans/base.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/librustc_trans/base.rs b/src/librustc_trans/base.rs
index 56ff5ebb069..8689e176f7a 100644
--- a/src/librustc_trans/base.rs
+++ b/src/librustc_trans/base.rs
@@ -754,10 +754,7 @@ fn write_metadata<'a, 'gcx>(tcx: TyCtxt<'a, 'gcx, 'gcx>,
     }).max().unwrap();
 
     if kind == MetadataKind::None {
-        return (metadata_llcx, metadata_llmod, EncodedMetadata {
-            raw_data: vec![],
-            hashes: vec![],
-        });
+        return (metadata_llcx, metadata_llmod, EncodedMetadata::new());
     }
 
     let cstore = &tcx.sess.cstore;