about summary refs log tree commit diff
path: root/src/libsyntax_pos
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/libsyntax_pos
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/libsyntax_pos')
-rw-r--r--src/libsyntax_pos/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsyntax_pos/lib.rs b/src/libsyntax_pos/lib.rs
index f46b4fcb715..ec56098aa97 100644
--- a/src/libsyntax_pos/lib.rs
+++ b/src/libsyntax_pos/lib.rs
@@ -377,6 +377,8 @@ pub struct FileMap {
     pub name: FileName,
     /// True if the `name` field above has been modified by -Zremap-path-prefix
     pub name_was_remapped: bool,
+    /// Indicates which crate this FileMap was imported from.
+    pub crate_of_origin: u32,
     /// The complete source code
     pub src: Option<Rc<String>>,
     /// The start position of this source in the CodeMap
@@ -491,6 +493,8 @@ impl Decodable for FileMap {
             Ok(FileMap {
                 name: name,
                 name_was_remapped: name_was_remapped,
+                // `crate_of_origin` has to be set by the importer.
+                crate_of_origin: 0xEFFF_FFFF,
                 start_pos: start_pos,
                 end_pos: end_pos,
                 src: None,