about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2024-07-02 12:33:09 -0400
committerAntoni Boucher <bouanto@zoho.com>2024-07-02 12:33:09 -0400
commitee41c1904a39d485b11672064f67ffe0236105fc (patch)
treedbd052ffa0a2568d7d187089dbe5e88cf493328b /src
parent4d3d0d492f25eddeb837e16b2773783c95f8933b (diff)
downloadrust-ee41c1904a39d485b11672064f67ffe0236105fc.tar.gz
rust-ee41c1904a39d485b11672064f67ffe0236105fc.zip
Update to nightly-2024-07-02
Diffstat (limited to 'src')
-rw-r--r--src/back/lto.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/back/lto.rs b/src/back/lto.rs
index 4b31bfac5dd..19964176bcb 100644
--- a/src/back/lto.rs
+++ b/src/back/lto.rs
@@ -364,7 +364,8 @@ pub(crate) fn run_thin(
     cached_modules: Vec<(SerializedModule<ModuleBuffer>, WorkProduct)>,
 ) -> Result<(Vec<LtoModuleCodegen<GccCodegenBackend>>, Vec<WorkProduct>), FatalError> {
     let dcx = cgcx.create_dcx();
-    let lto_data = prepare_lto(cgcx, &dcx)?;
+    let dcx = dcx.handle();
+    let lto_data = prepare_lto(cgcx, dcx)?;
     /*let symbols_below_threshold =
     symbols_below_threshold.iter().map(|c| c.as_ptr()).collect::<Vec<_>>();*/
     if cgcx.opts.cg.linker_plugin_lto.enabled() {
@@ -375,7 +376,7 @@ pub(crate) fn run_thin(
     }
     thin_lto(
         cgcx,
-        &dcx,
+        dcx,
         modules,
         lto_data.upstream_modules,
         lto_data.tmp_path,
@@ -425,7 +426,7 @@ pub(crate) fn prepare_thin(
 /// they all go out of scope.
 fn thin_lto(
     cgcx: &CodegenContext<GccCodegenBackend>,
-    _dcx: &DiagCtxt,
+    _dcx: DiagCtxtHandle<'_>,
     modules: Vec<(String, ThinBuffer)>,
     serialized_modules: Vec<(SerializedModule<ModuleBuffer>, CString)>,
     tmp_path: TempDir,