]>
Commit | Line | Data |
---|---|---|
ba9703b0 | 1 | //! HIR datatypes. See the [rustc dev guide] for more info. |
dfeec247 | 2 | //! |
ba9703b0 | 3 | //! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/hir.html |
dfeec247 | 4 | |
5099ac24 | 5 | #![feature(associated_type_defaults)] |
923072b8 | 6 | #![feature(closure_track_caller)] |
3c0e092e | 7 | #![feature(const_btree_new)] |
f2b60f7d | 8 | #![cfg_attr(bootstrap, feature(let_else))] |
1b1a35ee | 9 | #![feature(once_cell)] |
17df50a5 | 10 | #![feature(min_specialization)] |
3c0e092e | 11 | #![feature(never_type)] |
5e7ed085 | 12 | #![feature(rustc_attrs)] |
dfeec247 | 13 | #![recursion_limit = "256"] |
f2b60f7d FG |
14 | #![deny(rustc::untranslatable_diagnostic)] |
15 | #![deny(rustc::diagnostic_outside_of_impl)] | |
dfeec247 | 16 | |
3dfed10e XL |
17 | #[macro_use] |
18 | extern crate rustc_macros; | |
19 | ||
f2b60f7d FG |
20 | #[macro_use] |
21 | extern crate tracing; | |
22 | ||
dfeec247 XL |
23 | #[macro_use] |
24 | extern crate rustc_data_structures; | |
25 | ||
064997fb FG |
26 | extern crate self as rustc_hir; |
27 | ||
ba9703b0 | 28 | mod arena; |
dfeec247 | 29 | pub mod def; |
c295e0f8 | 30 | pub mod def_path_hash_map; |
ba9703b0 | 31 | pub mod definitions; |
c295e0f8 | 32 | pub mod diagnostic_items; |
f2b60f7d | 33 | pub mod errors; |
74b04a01 | 34 | pub use rustc_span::def_id; |
dfeec247 XL |
35 | mod hir; |
36 | pub mod hir_id; | |
37 | pub mod intravisit; | |
74b04a01 | 38 | pub mod lang_items; |
dfeec247 | 39 | pub mod pat_util; |
dfeec247 | 40 | mod stable_hash_impls; |
74b04a01 XL |
41 | mod target; |
42 | pub mod weak_lang_items; | |
43 | ||
6a06907d XL |
44 | #[cfg(test)] |
45 | mod tests; | |
46 | ||
dfeec247 XL |
47 | pub use hir::*; |
48 | pub use hir_id::*; | |
74b04a01 | 49 | pub use lang_items::{LangItem, LanguageItems}; |
dfeec247 | 50 | pub use stable_hash_impls::HashStableContext; |
74b04a01 | 51 | pub use target::{MethodKind, Target}; |
064997fb FG |
52 | |
53 | arena_types!(rustc_arena::declare_arena); |