about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/driver/aot.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-21 16:26:09 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-24 08:17:47 +1100
commit8a9db2545919f945ffbb215e4325917e0bfc5b3a (patch)
tree435bcdd5e90f99b23e52f76535996e27c42ccf06 /compiler/rustc_codegen_cranelift/src/driver/aot.rs
parent8af3d8dcabc8970615dd386df7fde13c5794f004 (diff)
downloadrust-8a9db2545919f945ffbb215e4325917e0bfc5b3a.tar.gz
rust-8a9db2545919f945ffbb215e4325917e0bfc5b3a.zip
Remove more `Session` methods that duplicate `DiagCtxt` methods.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/driver/aot.rs')
-rw-r--r--compiler/rustc_codegen_cranelift/src/driver/aot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/driver/aot.rs b/compiler/rustc_codegen_cranelift/src/driver/aot.rs
index df457b16085..e77b0cd0721 100644
--- a/compiler/rustc_codegen_cranelift/src/driver/aot.rs
+++ b/compiler/rustc_codegen_cranelift/src/driver/aot.rs
@@ -108,7 +108,7 @@ impl OngoingCodegen {
 
         self.concurrency_limiter.finished();
 
-        sess.abort_if_errors();
+        sess.dcx().abort_if_errors();
 
         (
             CodegenResults {