Skip to main content

Module refining

Module refining 

Source
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ยง

Refiner
WeakKVarInserter ๐Ÿ”’

Traitsยง

Refine

Functionsยง

default_static_ty
The type of a static without 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 ๐Ÿ”’