Skip to main content

Module type_env

Module type_env 

Source

Re-exportsΒ§

use std::iter; πŸ”’
use std::ops::ControlFlow; πŸ”’
use flux_common::bug; πŸ”’
use flux_common::bug; πŸ”’
use flux_common::dbg::SpanTrace; πŸ”’
use flux_common::dbg::debug_assert_eq3; πŸ”’
use flux_common::tracked_span_bug; πŸ”’
use flux_common::tracked_span_dbg_assert_eq; πŸ”’
use flux_infer::infer::ConstrReason; πŸ”’
use flux_infer::infer::InferCtxt; πŸ”’
use flux_infer::infer::InferCtxtAt; πŸ”’
use flux_infer::infer::InferCtxtRoot; πŸ”’
use flux_infer::infer::InferResult; πŸ”’
use flux_infer::refine_tree::Scope; πŸ”’
use flux_macros::DebugAsJson; πŸ”’
use flux_middle::PlaceExt as _; πŸ”’
use flux_middle::global_env::GlobalEnv; πŸ”’
use flux_middle::pretty::PrettyCx; πŸ”’
use flux_middle::pretty::PrettyNested; πŸ”’
use flux_middle::queries::QueryResult; πŸ”’
use flux_middle::rty::BaseTy; πŸ”’
use flux_middle::rty::Binder; πŸ”’
use flux_middle::rty::BoundReftKind; πŸ”’
use flux_middle::rty::BoundVariableKind; πŸ”’
use flux_middle::rty::Ctor; πŸ”’
use flux_middle::rty::Expr; πŸ”’
use flux_middle::rty::ExprKind; πŸ”’
use flux_middle::rty::FnOutput; πŸ”’
use flux_middle::rty::FnSig; πŸ”’
use flux_middle::rty::GenericArg; πŸ”’
use flux_middle::rty::HoleKind; πŸ”’
use flux_middle::rty::INNERMOST; πŸ”’
use flux_middle::rty::Lambda; πŸ”’
use flux_middle::rty::List; πŸ”’
use flux_middle::rty::Loc; πŸ”’
use flux_middle::rty::Mutability; πŸ”’
use flux_middle::rty::Path; πŸ”’
use flux_middle::rty::PolyFnSig; πŸ”’
use flux_middle::rty::PtrKind; πŸ”’
use flux_middle::rty::Region; πŸ”’
use flux_middle::rty::SortCtor; πŸ”’
use flux_middle::rty::SubsetTy; πŸ”’
use flux_middle::rty::SubsetTyCtor; πŸ”’
use flux_middle::rty::Ty; πŸ”’
use flux_middle::rty::TyKind; πŸ”’
use flux_middle::rty::VariantIdx; πŸ”’
use flux_middle::rty::canonicalize::Hoister; πŸ”’
use flux_middle::rty::canonicalize::LocalHoister; πŸ”’
use flux_middle::rty::fold::FallibleTypeFolder; πŸ”’
use flux_middle::rty::fold::TypeFoldable; πŸ”’
use flux_middle::rty::fold::TypeVisitable; πŸ”’
use flux_middle::rty::fold::TypeVisitor; πŸ”’
use flux_middle::rty::region_matching::rty_match_regions; πŸ”’
use flux_middle::rty::region_matching::ty_match_regions; πŸ”’
use flux_rustc_bridge; πŸ”’
use flux_rustc_bridge::mir::BasicBlock; πŸ”’
use flux_rustc_bridge::mir::Body; πŸ”’
use flux_rustc_bridge::mir::Local; πŸ”’
use flux_rustc_bridge::mir::LocalDecl; πŸ”’
use flux_rustc_bridge::mir::LocalDecls; πŸ”’
use flux_rustc_bridge::mir::Place; πŸ”’
use flux_rustc_bridge::mir::PlaceElem; πŸ”’
use flux_rustc_bridge::ty; πŸ”’
use itertools::Itertools; πŸ”’
use itertools::izip; πŸ”’
use rustc_data_structures::unord::UnordMap; πŸ”’
use rustc_index::IndexSlice; πŸ”’
use rustc_index::IndexVec; πŸ”’
use rustc_middle::mir::RETURN_PLACE; πŸ”’
use rustc_middle::ty::TyCtxt; πŸ”’
use rustc_span::Span; πŸ”’
use rustc_span::Symbol; πŸ”’
use rustc_type_ir::BoundVar; πŸ”’
use serde::Serialize; πŸ”’
use serde::Serialize; πŸ”’
use self::place_ty::LocKind; πŸ”’
use self::place_ty::PlacesTree; πŸ”’
use super::rty::Sort; πŸ”’

ModulesΒ§

place_ty πŸ”’
pretty πŸ”’

StructsΒ§

BasicBlockEnv
BasicBlockEnvData πŸ”’
BasicBlockEnvShape
TypeEnv
TypeEnvBind πŸ”’
TypeEnvTrace
A very explicit representation of TypeEnv for debugging/tracing/serialization ONLY.

EnumsΒ§

LocInfo πŸ”’
PtrToRefBound πŸ”’

FunctionsΒ§

generalize_fn_sig πŸ”’
Generalizes a fn pointer signature to one with the same (rust) shape where all refinements are holes, e.g., for<n> fn(i32[n]) -> i32[n + 1] becomes fn({v. i32[v] | *}) -> {v. i32[v] | *}. The refinement params of the signature are dropped, and so are the requires, ensures and no_panic (which could mention them). The region vars are kept: they come before the refinement params in the binder, so dropping the latter doesn’t shift them.
loc_info πŸ”’
loc_name πŸ”’
loc_span πŸ”’