rust/compiler/rustc_hir/src/lib.rs

40 lines
838 B
Rust
Raw Normal View History

2020-03-05 21:07:42 +00:00
//! HIR datatypes. See the [rustc dev guide] for more info.
//!
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/hir.html
#![feature(crate_visibility_modifier)]
#![feature(in_band_lifetimes)]
#![feature(once_cell)]
#![feature(min_specialization)]
2020-01-02 08:53:15 +00:00
#![recursion_limit = "256"]
#[macro_use]
extern crate rustc_macros;
2020-01-02 08:53:15 +00:00
#[macro_use]
extern crate rustc_data_structures;
2019-12-25 02:51:27 +00:00
2020-03-21 01:21:21 +00:00
mod arena;
pub mod def;
pub mod def_path_hash_map;
pub mod definitions;
pub use rustc_span::def_id;
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;
pub mod itemlikevisit;
2020-01-30 00:24:51 +00:00
pub mod lang_items;
pub mod pat_util;
mod stable_hash_impls;
2020-01-30 00:24:51 +00:00
mod target;
pub mod weak_lang_items;
#[cfg(test)]
mod tests;
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};
pub use stable_hash_impls::HashStableContext;
2020-01-30 00:24:51 +00:00
pub use target::{MethodKind, Target};