Skip to main content

Module def_id

Module def_id 

Source

Re-exportsΒ§

use flux_common::bug; πŸ”’
use flux_common::bug; πŸ”’
use rustc_hir::def_id::CrateNum; πŸ”’
use rustc_hir::def_id::DefId; πŸ”’
use rustc_hir::def_id::DefIndex; πŸ”’
use rustc_hir::def_id::LocalDefId; πŸ”’
use rustc_macros::Decodable; πŸ”’
use rustc_macros::Encodable; πŸ”’
use rustc_serialize::ContextOrd; πŸ”’
use rustc_span::Symbol; πŸ”’

StructsΒ§

FluxId
An id for a Flux-specific item that doesn’t have a corresponding Rust item and thus, we cannot identify it with a [DefId]. This includes, for example, associated refinements, qualifiers and refinement functions.

EnumsΒ§

MaybeExternId
This enum serves as a type-level reminder that a local definition may be a wrapper for an extern spec. This abstraction is not infallible, so one should be careful and decide in each situation whether to use the local id or the resolved id.
ResolvedDefId
Normally, a [DefId] is either local or external, and [DefId::as_local] can be used to distinguish between the two. However, extern specs introduce a third case: a local definition wrapping an extern spec. This enum is a type level reminder used to differentiate between these three cases.

Type AliasesΒ§

FluxDefId
FluxLocalDefId