/// Computes the guarantor for cases where the `expr` is being passed by implicit reference and
/// must outlive `callee_scope`.
Computes the guarantor for cases where the `expr` is being passed by implicit reference and
must outlive `callee_scope`.
Computes the guarantor for cases where the ` expr ` is being passed by implicit reference and must outlive ` callee_scope ` .
fn link_by_ref(rcx: &Rcx,
               expr: &hir::Expr,
               callee_scope: CodeExtent) {
    debug!("link_by_ref(expr={:?}, callee_scope={:?})",
           expr, callee_scope);
    let mc = mc::MemCategorizationContext::new(rcx.fcx.infcx());
    let expr_cmt = ignore_err!(mc.cat_expr(expr));
    let borrow_region = ty::ReScope(callee_scope);
    link_region(rcx, expr.span, &borrow_region, ty::ImmBorrow, expr_cmt);
}
fn link_by_ref ( rcx : & Rcx , expr : & hir :: Expr , callee_scope : CodeExtent ) { debug ! ( " " expr callee_scope ) ; let mc = mc :: MemCategorizationContext :: new ( rcx . fcx . infcx ( ) ) ; let expr_cmt = ignore_err ! ( mc cat_expr ( expr ) ) ; let borrow_region = ty :: ReScope ( callee_scope ) ; link_region ( rcx , expr . span , & borrow_region , ty :: ImmBorrow , expr_cmt ) ; }
Computes the guarantor for cases where the `expr` is being passed by implicit reference and
must outlive `callee_scope`.
Computes the guarantor for cases where the ` expr ` is being passed by implicit reference and must outlive ` callee_scope ` .
rcx
&Rcx
expr
&hir::Expr
callee_scope
CodeExtent