Skip to main content

Module inhabited_predicate

Module inhabited_predicate 

Source

Re-exportsยง

use rustc_macros::StableHash; ๐Ÿ”’
use rustc_span::bug; ๐Ÿ”’
use rustc_span::def_id::LocalModId; ๐Ÿ”’
use rustc_span::def_id::ModId; ๐Ÿ”’
use smallvec::SmallVec; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use crate::ty; ๐Ÿ”’
use crate::ty::OpaqueTypeKey; ๐Ÿ”’
use crate::ty::Ty; ๐Ÿ”’
use crate::ty::TyCtxt; ๐Ÿ”’
use crate::ty::TypingEnv; ๐Ÿ”’
use crate::ty::Unnormalized; ๐Ÿ”’

Enumsยง

InhabitedPredicate
Represents whether some type is inhabited in a given context. Examples of uninhabited types are !, enum Void {}, or a struct containing either of those types. A typeโ€™s inhabitedness may depend on the ParamEnv as well as what types are visible in the current module.

Functionsยง

try_and ๐Ÿ”’
try_or ๐Ÿ”’