From 6221bbc5a7312598a9d83bd29c9a6136d01b9323 Mon Sep 17 00:00:00 2001 From: king6cong Date: Sat, 30 Sep 2017 14:55:16 +0800 Subject: [PATCH] update trans_fulfill_obligation call signature --- src/librustc_mir/interpret/eval_context.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librustc_mir/interpret/eval_context.rs b/src/librustc_mir/interpret/eval_context.rs index 3388031a30..b483cf1aed 100644 --- a/src/librustc_mir/interpret/eval_context.rs +++ b/src/librustc_mir/interpret/eval_context.rs @@ -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}; @@ -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: