Skip to content

Commit 411d85d

Browse files
committed
Always compile hir_id_validator.
Making this compilation conditional causes an unused crate dependency warning.
1 parent a054910 commit 411d85d

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4395,6 +4395,7 @@ dependencies = [
43954395
"rustc_feature",
43964396
"rustc_fluent_macro",
43974397
"rustc_hir",
4398+
"rustc_index",
43984399
"rustc_macros",
43994400
"rustc_middle",
44004401
"rustc_privacy",

compiler/rustc_passes/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ rustc_expand = { path = "../rustc_expand" }
1616
rustc_feature = { path = "../rustc_feature" }
1717
rustc_fluent_macro = { path = "../rustc_fluent_macro" }
1818
rustc_hir = { path = "../rustc_hir" }
19+
rustc_index = { path = "../rustc_index" }
1920
rustc_macros = { path = "../rustc_macros" }
2021
rustc_middle = { path = "../rustc_middle" }
2122
rustc_privacy = { path = "../rustc_privacy" }

compiler/rustc_passes/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ mod debugger_visualizer;
2323
mod diagnostic_items;
2424
pub mod entry;
2525
mod errors;
26-
#[cfg(debug_assertions)]
2726
pub mod hir_id_validator;
2827
pub mod input_stats;
2928
mod lang_items;

0 commit comments

Comments
 (0)