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