diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /compiler/rustc_hir/src/lib.rs | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'compiler/rustc_hir/src/lib.rs')
-rw-r--r-- | compiler/rustc_hir/src/lib.rs | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/compiler/rustc_hir/src/lib.rs b/compiler/rustc_hir/src/lib.rs new file mode 100644 index 000000000..0f9e6fa7b --- /dev/null +++ b/compiler/rustc_hir/src/lib.rs @@ -0,0 +1,47 @@ +//! HIR datatypes. See the [rustc dev guide] for more info. +//! +//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/hir.html + +#![feature(associated_type_defaults)] +#![feature(closure_track_caller)] +#![feature(const_btree_new)] +#![feature(let_else)] +#![feature(once_cell)] +#![feature(min_specialization)] +#![feature(never_type)] +#![feature(rustc_attrs)] +#![recursion_limit = "256"] + +#[macro_use] +extern crate rustc_macros; + +#[macro_use] +extern crate rustc_data_structures; + +extern crate self as rustc_hir; + +mod arena; +pub mod def; +pub mod def_path_hash_map; +pub mod definitions; +pub mod diagnostic_items; +pub use rustc_span::def_id; +mod hir; +pub mod hir_id; +pub mod intravisit; +pub mod lang_items; +pub mod pat_util; +mod stable_hash_impls; +mod target; +pub mod weak_lang_items; + +#[cfg(test)] +mod tests; + +pub use hir::*; +pub use hir_id::*; +pub use lang_items::{LangItem, LanguageItems}; +pub use stable_hash_impls::HashStableContext; +pub use target::{MethodKind, Target}; + +arena_types!(rustc_arena::declare_arena); |