diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2025-08-14 01:33:59 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2025-08-20 15:01:13 -0700 |
| commit | f3c8b7ad40c405989be968dc170e487d360fd6da (patch) | |
| tree | 47911515414347ae0c5c11035c37a15ad5dccdb3 /compiler/rustc_hir/src/lib.rs | |
| parent | b65fab62999e96acd3683826ffd4140091f185f2 (diff) | |
| download | rust-f3c8b7ad40c405989be968dc170e487d360fd6da.tar.gz rust-f3c8b7ad40c405989be968dc170e487d360fd6da.zip | |
Split `rustc_hir_id` out of `rustc_hir`
Some crates depend on `rustc_hir` but only want `HirId` and similar id types. `rustc_hir` is a heavy dependency, since it pulls in `rustc_target`. Split these types out into their own crate `rustc_hir_id`. This allows `rustc_errors` to drop its direct dependency on `rustc_hir`. (`rustc_errors` still depends on `rustc_hir` indirectly through `rustc_lint_defs`; a subsequent commit will fix that.)
Diffstat (limited to 'compiler/rustc_hir/src/lib.rs')
| -rw-r--r-- | compiler/rustc_hir/src/lib.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_hir/src/lib.rs b/compiler/rustc_hir/src/lib.rs index f1212d07ff6..78fc63753a2 100644 --- a/compiler/rustc_hir/src/lib.rs +++ b/compiler/rustc_hir/src/lib.rs @@ -3,14 +3,11 @@ //! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/hir.html // tidy-alphabetical-start -#![allow(internal_features)] #![feature(associated_type_defaults)] #![feature(closure_track_caller)] #![feature(debug_closure_helpers)] #![feature(exhaustive_patterns)] -#![feature(negative_impls)] #![feature(never_type)] -#![feature(rustc_attrs)] #![feature(variant_count)] #![recursion_limit = "256"] // tidy-alphabetical-end @@ -25,7 +22,7 @@ pub mod definitions; pub mod diagnostic_items; pub use rustc_span::def_id; mod hir; -pub mod hir_id; +pub use rustc_hir_id::{self as hir_id, *}; pub mod intravisit; pub mod lang_items; pub mod lints; @@ -41,7 +38,6 @@ mod tests; #[doc(no_inline)] pub use hir::*; -pub use hir_id::*; pub use lang_items::{LangItem, LanguageItems}; pub use stability::*; pub use stable_hash_impls::HashStableContext; |
