Skip to content

Commit 118cc9e

Browse files
Fix some rebasing fallout.
1 parent 00eabcb commit 118cc9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_trans/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ impl<'b, 'tcx> CrateContext<'b, 'tcx> {
756756
}
757757

758758
pub fn statics<'a>(&'a self) -> &'a RefCell<FnvHashMap<ValueRef, DefId>> {
759-
&self.local.statics
759+
&self.local().statics
760760
}
761761

762762
pub fn impl_method_cache<'a>(&'a self)

src/librustc_trans/mir/constant.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ impl<'a, 'tcx> MirConstContext<'a, 'tcx> {
233233
let trait_id = trait_item.container().id();
234234
let substs = instance.substs;
235235
let trait_ref = ty::Binder(substs.to_trait_ref(ccx.tcx(), trait_id));
236-
let vtable = common::fulfill_obligation(ccx, DUMMY_SP, trait_ref);
236+
let vtable = common::fulfill_obligation(ccx.shared(), DUMMY_SP, trait_ref);
237237
if let traits::VtableImpl(vtable_impl) = vtable {
238238
let name = ccx.tcx().item_name(instance.def);
239239
for ac in ccx.tcx().associated_consts(vtable_impl.impl_def_id) {

0 commit comments

Comments
 (0)