Fix some rebasing fallout.
This commit is contained in:
parent
00eabcbefa
commit
118cc9e8e1
@ -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)
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user