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 def;
22pub mod def_path_hash_map;
23pub mod definitions;
24pub mod diagnostic_items;
25pub use rustc_span::def_id;
26mod hir;
27pub mod hir_id;
28pub mod intravisit;
29pub mod lang_items;
30pub mod pat_util;
31mod stable_hash_impls;
32mod target;
33pub mod weak_lang_items;
34
35#[cfg(test)]
36mod tests;
37
38#[doc(no_inline)]
39pub use hir::*;
40pub use hir_id::*;
41pub use lang_items::{LangItem, LanguageItems};
42pub use stable_hash_impls::HashStableContext;
43pub use target::{MethodKind, Target};
44
45arena_types!(rustc_arena::declare_arena);