]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_hir/src/lib.rs
New upstream version 1.57.0+dfsg1
[rustc.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(crate_visibility_modifier)]
6 #![feature(in_band_lifetimes)]
7 #![feature(once_cell)]
8 #![feature(min_specialization)]
9 #![recursion_limit = "256"]
10
11 #[macro_use]
12 extern crate rustc_macros;
13
14 #[macro_use]
15 extern crate rustc_data_structures;
16
17 mod arena;
18 pub mod def;
19 pub mod def_path_hash_map;
20 pub mod definitions;
21 pub mod diagnostic_items;
22 pub use rustc_span::def_id;
23 mod hir;
24 pub mod hir_id;
25 pub mod intravisit;
26 pub mod itemlikevisit;
27 pub mod lang_items;
28 pub mod pat_util;
29 mod stable_hash_impls;
30 mod target;
31 pub mod weak_lang_items;
32
33 #[cfg(test)]
34 mod tests;
35
36 pub use hir::*;
37 pub use hir_id::*;
38 pub use lang_items::{LangItem, LanguageItems};
39 pub use stable_hash_impls::HashStableContext;
40 pub use target::{MethodKind, Target};