Debian Codegraph @

build/build-rust/rust-compiler-intrinsics.patch

raw
1 The version of `rustc` we build had some `compiler-builtins` updates that broke stuff. Later version
2 of rustc in the 1.82 train landed more `compiler-builtins` updates that unbroke the stuff. We need at
3 least some of that to make the version of rustc we landed on work.
4
5 See also: <https://github.com/rust-lang/rust/pull/128691>
6
7 diff --git a/Cargo.lock b/Cargo.lock
8 index 13b8eaea068..c2b8483b5b2 100644
9 --- a/Cargo.lock
10 +++ b/Cargo.lock
11 @@ -739,9 +739,9 @@ checksum = "55b672471b4e9f9e95499ea597ff64941a309b2cdbffcc46f2cc5e2d971fd335"
12
13 [[package]]
14 name = "compiler_builtins"
15 -version = "0.1.114"
16 +version = "0.1.123"
17 source = "registry+https://github.com/rust-lang/crates.io-index"
18 -checksum = "eb58b199190fcfe0846f55a3b545cd6b07a34bdd5930a476ff856f3ebcc5558a"
19 +checksum = "b47fcbecb558bdad78c7d3a998523c60a50dd6cd046d5fe74163e309e878fff7"
20 dependencies = [
21 "cc",
22 "rustc-std-workspace-core",
23 diff --git a/compiler/rustc_codegen_cranelift/patches/stdlib-lock.toml b/compiler/rustc_codegen_cranelift/patches/stdlib-lock.toml
24 index 9ea53e8f848..8d577c836d6 100644
25 --- a/compiler/rustc_codegen_cranelift/patches/stdlib-lock.toml
26 +++ b/compiler/rustc_codegen_cranelift/patches/stdlib-lock.toml
27 @@ -58,9 +58,9 @@ dependencies = [
28
29 [[package]]
30 name = "compiler_builtins"
31 -version = "0.1.106"
32 +version = "0.1.123"
33 source = "registry+https://github.com/rust-lang/crates.io-index"
34 -checksum = "f4ab134a739bafec76aa91ccb15d519a54e569350644a1fea6528d5a0d407e22"
35 +checksum = "b47fcbecb558bdad78c7d3a998523c60a50dd6cd046d5fe74163e309e878fff7"
36 dependencies = [
37 "cc",
38 "rustc-std-workspace-core",
39 diff --git a/compiler/rustc_codegen_gcc/build_system/build_sysroot/Cargo.lock b/compiler/rustc_codegen_gcc/build_system/build_sysroot/Cargo.lock
40 index d6ec1f87d01..771f2f18dce 100644
41 --- a/compiler/rustc_codegen_gcc/build_system/build_sysroot/Cargo.lock
42 +++ b/compiler/rustc_codegen_gcc/build_system/build_sysroot/Cargo.lock
43 @@ -50,7 +50,7 @@ dependencies = [
44
45 [[package]]
46 name = "compiler_builtins"
47 -version = "0.1.109"
48 +version = "0.1.118"
49 source = "registry+https://github.com/rust-lang/crates.io-index"
50 checksum = "f11973008a8cf741fe6d22f339eba21fd0ca81e2760a769ba8243ed6c21edd7e"
51 dependencies = [
52 diff --git a/compiler/rustc_codegen_gcc/build_system/build_sysroot/Cargo.toml b/compiler/rustc_codegen_gcc/build_system/build_sysroot/Cargo.toml
53 index e4669923623..05503128f2a 100644
54 --- a/compiler/rustc_codegen_gcc/build_system/build_sysroot/Cargo.toml
55 +++ b/compiler/rustc_codegen_gcc/build_system/build_sysroot/Cargo.toml
56 @@ -6,9 +6,7 @@ resolver = "2"
57
58 [dependencies]
59 core = { path = "./sysroot_src/library/core" }
60 -# TODO: after the sync, revert to using version 0.1.
61 -# compiler_builtins = "0.1"
62 -compiler_builtins = "=0.1.109"
63 +compiler_builtins = "0.1"
64 alloc = { path = "./sysroot_src/library/alloc" }
65 std = { path = "./sysroot_src/library/std", features = ["panic_unwind", "backtrace"] }
66 test = { path = "./sysroot_src/library/test" }
67 diff --git a/library/alloc/Cargo.toml b/library/alloc/Cargo.toml
68 index 479eb0a2ba7..4365bcc4ad0 100644
69 --- a/library/alloc/Cargo.toml
70 +++ b/library/alloc/Cargo.toml
71 @@ -10,10 +10,7 @@ edition = "2021"
72
73 [dependencies]
74 core = { path = "../core" }
75 -compiler_builtins = { version = "0.1.114", features = ['rustc-dep-of-std'] }
76 -
77 -[target.'cfg(not(any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64")))'.dependencies]
78 -compiler_builtins = { version = "0.1.114", features = ["no-f16-f128"] }
79 +compiler_builtins = { version = "0.1.123", features = ['rustc-dep-of-std'] }
80
81 [dev-dependencies]
82 rand = { version = "0.8.5", default-features = false, features = ["alloc"] }
83 diff --git a/library/std/Cargo.toml b/library/std/Cargo.toml
84 index fe601855cc1..b0462d28237 100644
85 --- a/library/std/Cargo.toml
86 +++ b/library/std/Cargo.toml
87 @@ -17,7 +17,7 @@ cfg-if = { version = "1.0", features = ['rustc-dep-of-std'] }
88 panic_unwind = { path = "../panic_unwind", optional = true }
89 panic_abort = { path = "../panic_abort" }
90 core = { path = "../core", public = true }
91 -compiler_builtins = { version = "0.1.114" }
92 +compiler_builtins = { version = "0.1.123" }
93 profiler_builtins = { path = "../profiler_builtins", optional = true }
94 unwind = { path = "../unwind" }
95 hashbrown = { version = "0.14", default-features = false, features = [