Skip to main content

Module cost_checker

Module cost_checker 

Source

Re-exportsΒ§

use rustc_middle::ty; πŸ”’
use rustc_middle::ty::Ty; πŸ”’
use rustc_middle::ty::TyCtxt; πŸ”’
use rustc_span::bug; πŸ”’
use rustc_middle::mir::visit::*; πŸ”’
use rustc_middle::mir::*; πŸ”’

StructsΒ§

CostChecker πŸ”’
Verify that the callee body is compatible with the caller.

ConstantsΒ§

CALL_PENALTY πŸ”’
CONST_SWITCH_BONUS πŸ”’
INSTR_COST πŸ”’
LANDINGPAD_PENALTY πŸ”’
LARGE_SWITCH_PENALTY πŸ”’
RESUME_PENALTY πŸ”’

FunctionsΒ§

is_call_like πŸ”’
A terminator that’s more call-like (might do a bunch of work, might panic, etc) than it is goto-/return-like (no side effects, etc).