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 lints;
29pub mod pat_util;
30mod stability;
31mod stable_hash_impls;
32mod target;
33mod version;
34pub mod weak_lang_items;
35
36#[cfg(test)]
37mod tests;
38
39#[doc(no_inline)]
40pub use hir::*;
41pub use lang_items::{LangItem, LanguageItems};
42pub use stability::*;
43pub use stable_hash_impls::HashStableContext;
44pub use target::{MethodKind, Target};
45pub use version::*;
46
47arena_types!(rustc_arena::declare_arena);