rust/src/librustc_hir/lib.rs

32 lines
755 B
Rust
Raw Normal View History

//! HIR datatypes. See the [rustc guide] for more info.
//!
2020-03-06 08:13:26 -06:00
//! [rustc guide]: https://rust-lang.github.io/rustc-dev-guide/hir.html
#![feature(crate_visibility_modifier)]
#![feature(const_fn)] // For the unsizing cast on `&[]`
#![feature(in_band_lifetimes)]
2019-12-24 20:51:27 -06:00
#![feature(specialization)]
2020-01-02 02:53:15 -06:00
#![recursion_limit = "256"]
#[macro_use]
extern crate rustc_data_structures;
2019-12-24 20:51:27 -06:00
pub mod def;
pub use rustc_span::def_id;
mod hir;
2019-12-25 08:26:30 -06:00
pub mod hir_id;
2020-01-07 10:30:29 -06:00
pub mod intravisit;
pub mod itemlikevisit;
2020-01-29 18:24:51 -06:00
pub mod lang_items;
pub mod pat_util;
pub mod print;
mod stable_hash_impls;
2020-01-29 18:24:51 -06:00
mod target;
pub mod weak_lang_items;
pub use hir::*;
2019-12-25 08:26:30 -06:00
pub use hir_id::*;
2020-01-29 18:24:51 -06:00
pub use lang_items::{LangItem, LanguageItems};
pub use stable_hash_impls::HashStableContext;
2020-01-29 18:24:51 -06:00
pub use target::{MethodKind, Target};