Fix some rebasing fallout.

This commit is contained in:
Michael Woerister 2016-05-09 16:15:04 -04:00
parent 00eabcbefa
commit 118cc9e8e1
2 changed files with 2 additions and 2 deletions

View File

@ -756,7 +756,7 @@ impl<'b, 'tcx> CrateContext<'b, 'tcx> {
}
pub fn statics<'a>(&'a self) -> &'a RefCell<FnvHashMap<ValueRef, DefId>> {
&self.local.statics
&self.local().statics
}
pub fn impl_method_cache<'a>(&'a self)

View File

@ -233,7 +233,7 @@ impl<'a, 'tcx> MirConstContext<'a, 'tcx> {
let trait_id = trait_item.container().id();
let substs = instance.substs;
let trait_ref = ty::Binder(substs.to_trait_ref(ccx.tcx(), trait_id));
let vtable = common::fulfill_obligation(ccx, DUMMY_SP, trait_ref);
let vtable = common::fulfill_obligation(ccx.shared(), DUMMY_SP, trait_ref);
if let traits::VtableImpl(vtable_impl) = vtable {
let name = ccx.tcx().item_name(instance.def);
for ac in ccx.tcx().associated_consts(vtable_impl.impl_def_id) {