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#![cfg_attr(bootstrap, feature(debug_closure_helpers))]
7#![feature(associated_type_defaults)]
8#![feature(closure_track_caller)]
9#![feature(const_default)]
10#![feature(const_trait_impl)]
11#![feature(derive_const)]
12#![feature(exhaustive_patterns)]
13#![feature(never_type)]
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 use rustc_hir_id::{self as hir_id, *};
29pub mod intravisit;
30pub mod lang_items;
31pub mod limit;
32pub mod lints;
33pub mod pat_util;
34mod stability;
35mod stable_hash_impls;
36mod target;
37mod version;
38pub mod weak_lang_items;
39
40#[cfg(test)]
41mod tests;
42
43#[doc(no_inline)]
44pub use hir::*;
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);