Update to nightly-2024-07-02

This commit is contained in:
Antoni Boucher 2024-07-02 12:33:09 -04:00
parent 4d3d0d492f
commit ee41c1904a
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2024-06-18"
channel = "nightly-2024-07-02"
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]

View File

@ -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,