about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src/values.rs
diff options
context:
space:
mode:
authorThe Miri Conjob Bot <miri@cron.bot>2023-12-26 05:00:54 +0000
committerThe Miri Conjob Bot <miri@cron.bot>2023-12-26 05:00:54 +0000
commit236ae9905a08ff697ddb35261795ad76a1fd3336 (patch)
tree30e459f85746867f972df360431022e4eb4c036e /compiler/rustc_query_system/src/values.rs
parentf2407d98de61888e287efc97dbc4104f3581b70d (diff)
parent2271c26e4a8e062bb00d709d0ccb5846e0c341b9 (diff)
Merge from rustc
Diffstat (limited to 'compiler/rustc_query_system/src/values.rs')
-rw-r--r--compiler/rustc_query_system/src/values.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_system/src/values.rs b/compiler/rustc_query_system/src/values.rs
index 8848fda9da3..4f1c182cdb8 100644
--- a/compiler/rustc_query_system/src/values.rs
+++ b/compiler/rustc_query_system/src/values.rs
@@ -9,7 +9,7 @@ pub trait Value<Tcx: DepContext>: Sized {
 
 impl<Tcx: DepContext, T> Value<Tcx> for T {
     default fn from_cycle_error(tcx: Tcx, cycle: &[QueryInfo], _guar: ErrorGuaranteed) -> T {
-        tcx.sess().abort_if_errors();
+        tcx.sess().dcx().abort_if_errors();
         // Ideally we would use `bug!` here. But bug! is only defined in rustc_middle, and it's
         // non-trivial to define it earlier.
         panic!(