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