Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit f206d8b

Browse files
committed
Avoid using cfg(FALSE)
1 parent 2edd74b commit f206d8b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/hir-ty/src/chalk_db.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,9 +742,8 @@ pub(crate) fn adt_datum_query(
742742
phantom_data,
743743
};
744744

745-
#[cfg(FALSE)]
746745
// this slows down rust-analyzer by quite a bit unfortunately, so enabling this is currently not worth it
747-
let variant_id_to_fields = |id: VariantId| {
746+
let _variant_id_to_fields = |id: VariantId| {
748747
let variant_data = &id.variant_data(db.upcast());
749748
let fields = if variant_data.fields().is_empty() {
750749
vec![]

0 commit comments

Comments
 (0)