Expand description
User-facing rendering of contract data structures.
Converts ContractPlace, ContractExpr, NumericPredicate, PropertyArg
and Property into readable strings for reports and debug output. Kept
separate from the data model (types.rs) so the model stays
presentation-free.
Re-exportsΒ§
use rustc_hir::def_id::DefId;πuse rustc_middle::ty::TyCtxt;πuse super::ContractExpr;πuse super::ContractPlace;πuse super::ContractProjection;πuse super::BinOp;πuse super::NumericPredicate;πuse super::UnaryOp;πuse super::PlaceBase;πuse super::Property;πuse super::PropertyArg;πuse super::PropertyKind;πuse super::RelOp;π
FunctionsΒ§
- display_
expr_ πuser_ friendly - local_
snippet π - Best-effort source snippet for a MIR localβs declaration, if its function MIR is available and the local index is in range.