]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_hir/src/lib.rs
New upstream version 1.57.0+dfsg1
[rustc.git] / compiler / rustc_hir / src / lib.rs
CommitLineData
ba9703b0 1//! HIR datatypes. See the [rustc dev guide] for more info.
dfeec247 2//!
ba9703b0 3//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/hir.html
dfeec247
XL
4
5#![feature(crate_visibility_modifier)]
dfeec247 6#![feature(in_band_lifetimes)]
1b1a35ee 7#![feature(once_cell)]
17df50a5 8#![feature(min_specialization)]
dfeec247
XL
9#![recursion_limit = "256"]
10
3dfed10e
XL
11#[macro_use]
12extern crate rustc_macros;
13
dfeec247
XL
14#[macro_use]
15extern crate rustc_data_structures;
16
ba9703b0 17mod arena;
dfeec247 18pub mod def;
c295e0f8 19pub mod def_path_hash_map;
ba9703b0 20pub mod definitions;
c295e0f8 21pub mod diagnostic_items;
74b04a01 22pub use rustc_span::def_id;
dfeec247
XL
23mod hir;
24pub mod hir_id;
25pub mod intravisit;
26pub mod itemlikevisit;
74b04a01 27pub mod lang_items;
dfeec247 28pub mod pat_util;
dfeec247 29mod stable_hash_impls;
74b04a01
XL
30mod target;
31pub mod weak_lang_items;
32
6a06907d
XL
33#[cfg(test)]
34mod tests;
35
dfeec247
XL
36pub use hir::*;
37pub use hir_id::*;
74b04a01 38pub use lang_items::{LangItem, LanguageItems};
dfeec247 39pub use stable_hash_impls::HashStableContext;
74b04a01 40pub use target::{MethodKind, Target};