rustc_hir/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// tidy-alphabetical-start
6#![allow(internal_features)]
7#![feature(associated_type_defaults)]
8#![feature(closure_track_caller)]
9#![feature(debug_closure_helpers)]
10#![feature(exhaustive_patterns)]
11#![feature(negative_impls)]
12#![feature(never_type)]
13#![feature(rustc_attrs)]
14#![feature(variant_count)]
15#![recursion_limit = "256"]
16// tidy-alphabetical-end
17
18extern crate self as rustc_hir;
19
20mod arena;
21pub mod attrs;
22pub mod def;
23pub mod def_path_hash_map;
24pub mod definitions;
25pub mod diagnostic_items;
26pub use rustc_span::def_id;
27mod hir;
28pub mod hir_id;
29pub mod intravisit;
30pub mod lang_items;
31pub mod lints;
32pub mod pat_util;
33mod stability;
34mod stable_hash_impls;
35mod target;
36mod version;
37pub mod weak_lang_items;
38
39#[cfg(test)]
40mod tests;
41
42#[doc(no_inline)]
43pub use hir::*;
44pub use hir_id::*;
45pub use lang_items::{LangItem, LanguageItems};
46pub use stability::*;
47pub use stable_hash_impls::HashStableContext;
48pub use target::{MethodKind, Target};
49pub use version::*;
50
51arena_types!(rustc_arena::declare_arena);