]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_hir/src/lib.rs
Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk
[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(let_chains)]
9 #![feature(min_specialization)]
10 #![feature(never_type)]
11 #![feature(rustc_attrs)]
12 #![feature(variant_count)]
13 #![recursion_limit = "256"]
14 #![deny(rustc::untranslatable_diagnostic)]
15 #![deny(rustc::diagnostic_outside_of_impl)]
16
17 #[macro_use]
18 extern crate rustc_macros;
19
20 #[macro_use]
21 extern crate tracing;
22
23 #[macro_use]
24 extern crate rustc_data_structures;
25
26 extern crate self as rustc_hir;
27
28 mod arena;
29 pub mod def;
30 pub mod def_path_hash_map;
31 pub mod definitions;
32 pub mod diagnostic_items;
33 pub mod errors;
34 pub use rustc_span::def_id;
35 mod hir;
36 pub mod hir_id;
37 pub mod intravisit;
38 pub mod lang_items;
39 pub mod pat_util;
40 mod stable_hash_impls;
41 mod target;
42 pub mod weak_lang_items;
43
44 #[cfg(test)]
45 mod tests;
46
47 pub use hir::*;
48 pub use hir_id::*;
49 pub use lang_items::{LangItem, LanguageItems};
50 pub use stable_hash_impls::HashStableContext;
51 pub use target::{MethodKind, Target};
52
53 arena_types!(rustc_arena::declare_arena);