mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
Avoid using cfg(FALSE)
This commit is contained in:
parent
2edd74be7e
commit
f206d8b902
1 changed files with 1 additions and 2 deletions
|
@ -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![]
|
||||
|
|
Loading…
Reference in a new issue