proper binding naming

This commit is contained in:
Oliver Schneider 2016-09-16 10:23:04 +02:00
parent 562c64d86a
commit a670f43886
No known key found for this signature in database
GPG Key ID: 56D6EEA0FC67AC46

@ -526,8 +526,8 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
traits::VtableClosure(vtable_closure) =>
Ok((vtable_closure.closure_def_id, vtable_closure.substs.func_substs)),
traits::VtableFnPointer(fn_ty) => {
if let ty::TyFnDef(did, ref substs, _) = fn_ty.fn_ty.sty {
traits::VtableFnPointer(vtable_fn_ptr) => {
if let ty::TyFnDef(did, ref substs, _) = vtable_fn_ptr.fn_ty.sty {
args.remove(0);
Ok((did, substs))
} else {