2020-03-05 21:07:42 +00:00
|
|
|
//! HIR datatypes. See the [rustc dev guide] for more info.
|
2020-01-02 04:18:45 +00:00
|
|
|
//!
|
2020-03-09 21:33:04 +00:00
|
|
|
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/hir.html
|
2020-01-02 04:18:45 +00:00
|
|
|
|
2021-11-03 23:03:12 +00:00
|
|
|
#![feature(associated_type_defaults)]
|
2022-05-10 11:17:38 +00:00
|
|
|
#![feature(closure_track_caller)]
|
2022-09-23 16:03:44 +00:00
|
|
|
#![feature(const_btree_len)]
|
2020-09-01 20:31:22 +00:00
|
|
|
#![feature(once_cell)]
|
2021-04-02 04:58:45 +00:00
|
|
|
#![feature(min_specialization)]
|
2021-09-12 01:19:18 +00:00
|
|
|
#![feature(never_type)]
|
2022-03-08 14:39:52 +00:00
|
|
|
#![feature(rustc_attrs)]
|
2020-01-02 08:53:15 +00:00
|
|
|
#![recursion_limit = "256"]
|
2022-08-18 18:27:29 +00:00
|
|
|
#![deny(rustc::untranslatable_diagnostic)]
|
|
|
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
2020-01-02 08:53:15 +00:00
|
|
|
|
2020-06-11 14:49:57 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate rustc_macros;
|
|
|
|
|
2022-08-31 13:09:26 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate tracing;
|
|
|
|
|
2020-01-02 08:53:15 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate rustc_data_structures;
|
2019-12-25 02:51:27 +00:00
|
|
|
|
2021-07-13 16:45:20 +00:00
|
|
|
extern crate self as rustc_hir;
|
|
|
|
|
2020-03-21 01:21:21 +00:00
|
|
|
mod arena;
|
2020-01-02 04:18:45 +00:00
|
|
|
pub mod def;
|
2021-07-20 11:54:37 +00:00
|
|
|
pub mod def_path_hash_map;
|
2020-03-21 03:39:48 +00:00
|
|
|
pub mod definitions;
|
2021-10-04 20:57:39 +00:00
|
|
|
pub mod diagnostic_items;
|
2022-08-24 22:28:56 +00:00
|
|
|
pub mod errors;
|
2020-02-08 20:06:31 +00:00
|
|
|
pub use rustc_span::def_id;
|
2020-01-02 04:18:45 +00:00
|
|
|
mod hir;
|
2019-12-25 14:26:30 +00:00
|
|
|
pub mod hir_id;
|
2020-01-07 16:30:29 +00:00
|
|
|
pub mod intravisit;
|
2020-01-30 00:24:51 +00:00
|
|
|
pub mod lang_items;
|
2020-01-02 04:18:45 +00:00
|
|
|
pub mod pat_util;
|
|
|
|
mod stable_hash_impls;
|
2020-01-30 00:24:51 +00:00
|
|
|
mod target;
|
|
|
|
pub mod weak_lang_items;
|
|
|
|
|
2021-02-04 10:04:29 +00:00
|
|
|
#[cfg(test)]
|
|
|
|
mod tests;
|
|
|
|
|
2020-01-02 04:18:45 +00:00
|
|
|
pub use hir::*;
|
2019-12-25 14:26:30 +00:00
|
|
|
pub use hir_id::*;
|
2020-01-30 00:24:51 +00:00
|
|
|
pub use lang_items::{LangItem, LanguageItems};
|
2020-01-02 04:18:45 +00:00
|
|
|
pub use stable_hash_impls::HashStableContext;
|
2020-01-30 00:24:51 +00:00
|
|
|
pub use target::{MethodKind, Target};
|
2021-07-13 16:45:20 +00:00
|
|
|
|
|
|
|
arena_types!(rustc_arena::declare_arena);
|