Skip to content

Commit

Permalink
update trans_fulfill_obligation call signature
Browse files Browse the repository at this point in the history
  • Loading branch information
king6cong committed Sep 30, 2017
1 parent ed674f7 commit 6221bbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc_mir/interpret/eval_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use rustc::hir::map::definitions::DefPathData;
use rustc::middle::const_val::ConstVal;
use rustc::middle::region;
use rustc::mir;
use rustc::traits;
use rustc::traits::Reveal;
use rustc::ty::layout::{self, Layout, Size, Align, HasDataLayout};
use rustc::ty::subst::{Subst, Substs, Kind};
Expand Down Expand Up @@ -2411,7 +2412,7 @@ fn resolve_associated_item<'a, 'tcx>(
);

let trait_ref = ty::TraitRef::from_method(tcx, trait_id, rcvr_substs);
let vtbl = tcx.trans_fulfill_obligation(DUMMY_SP, ty::Binder(trait_ref));
let vtbl = tcx.trans_fulfill_obligation(DUMMY_SP, ty::ParamEnv::empty(traits::Reveal::All), ty::Binder(trait_ref));

// Now that we know which impl is being used, we can dispatch to
// the actual function:
Expand Down

0 comments on commit 6221bbc

Please sign in to comment.