Skip to content

Commit 17373a9

Browse files
committed
fix sess error
This passed x.py check locally, not sure why it wasn't rebased right...
1 parent 6048adc commit 17373a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vtable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub(crate) fn get_vtable<'tcx>(
7474
} else {
7575
let vtable_alloc_id = match fx.tcx.vtable_allocation(ty, trait_ref) {
7676
Ok(alloc) => alloc,
77-
Err(_) => fx.tcx.sess().fatal("allocation of constant vtable failed"),
77+
Err(_) => fx.tcx.sess.fatal("allocation of constant vtable failed"),
7878
};
7979
let vtable_allocation = fx.tcx.global_alloc(vtable_alloc_id).unwrap_memory();
8080
let vtable_ptr = pointer_for_allocation(fx, vtable_allocation);

0 commit comments

Comments
 (0)