From 5368e8be95360e9ee0ae07a7154ad2a2d715c980 Mon Sep 17 00:00:00 2001 From: Sundeep KOKKONDA <56015745+sundeep-kokkonda@users.noreply.github.com> Date: Fri, 1 Mar 2024 15:15:15 +0530 Subject: [PATCH] Removing absolute path in '.rustc' section With rust 1.75 the absolute build path is embedding into '.rustc' section and which causes reproducibility issues. Detailed issue is here. https://github.com/rust-lang/rust/issues/120825#issuecomment-1964307219 With this change the 'absolute path' changed back to '/rust/$hash' format. --- compiler/rustc_session/src/session.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs index 09fb6aa5d8f98..6b2bac8eeeb4e 100644 --- a/compiler/rustc_session/src/session.rs +++ b/compiler/rustc_session/src/session.rs @@ -907,7 +907,7 @@ impl Session { | CrateType::Rlib | CrateType::Staticlib | CrateType::Cdylib => continue, - CrateType::ProcMacro => return false, + CrateType::ProcMacro => return true, } }