Introduce some sanity checking assertions in trans, erase regions more aggressively.
This commit is contained in:
@@ -137,8 +137,11 @@ pub fn trans_method_callee<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
|
||||
}) => {
|
||||
let trait_ref =
|
||||
Rc::new(trait_ref.subst(bcx.tcx(),
|
||||
&bcx.fcx.param_substs.substs));
|
||||
bcx.fcx.param_substs.substs()));
|
||||
let span = bcx.tcx().map.span(method_call.expr_id);
|
||||
debug!("method_call={} trait_ref={}",
|
||||
method_call,
|
||||
trait_ref.repr(bcx.tcx()));
|
||||
let origin = fulfill_obligation(bcx.ccx(),
|
||||
span,
|
||||
(*trait_ref).clone());
|
||||
|
||||
Reference in New Issue
Block a user