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