]>
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 XL |
4 | |
5 | #![feature(crate_visibility_modifier)] | |
6 | #![feature(const_fn)] // For the unsizing cast on `&[]` | |
ba9703b0 | 7 | #![feature(const_panic)] |
dfeec247 | 8 | #![feature(in_band_lifetimes)] |
1b1a35ee | 9 | #![feature(once_cell)] |
ba9703b0 | 10 | #![feature(or_patterns)] |
dfeec247 XL |
11 | #![recursion_limit = "256"] |
12 | ||
3dfed10e XL |
13 | #[macro_use] |
14 | extern crate rustc_macros; | |
15 | ||
dfeec247 XL |
16 | #[macro_use] |
17 | extern crate rustc_data_structures; | |
18 | ||
ba9703b0 | 19 | mod arena; |
dfeec247 | 20 | pub mod def; |
ba9703b0 | 21 | pub mod definitions; |
74b04a01 | 22 | pub use rustc_span::def_id; |
dfeec247 XL |
23 | mod hir; |
24 | pub mod hir_id; | |
25 | pub mod intravisit; | |
26 | pub mod itemlikevisit; | |
74b04a01 | 27 | pub mod lang_items; |
dfeec247 | 28 | pub mod pat_util; |
dfeec247 | 29 | mod stable_hash_impls; |
74b04a01 XL |
30 | mod target; |
31 | pub mod weak_lang_items; | |
32 | ||
dfeec247 XL |
33 | pub use hir::*; |
34 | pub use hir_id::*; | |
74b04a01 | 35 | pub use lang_items::{LangItem, LanguageItems}; |
dfeec247 | 36 | pub use stable_hash_impls::HashStableContext; |
74b04a01 | 37 | pub use target::{MethodKind, Target}; |