2020-03-05 15:07:42 -06:00
|
|
|
//! HIR datatypes. See the [rustc dev guide] for more info.
|
2020-01-01 22:18:45 -06:00
|
|
|
//!
|
2020-03-09 16:33:04 -05:00
|
|
|
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/hir.html
|
2020-01-01 22:18:45 -06:00
|
|
|
|
|
|
|
#![feature(crate_visibility_modifier)]
|
2020-01-10 19:40:57 -06:00
|
|
|
#![feature(const_fn)] // For the unsizing cast on `&[]`
|
2020-03-10 15:41:33 -05:00
|
|
|
#![feature(const_panic)]
|
2020-01-01 22:18:45 -06:00
|
|
|
#![feature(in_band_lifetimes)]
|
2021-01-02 12:45:11 -06:00
|
|
|
#![feature(iterator_fold_self)]
|
2020-09-01 15:31:22 -05:00
|
|
|
#![feature(once_cell)]
|
2020-03-23 14:27:59 -05:00
|
|
|
#![feature(or_patterns)]
|
2020-01-02 02:53:15 -06:00
|
|
|
#![recursion_limit = "256"]
|
|
|
|
|
2020-06-11 09:49:57 -05:00
|
|
|
#[macro_use]
|
|
|
|
extern crate rustc_macros;
|
|
|
|
|
2020-01-02 02:53:15 -06:00
|
|
|
#[macro_use]
|
|
|
|
extern crate rustc_data_structures;
|
2019-12-24 20:51:27 -06:00
|
|
|
|
2020-03-20 20:21:21 -05:00
|
|
|
mod arena;
|
2020-01-01 22:18:45 -06:00
|
|
|
pub mod def;
|
2020-03-20 22:39:48 -05:00
|
|
|
pub mod definitions;
|
2020-02-08 14:06:31 -06:00
|
|
|
pub use rustc_span::def_id;
|
2020-01-01 22:18:45 -06:00
|
|
|
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;
|
2020-01-01 22:18:45 -06:00
|
|
|
pub mod itemlikevisit;
|
2020-01-29 18:24:51 -06:00
|
|
|
pub mod lang_items;
|
2020-01-01 22:18:45 -06:00
|
|
|
pub mod pat_util;
|
|
|
|
mod stable_hash_impls;
|
2020-01-29 18:24:51 -06:00
|
|
|
mod target;
|
|
|
|
pub mod weak_lang_items;
|
|
|
|
|
2020-01-01 22:18:45 -06:00
|
|
|
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};
|
2020-01-01 22:18:45 -06:00
|
|
|
pub use stable_hash_impls::HashStableContext;
|
2020-01-29 18:24:51 -06:00
|
|
|
pub use target::{MethodKind, Target};
|