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
commit17373a94018ee37365cc1c1c48e88372bb7c4283 (patch)
tree6e9952211f616e0d5c4676bbef94176020519046
parent6048adc8b1cc5db39af736cf4531c46059b6966d (diff)
downloadrust-17373a94018ee37365cc1c1c48e88372bb7c4283.tar.gz
rust-17373a94018ee37365cc1c1c48e88372bb7c4283.zip
fix sess error
This passed x.py check locally, not sure why it wasn't rebased right...
-rw-r--r--src/vtable.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vtable.rs b/src/vtable.rs
index 5788aabaadc..7ee34b23e46 100644
--- a/src/vtable.rs
+++ b/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);