Function rustc::middle::ty::expr_ty_adjusted[src]
pub fn expr_ty_adjusted(cx: &ctxt, expr: &Expr) -> t
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
task at hand! -nmatsakis