Skip to content

Commit 16d37fa

Browse files
authored
Rollup merge of #121959 - sundeep-kokkonda:patch-2, r=davidtwco
Removing absolute path in proc-macro With rust 1.75 the absolute build path name is embedding into proc-macro (.rustc section) and which causes reproducibility issues. Detailed issue description is here - #120825 (comment) With this change the 'absolute path' changed back to '/rust/$hash' format as in earlier revisions.
2 parents efe9dea + a9a9798 commit 16d37fa

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

compiler/rustc_session/src/session.rs

-13
Original file line numberDiff line numberDiff line change
@@ -899,19 +899,6 @@ impl Session {
899899
}
900900

901901
pub fn should_prefer_remapped_for_codegen(&self) -> bool {
902-
// bail out, if any of the requested crate types aren't:
903-
// "compiled executables or libraries"
904-
for crate_type in &self.opts.crate_types {
905-
match crate_type {
906-
CrateType::Executable
907-
| CrateType::Dylib
908-
| CrateType::Rlib
909-
| CrateType::Staticlib
910-
| CrateType::Cdylib => continue,
911-
CrateType::ProcMacro => return false,
912-
}
913-
}
914-
915902
let has_split_debuginfo = match self.split_debuginfo() {
916903
SplitDebuginfo::Off => false,
917904
SplitDebuginfo::Packed => true,

0 commit comments

Comments
 (0)