Function rustc_typeck::middle::ty::expr_ty_adjustedUnstable [-] [+] [src]

pub fn expr_ty_adjusted(cx: &ctxt<'tcx>, expr: &Expr) -> &'tcx TyS<'tcx>

Returns the type of expr, considering any AutoAdjustment entry recorded for that expression.

It would almost certainly be better to store the adjusted ty in with the AutoAdjustment, but I opted not to do this because it would require serializing and deserializing the type and, although that's not hard to do, I just hate that code so much I didn't want to touch it unless it was to fix it properly, which seemed a distraction from the thread at hand! -nmatsakis