Skip to content

Commit

Permalink
Avoid using cfg(FALSE)
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Feb 25, 2024
1 parent 9caeabe commit 5ee6a5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tools/rust-analyzer/crates/hir-ty/src/chalk_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -742,9 +742,8 @@ pub(crate) fn adt_datum_query(
phantom_data,
};

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

0 comments on commit 5ee6a5d

Please sign in to comment.