1 // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 //! ICH - Incremental Compilation Hash
13 pub use self::fingerprint::Fingerprint;
14 pub use self::caching_codemap_view::CachingCodemapView;
15 pub use self::hcx::{StableHashingContextProvider, StableHashingContext, NodeIdHashingMode,
16 hash_stable_trait_impls, compute_ignored_attr_names};
18 mod caching_codemap_view;
28 pub const ATTR_DIRTY: &'static str = "rustc_dirty";
29 pub const ATTR_CLEAN: &'static str = "rustc_clean";
30 pub const ATTR_IF_THIS_CHANGED: &'static str = "rustc_if_this_changed";
31 pub const ATTR_THEN_THIS_WOULD_NEED: &'static str = "rustc_then_this_would_need";
32 pub const ATTR_PARTITION_REUSED: &'static str = "rustc_partition_reused";
33 pub const ATTR_PARTITION_CODEGENED: &'static str = "rustc_partition_codegened";
36 pub const DEP_GRAPH_ASSERT_ATTRS: &'static [&'static str] = &[
38 ATTR_THEN_THIS_WOULD_NEED,
41 ATTR_PARTITION_REUSED,
42 ATTR_PARTITION_CODEGENED,
45 pub const IGNORED_ATTRIBUTES: &'static [&'static str] = &[
48 ATTR_THEN_THIS_WOULD_NEED,
51 ATTR_PARTITION_REUSED,
52 ATTR_PARTITION_CODEGENED,