Skip to content

Commit

Permalink
feat(frontend/def_id): make kind inconditional
Browse files Browse the repository at this point in the history
  • Loading branch information
W95Psp committed Dec 18, 2024
1 parent 75853e8 commit b28e6ac
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions frontend/exporter/src/types/def_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ pub struct DefIdContents {
pub is_local: bool,

/// The kind of definition this `DefId` points to.
#[cfg(not(feature = "extract_names_mode"))]
pub kind: crate::DefKind,
}

Expand Down Expand Up @@ -232,7 +231,6 @@ pub(crate) fn translate_def_id<'tcx, S: BaseState<'tcx>>(s: &S, def_id: RDefId)
rustc_hir::def_id::DefIndex::as_u32(def_id.index),
),
is_local: def_id.is_local(),
#[cfg(not(feature = "extract_names_mode"))]
kind: tcx.def_kind(def_id).sinto(s),
};
let contents =
Expand Down

0 comments on commit b28e6ac

Please sign in to comment.