]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_hir/src/lib.rs
New upstream version 1.67.1+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 4
5099ac24 5#![feature(associated_type_defaults)]
923072b8 6#![feature(closure_track_caller)]
2b03887a 7#![feature(const_btree_len)]
487cf647 8#![feature(let_chains)]
17df50a5 9#![feature(min_specialization)]
3c0e092e 10#![feature(never_type)]
5e7ed085 11#![feature(rustc_attrs)]
487cf647 12#![feature(variant_count)]
dfeec247 13#![recursion_limit = "256"]
f2b60f7d
FG
14#![deny(rustc::untranslatable_diagnostic)]
15#![deny(rustc::diagnostic_outside_of_impl)]
dfeec247 16
3dfed10e
XL
17#[macro_use]
18extern crate rustc_macros;
19
f2b60f7d
FG
20#[macro_use]
21extern crate tracing;
22
dfeec247
XL
23#[macro_use]
24extern crate rustc_data_structures;
25
064997fb
FG
26extern crate self as rustc_hir;
27
ba9703b0 28mod arena;
dfeec247 29pub mod def;
c295e0f8 30pub mod def_path_hash_map;
ba9703b0 31pub mod definitions;
c295e0f8 32pub mod diagnostic_items;
f2b60f7d 33pub mod errors;
74b04a01 34pub use rustc_span::def_id;
dfeec247
XL
35mod hir;
36pub mod hir_id;
37pub mod intravisit;
74b04a01 38pub mod lang_items;
dfeec247 39pub mod pat_util;
dfeec247 40mod stable_hash_impls;
74b04a01
XL
41mod target;
42pub mod weak_lang_items;
43
6a06907d
XL
44#[cfg(test)]
45mod tests;
46
dfeec247
XL
47pub use hir::*;
48pub use hir_id::*;
74b04a01 49pub use lang_items::{LangItem, LanguageItems};
dfeec247 50pub use stable_hash_impls::HashStableContext;
74b04a01 51pub use target::{MethodKind, Target};
064997fb
FG
52
53arena_types!(rustc_arena::declare_arena);