1 //! HIR datatypes. See the [rustc dev guide] for more info.
3 //! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/hir.html
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)]
18 extern crate rustc_macros;
24 extern crate rustc_data_structures;
26 extern crate self as rustc_hir;
30 pub mod def_path_hash_map;
32 pub mod diagnostic_items;
34 pub use rustc_span::def_id;
40 mod stable_hash_impls;
42 pub mod weak_lang_items;
49 pub use lang_items::{LangItem, LanguageItems};
50 pub use stable_hash_impls::HashStableContext;
51 pub use target::{MethodKind, Target};
53 arena_types!(rustc_arena::declare_arena);