]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_hir/src/lib.rs
Rollup merge of #93147 - nnethercote:interner-cleanups, r=lcnr
[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(const_btree_new)]
7 #![feature(crate_visibility_modifier)]
8 #![feature(once_cell)]
9 #![feature(min_specialization)]
10 #![feature(never_type)]
11 #![recursion_limit = "256"]
12
13 #[macro_use]
14 extern crate rustc_macros;
15
16 #[macro_use]
17 extern crate rustc_data_structures;
18
19 mod arena;
20 pub mod def;
21 pub mod def_path_hash_map;
22 pub mod definitions;
23 pub mod diagnostic_items;
24 pub use rustc_span::def_id;
25 mod hir;
26 pub mod hir_id;
27 pub mod intravisit;
28 pub mod itemlikevisit;
29 pub mod lang_items;
30 pub mod pat_util;
31 mod stable_hash_impls;
32 mod target;
33 pub mod weak_lang_items;
34
35 #[cfg(test)]
36 mod tests;
37
38 pub use hir::*;
39 pub use hir_id::*;
40 pub use lang_items::{LangItem, LanguageItems};
41 pub use stable_hash_impls::HashStableContext;
42 pub use target::{MethodKind, Target};