]> git.lizzy.rs Git - rust.git/blob - src/librustc/ich/mod.rs
change the format of the linked issue number
[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 pub use self::fingerprint::Fingerprint;
12 pub use self::def_path_hash::DefPathHashes;
13 pub use self::caching_codemap_view::CachingCodemapView;
14
15 mod fingerprint;
16 mod def_path_hash;
17 mod caching_codemap_view;
18
19 pub const ATTR_DIRTY: &'static str = "rustc_dirty";
20 pub const ATTR_CLEAN: &'static str = "rustc_clean";
21 pub const ATTR_DIRTY_METADATA: &'static str = "rustc_metadata_dirty";
22 pub const ATTR_CLEAN_METADATA: &'static str = "rustc_metadata_clean";
23 pub const ATTR_IF_THIS_CHANGED: &'static str = "rustc_if_this_changed";
24 pub const ATTR_THEN_THIS_WOULD_NEED: &'static str = "rustc_then_this_would_need";
25
26 pub const IGNORED_ATTRIBUTES: &'static [&'static str] = &[
27     "cfg",
28     ATTR_IF_THIS_CHANGED,
29     ATTR_THEN_THIS_WOULD_NEED,
30     ATTR_DIRTY,
31     ATTR_CLEAN,
32     ATTR_DIRTY_METADATA,
33     ATTR_CLEAN_METADATA
34 ];