Expand description
Refining is the process of generating a refined version of a rust type.
Concretely, this module provides functions to go from types in flux_rustc_bridge::ty to
types in rty.
Re-exportsยง
use flux_arc_interner::List;๐use flux_arc_interner::SliceInternable;๐use flux_common::bug;๐use flux_common::bug;๐use flux_rustc_bridge::ty;๐use flux_rustc_bridge::ty::GenericArgsExt as _;๐use itertools::Itertools;๐use rustc_abi::VariantIdx;๐use rustc_data_structures::fx::FxHashMap;๐use rustc_hir::def_id::DefId;๐use rustc_middle::ty::ParamTy;๐use rustc_span::Symbol;๐use rustc_type_ir::INNERMOST;๐use super::RefineArgsExt;๐use super::fold::TypeFoldable;๐use super::fold::TypeFolder;๐use super::fold::TypeVisitable;๐use crate::global_env::GlobalEnv;๐use crate::global_env::WeakKvarInfo;๐use crate::global_env::WeakKvarMap;๐use crate::queries::QueryErr;๐use crate::queries::QueryResult;๐use crate::query_bug;๐use crate::rty;๐use crate::rty::Expr;๐use crate::rty::fold::TypeSuperFoldable;๐
Structsยง
Traitsยง
Functionsยง
- default_
static_ ty - The type of a
staticwithout a flux spec: the default refinement of its rust type. Reads of such a static use this type too, so e.g. the field specs of a struct are assumed when reading from the static, and thus must be checked in its initializer. - is_
weak_ ๐kvar_ sort - NOTE(CK):
- make_
vars_ ๐and_ sorts_ from_ bound_ vars - make_
weak_ ๐kvar - refine_
bound_ variables - refine_
default ๐ - refine_
generic_ ๐param_ def - refine_
generic_ ๐param_ def_ kind - refine_
generics - shift_
in_ ๐vars - shift_
out_ ๐vars