From c94bafb69b5a09c7d91959f9be7f5c2d7be1b69d Mon Sep 17 00:00:00 2001 From: Smitty Date: Tue, 29 Jun 2021 19:17:14 -0400 Subject: [PATCH] fix sess error This passed x.py check locally, not sure why it wasn't rebased right... --- compiler/rustc_codegen_cranelift/src/vtable.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_codegen_cranelift/src/vtable.rs b/compiler/rustc_codegen_cranelift/src/vtable.rs index 5788aabaadc..7ee34b23e46 100644 --- a/compiler/rustc_codegen_cranelift/src/vtable.rs +++ b/compiler/rustc_codegen_cranelift/src/vtable.rs @@ -74,7 +74,7 @@ pub(crate) fn get_vtable<'tcx>( } else { let vtable_alloc_id = match fx.tcx.vtable_allocation(ty, trait_ref) { 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_ptr = pointer_for_allocation(fx, vtable_allocation);