]> git.lizzy.rs Git - rust.git/blob - src/librustc/ich/mod.rs
Auto merge of #44350 - GuillaumeGomez:id-false-positive, r=QuietMisdreavus
[rust.git] / src / librustc / ich / mod.rs
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.
4 //
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.
10
11 //! ICH - Incremental Compilation Hash
12
13 pub use self::fingerprint::Fingerprint;
14 pub use self::caching_codemap_view::CachingCodemapView;
15 pub use self::hcx::{StableHashingContext, NodeIdHashingMode,
16                     hash_stable_trait_impls};
17 mod fingerprint;
18 mod caching_codemap_view;
19 mod hcx;
20
21 mod impls_const_math;
22 mod impls_cstore;
23 mod impls_hir;
24 mod impls_mir;
25 mod impls_misc;
26 mod impls_ty;
27 mod impls_syntax;
28
29 pub const ATTR_DIRTY: &'static str = "rustc_dirty";
30 pub const ATTR_CLEAN: &'static str = "rustc_clean";
31 pub const ATTR_DIRTY_METADATA: &'static str = "rustc_metadata_dirty";
32 pub const ATTR_CLEAN_METADATA: &'static str = "rustc_metadata_clean";
33 pub const ATTR_IF_THIS_CHANGED: &'static str = "rustc_if_this_changed";
34 pub const ATTR_THEN_THIS_WOULD_NEED: &'static str = "rustc_then_this_would_need";
35 pub const ATTR_PARTITION_REUSED: &'static str = "rustc_partition_reused";
36 pub const ATTR_PARTITION_TRANSLATED: &'static str = "rustc_partition_translated";
37
38
39 pub const DEP_GRAPH_ASSERT_ATTRS: &'static [&'static str] = &[
40     ATTR_IF_THIS_CHANGED,
41     ATTR_THEN_THIS_WOULD_NEED,
42     ATTR_DIRTY,
43     ATTR_CLEAN,
44     ATTR_DIRTY_METADATA,
45     ATTR_CLEAN_METADATA,
46     ATTR_PARTITION_REUSED,
47     ATTR_PARTITION_TRANSLATED,
48 ];
49
50 pub const IGNORED_ATTRIBUTES: &'static [&'static str] = &[
51     "cfg",
52     ATTR_IF_THIS_CHANGED,
53     ATTR_THEN_THIS_WOULD_NEED,
54     ATTR_DIRTY,
55     ATTR_CLEAN,
56     ATTR_DIRTY_METADATA,
57     ATTR_CLEAN_METADATA,
58     ATTR_PARTITION_REUSED,
59     ATTR_PARTITION_TRANSLATED,
60 ];