]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_hir/src/lib.rs
Auto merge of #104688 - flip1995:clippyup, r=Manishearth,flip1995
[rust.git] / compiler / rustc_hir / src / lib.rs
1 //! HIR datatypes. See the [rustc dev guide] for more info.
2 //!
3 //! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/hir.html
4
5 #![feature(associated_type_defaults)]
6 #![feature(closure_track_caller)]
7 #![feature(const_btree_len)]
8 #![feature(min_specialization)]
9 #![feature(never_type)]
10 #![feature(rustc_attrs)]
11 #![feature(variant_count)]
12 #![recursion_limit = "256"]
13 #![deny(rustc::untranslatable_diagnostic)]
14 #![deny(rustc::diagnostic_outside_of_impl)]
15
16 #[macro_use]
17 extern crate rustc_macros;
18
19 #[macro_use]
20 extern crate tracing;
21
22 #[macro_use]
23 extern crate rustc_data_structures;
24
25 extern crate self as rustc_hir;
26
27 mod arena;
28 pub mod def;
29 pub mod def_path_hash_map;
30 pub mod definitions;
31 pub mod diagnostic_items;
32 pub mod errors;
33 pub use rustc_span::def_id;
34 mod hir;
35 pub mod hir_id;
36 pub mod intravisit;
37 pub mod lang_items;
38 pub mod pat_util;
39 mod stable_hash_impls;
40 mod target;
41 pub mod weak_lang_items;
42
43 #[cfg(test)]
44 mod tests;
45
46 pub use hir::*;
47 pub use hir_id::*;
48 pub use lang_items::{LangItem, LanguageItems};
49 pub use stable_hash_impls::HashStableContext;
50 pub use target::{MethodKind, Target};
51
52 arena_types!(rustc_arena::declare_arena);