Skip to main content

Module expr

Module expr 

Source

Re-exportsΒ§

use std::fmt; πŸ”’
use std::hash::Hash; πŸ”’
use std::hash::Hash; πŸ”’
use std::iter; πŸ”’
use std::ops::ControlFlow; πŸ”’
use std::sync::OnceLock; πŸ”’
use flux_arc_interner::Interned; πŸ”’
use flux_arc_interner::List; πŸ”’
use flux_common::bug; πŸ”’
use flux_common::bug; πŸ”’
use flux_common::dbg::as_subscript; πŸ”’
use flux_macros::TypeFoldable; πŸ”’
use flux_macros::TypeVisitable; πŸ”’
use flux_rustc_bridge::ToRustc; πŸ”’
use flux_rustc_bridge::const_eval::scalar_to_bits; πŸ”’
use flux_rustc_bridge::const_eval::scalar_to_int; πŸ”’
use flux_rustc_bridge::const_eval::scalar_to_uint; πŸ”’
use flux_rustc_bridge::ty::Const; πŸ”’
use flux_rustc_bridge::ty::ConstKind; πŸ”’
use flux_rustc_bridge::ty::ValTree; πŸ”’
use flux_rustc_bridge::ty::VariantIdx; πŸ”’
use flux_syntax::symbols::sym; πŸ”’
use itertools::Itertools; πŸ”’
use liquid_fixpoint::ThyFunc; πŸ”’
use rustc_abi::FIRST_VARIANT; πŸ”’
use rustc_abi::FieldIdx; πŸ”’
use rustc_data_structures::snapshot_map::SnapshotMap; πŸ”’
use rustc_data_structures::unord::UnordMap; πŸ”’
use rustc_hir::def_id::DefId; πŸ”’
use rustc_index::newtype_index; πŸ”’
use rustc_macros::Decodable; πŸ”’
use rustc_macros::Encodable; πŸ”’
use rustc_macros::TyDecodable; πŸ”’
use rustc_macros::TyEncodable; πŸ”’
use rustc_middle::mir::Local; πŸ”’
use rustc_middle::ty::ParamConst; πŸ”’
use rustc_middle::ty::ScalarInt; πŸ”’
use rustc_middle::ty::TyCtxt; πŸ”’
use rustc_span::Span; πŸ”’
use rustc_span::Symbol; πŸ”’
use rustc_type_ir::BoundVar; πŸ”’
use rustc_type_ir::DebruijnIndex; πŸ”’
use rustc_type_ir::INNERMOST; πŸ”’
use super::BaseTy; πŸ”’
use super::Binder; πŸ”’
use super::BoundReftKind; πŸ”’
use super::BoundVariableKinds; πŸ”’
use super::FuncSort; πŸ”’
use super::GenericArgs; πŸ”’
use super::GenericArgsExt as _; πŸ”’
use super::IntTy; πŸ”’
use super::Sort; πŸ”’
use super::UintTy; πŸ”’
use crate::big_int::BigInt; πŸ”’
use crate::def_id::FluxDefId; πŸ”’
use crate::fhir; πŸ”’
use crate::global_env::GlobalEnv; πŸ”’
use crate::queries::QueryResult; πŸ”’
use crate::rty::BoundVariableKind; πŸ”’
use crate::rty::SortArg; πŸ”’
use crate::rty::SortCtor; πŸ”’
use crate::rty::SubsetTyCtor; πŸ”’
use crate::rty::fold::TypeFoldable; πŸ”’
use crate::rty::fold::TypeFolder; πŸ”’
use crate::rty::fold::TypeSuperFoldable; πŸ”’
use crate::rty::fold::TypeSuperVisitable; πŸ”’
use crate::rty::fold::TypeVisitable; πŸ”’
use crate::rty::fold::TypeVisitor; πŸ”’
use crate::pretty::*; πŸ”’

ModulesΒ§

pretty πŸ”’

MacrosΒ§

impl_ops πŸ”’

StructsΒ§

AliasReft
BoundReft
ESpan
EVid
Existential variable id
EarlyReftParam
Expr
FieldBind
KVar
In theory a kvar is just an unknown predicate that can use some variables in scope. In practice, fixpoint distinguishes a list of leading arguments, the kvar’s self arguments, from the rest, which we call the scope. Fixpoint only instantiates qualifiers whose first parameter is a self argument, so a kvar without self arguments can only be solved to true or false. The number of self arguments is passed to fixpoint with the :self annotation.
KVid
Lambda
A lambda abstraction with an elaborated output sort. We need the output sort of lambdas for encoding into fixpoint
Name
Path
PrettyMap
RawPtrFieldData πŸ”’
Real
WKVar
A weak kvar is like a kvar with the exception that it infers the weakest condition necessary instead of the strongest condition. Due to the way we generate these kvars (on fn_sigs, rather than during constraint generation), they also in theory are global.
WKVid

EnumsΒ§

AggregateKind
BinOp
Constant
Ctor
ExprKind
FieldProj
HoleKind
The position where a hole appears. This determines how it will be inferred. This is related to, but not the same as, an InferMode.
InternalFuncKind
Primitive Properties
Loc
NameProvenance
PrettyVar
QuantDom
RawPtrField
SpecFuncKind
UnOp
Var