about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSmitty <me@smitop.com>2021-06-29 19:17:14 -0400
committerSmitty <me@smitop.com>2021-06-29 19:17:14 -0400
commitc94bafb69b5a09c7d91959f9be7f5c2d7be1b69d (patch)
tree1bbf812f4a7e2dc5349414286f45cef203a4c6ad
parentab66c3fbd4ca7d3ec3e677c94a8fc65e633aa7f4 (diff)
downloadrust-c94bafb69b5a09c7d91959f9be7f5c2d7be1b69d.tar.gz
rust-c94bafb69b5a09c7d91959f9be7f5c2d7be1b69d.zip
fix sess error
This passed x.py check locally, not sure why it wasn't rebased right...
-rw-r--r--compiler/rustc_codegen_cranelift/src/vtable.rs2
1 files changed, 1 insertions, 1 deletions
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);