pub(crate) trait CallSemantics: WriteSemantics {
// Required methods
fn special_dependencies<'tcx>(
&self,
tcx: TyCtxt<'tcx>,
caller: DefId,
callee: DefId,
func: &Operand<'tcx>,
args: &[Spanned<Operand<'tcx>>],
body: &Body<'tcx>,
) -> Option<CallDependencies>;
fn skip_mir_dependencies(&self, tcx: TyCtxt<'_>, callee: DefId) -> bool;
fn preserve_all_return_args(&self, tcx: TyCtxt<'_>, callee: DefId) -> bool;
}Expand description
Verification-specific call models supplement MIR-derived dependencies.
Required Methods§
fn special_dependencies<'tcx>( &self, tcx: TyCtxt<'tcx>, caller: DefId, callee: DefId, func: &Operand<'tcx>, args: &[Spanned<Operand<'tcx>>], body: &Body<'tcx>, ) -> Option<CallDependencies>
fn skip_mir_dependencies(&self, tcx: TyCtxt<'_>, callee: DefId) -> bool
fn preserve_all_return_args(&self, tcx: TyCtxt<'_>, callee: DefId) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".