mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-20 02:43:45 +00:00
fix sess error
This passed x.py check locally, not sure why it wasn't rebased right...
This commit is contained in:
parent
6048adc8b1
commit
17373a9401
@ -74,7 +74,7 @@ pub(crate) fn get_vtable<'tcx>(
|
|||||||
} else {
|
} else {
|
||||||
let vtable_alloc_id = match fx.tcx.vtable_allocation(ty, trait_ref) {
|
let vtable_alloc_id = match fx.tcx.vtable_allocation(ty, trait_ref) {
|
||||||
Ok(alloc) => alloc,
|
Ok(alloc) => alloc,
|
||||||
Err(_) => fx.tcx.sess().fatal("allocation of constant vtable failed"),
|
Err(_) => fx.tcx.sess.fatal("allocation of constant vtable failed"),
|
||||||
};
|
};
|
||||||
let vtable_allocation = fx.tcx.global_alloc(vtable_alloc_id).unwrap_memory();
|
let vtable_allocation = fx.tcx.global_alloc(vtable_alloc_id).unwrap_memory();
|
||||||
let vtable_ptr = pointer_for_allocation(fx, vtable_allocation);
|
let vtable_ptr = pointer_for_allocation(fx, vtable_allocation);
|
||||||
|
Loading…
Reference in New Issue
Block a user