]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_middle/ty/context.rs
code coverage foundation for hash and num_counters
[rust.git] / src / librustc_middle / ty / context.rs
index 62d6de2d71e6ddb10f6789b5a0923034bce2c795..0696cae4810ec9bb1cd1dcfdefed207d4856ddff 100644 (file)
@@ -1284,6 +1284,13 @@ pub fn create_stable_hashing_context(self) -> StableHashingContext<'tcx> {
         StableHashingContext::new(self.sess, krate, self.definitions, &*self.cstore)
     }
 
+    #[inline(always)]
+    pub fn create_no_span_stable_hashing_context(self) -> StableHashingContext<'tcx> {
+        let krate = self.gcx.untracked_crate;
+
+        StableHashingContext::ignore_spans(self.sess, krate, self.definitions, &*self.cstore)
+    }
+
     // This method makes sure that we have a DepNode and a Fingerprint for
     // every upstream crate. It needs to be called once right after the tcx is
     // created.