]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_hir/src/lib.rs
New upstream version 1.51.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)]
6#![feature(const_fn)] // For the unsizing cast on `&[]`
ba9703b0 7#![feature(const_panic)]
dfeec247 8#![feature(in_band_lifetimes)]
1b1a35ee 9#![feature(once_cell)]
ba9703b0 10#![feature(or_patterns)]
dfeec247
XL
11#![recursion_limit = "256"]
12
3dfed10e
XL
13#[macro_use]
14extern crate rustc_macros;
15
dfeec247
XL
16#[macro_use]
17extern crate rustc_data_structures;
18
ba9703b0 19mod arena;
dfeec247 20pub mod def;
ba9703b0 21pub mod definitions;
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
dfeec247
XL
33pub use hir::*;
34pub use hir_id::*;
74b04a01 35pub use lang_items::{LangItem, LanguageItems};
dfeec247 36pub use stable_hash_impls::HashStableContext;
74b04a01 37pub use target::{MethodKind, Target};