Skip to content

Commit e481b82

Browse files
committed
Auto merge of #164804 - fmease:rollup-MuYCC3k, r=fmease
Rollup of 9 pull requests Successful merges: - #164792 (rustc_codegen_cranelift subtree update) - #163799 (std: keep value of `local_pointer!` until `thread_cleanup` is run) - #164781 (Bump dist-x86_64-illumos to Ubuntu 22.04) - #160902 (borrowck dataflow: respect borrow shallowness when killing borrows that conflict with assignments) - #163684 (suggest named lifetimes instead of `'_` in `use<...>` for E0700) - #164167 (Account for `use foo as bar;` on resolution error suggestions) - #164438 (Make async drop shim proxy pinned) - #164528 (Complete the various renamings of terms belonging to feature `checked_type_aliases`) - #164796 (miri: fix ICE when caller signature is c-variadic but callee is not)
2 parents fe2b43d + c841ffb commit e481b82

153 files changed

Lines changed: 1242 additions & 548 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎compiler/rustc_borrowck/src/dataflow.rs‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ use rustc_mir_dataflow::impls::{
1010
use rustc_mir_dataflow::{Analysis, GenKill, JoinSemiLattice};
1111
use tracing::debug;
1212

13-
use crate::{BorrowSet, PlaceConflictBias, PlaceExt, RegionInferenceContext, places_conflict};
13+
use crate::{
14+
AccessDepth, BorrowSet, PlaceConflictBias, PlaceExt, RegionInferenceContext, places_conflict,
15+
};
1416

1517
// This analysis is different to most others. Its results aren't computed with
1618
// `iterate_to_fixpoint`, but are instead composed from the results of three sub-analyses that are
@@ -448,7 +450,7 @@ impl<'a, 'tcx> Borrows<'a, 'tcx> {
448450

449451
// If the borrowed place is a local with no projections, all other borrows of this
450452
// local must conflict. This is purely an optimization so we don't have to call
451-
// `places_conflict` for every borrow.
453+
// `places_conflict::borrow_conflicts_with_place` for every borrow.
452454
if place.projection.is_empty() {
453455
if !self.body.local_decls[place.local].is_ref_to_static() {
454456
state.kill_all(other_borrows_of_local);
@@ -461,11 +463,13 @@ impl<'a, 'tcx> Borrows<'a, 'tcx> {
461463
// will be assured that two places being compared definitely denotes the same sets of
462464
// locations.
463465
let definitely_conflicting_borrows = other_borrows_of_local.filter(|&i| {
464-
places_conflict(
466+
places_conflict::borrow_conflicts_with_place(
465467
self.tcx,
466468
self.body,
467469
self.borrow_set[i].borrowed_place,
468-
place,
470+
self.borrow_set[i].kind,
471+
place.as_ref(),
472+
AccessDepth::Deep,
469473
PlaceConflictBias::NoOverlap,
470474
)
471475
});

‎compiler/rustc_codegen_cranelift/Cargo.lock‎

Lines changed: 47 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -43,46 +43,46 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
4343

4444
[[package]]
4545
name = "cranelift-assembler-x64"
46-
version = "0.135.0"
46+
version = "0.137.0"
4747
source = "registry+https://github.com/rust-lang/crates.io-index"
48-
checksum = "a4a59ddc4abd9c5560f4742864b2cd8c19e73c7263f0c866b2c45c2d31587adc"
48+
checksum = "d3307701abcb90554ee72fdb0db36ee0334a4abe380c4d87a5b04a6942613c3a"
4949
dependencies = [
5050
"cranelift-assembler-x64-meta",
5151
]
5252

5353
[[package]]
5454
name = "cranelift-assembler-x64-meta"
55-
version = "0.135.0"
55+
version = "0.137.0"
5656
source = "registry+https://github.com/rust-lang/crates.io-index"
57-
checksum = "8a8c361cd22fd0fdd8e61af6bfd86ad9c0c62f78b2b1caa2b9e4e97cd8f605fe"
57+
checksum = "e62d0e19f9f5fa0c4243236df1ffdf139d207600b4402ac41ceba8dbe7ca0f3d"
5858
dependencies = [
5959
"cranelift-srcgen",
6060
]
6161

6262
[[package]]
6363
name = "cranelift-bforest"
64-
version = "0.135.0"
64+
version = "0.137.0"
6565
source = "registry+https://github.com/rust-lang/crates.io-index"
66-
checksum = "b86c34ae183cf2410318f899648fe1ef6ab9148486e7b938d7b4d814e61dafc9"
66+
checksum = "47784bc3c4b57c0182bb8ff04aae5d5f5fc6bae8ba26b1212c9a659b90dab84e"
6767
dependencies = [
6868
"cranelift-entity",
6969
"wasmtime-internal-core",
7070
]
7171

7272
[[package]]
7373
name = "cranelift-bitset"
74-
version = "0.135.0"
74+
version = "0.137.0"
7575
source = "registry+https://github.com/rust-lang/crates.io-index"
76-
checksum = "415f1a12668869e16ac3b66a729fb8cce8bbe6e50e68d1fa0142acd0c9c05f0c"
76+
checksum = "e13d120406f713dbce1940751e77bbb14daad1261379b7200c19285953e79a1d"
7777
dependencies = [
7878
"wasmtime-internal-core",
7979
]
8080

8181
[[package]]
8282
name = "cranelift-codegen"
83-
version = "0.135.0"
83+
version = "0.137.0"
8484
source = "registry+https://github.com/rust-lang/crates.io-index"
85-
checksum = "73eecedc85ffca4f34dbe197c6545c8ade6579a61352457936f53c3bffa6353b"
85+
checksum = "a53dbec33ff86909e44be6f0ec2d17841aa38b931013707c9fc7279f1f0e5760"
8686
dependencies = [
8787
"bumpalo",
8888
"cranelift-assembler-x64",
@@ -107,9 +107,9 @@ dependencies = [
107107

108108
[[package]]
109109
name = "cranelift-codegen-meta"
110-
version = "0.135.0"
110+
version = "0.137.0"
111111
source = "registry+https://github.com/rust-lang/crates.io-index"
112-
checksum = "66834005198c3e9e3d89cd69cf1541419402ab75250afbeaa3128db6d5254025"
112+
checksum = "42295b38e9182954cb32a71812e3d64d66a90efc0a2ababb73e465ad4a1efccf"
113113
dependencies = [
114114
"cranelift-assembler-x64-meta",
115115
"cranelift-codegen-shared",
@@ -119,34 +119,34 @@ dependencies = [
119119

120120
[[package]]
121121
name = "cranelift-codegen-shared"
122-
version = "0.135.0"
122+
version = "0.137.0"
123123
source = "registry+https://github.com/rust-lang/crates.io-index"
124-
checksum = "7e6efaf74077091a2ff41317cc8eb2779264dae4b8a16d955835f3fcda338f52"
124+
checksum = "b5200fa877fb64cd30cabe0603f394333f88f69adf63e4db8d48a111d0c9d0dd"
125125

126126
[[package]]
127127
name = "cranelift-control"
128-
version = "0.135.0"
128+
version = "0.137.0"
129129
source = "registry+https://github.com/rust-lang/crates.io-index"
130-
checksum = "a4258d4ed6ad4e698fe1fec4277b1fcbea6f2a17cb5ec3f04bddfb38ca83d93e"
130+
checksum = "b86250e480795fbb4425ea703bca7b75282998458ce74f5360843a31949f2bbc"
131131
dependencies = [
132132
"arbitrary",
133133
]
134134

135135
[[package]]
136136
name = "cranelift-entity"
137-
version = "0.135.0"
137+
version = "0.137.0"
138138
source = "registry+https://github.com/rust-lang/crates.io-index"
139-
checksum = "4f016b6f87b1a46a3f5df59b82d88bb352bf2fa6d7868875dfc4d6b65de5242d"
139+
checksum = "903c6592c7d600c251d20929f143543b7303ac70b072ad3394d65b29caf56f69"
140140
dependencies = [
141141
"cranelift-bitset",
142142
"wasmtime-internal-core",
143143
]
144144

145145
[[package]]
146146
name = "cranelift-frontend"
147-
version = "0.135.0"
147+
version = "0.137.0"
148148
source = "registry+https://github.com/rust-lang/crates.io-index"
149-
checksum = "b16f2b149dae6ea3886bee931445196d86d8e71b66f7c3b21abe434f77189be8"
149+
checksum = "b929f09b82a270e2aae062945cf86cd9db39c59ad9bead6986ea6b09fcf8a969"
150150
dependencies = [
151151
"cranelift-codegen",
152152
"hashbrown 0.17.0",
@@ -157,15 +157,15 @@ dependencies = [
157157

158158
[[package]]
159159
name = "cranelift-isle"
160-
version = "0.135.0"
160+
version = "0.137.0"
161161
source = "registry+https://github.com/rust-lang/crates.io-index"
162-
checksum = "f00258ff3d37f52ed731df679205e66175c728846dbde186ee20e93973d12ee7"
162+
checksum = "b1c5809e8636a37e5a25ecc35242d33d6e7391c49b67488b83446e2898af2a2f"
163163

164164
[[package]]
165165
name = "cranelift-jit"
166-
version = "0.135.0"
166+
version = "0.137.0"
167167
source = "registry+https://github.com/rust-lang/crates.io-index"
168-
checksum = "fa063cc98af51fb9090cd40b674503e21bdfa705d2bff75ebf98b79ffc0f598d"
168+
checksum = "a86db0c01bd2f7f86fedbebd6bee15ab40d74bd1a87b35e19b2a1a07612427ba"
169169
dependencies = [
170170
"anyhow",
171171
"cranelift-codegen",
@@ -184,31 +184,33 @@ dependencies = [
184184

185185
[[package]]
186186
name = "cranelift-module"
187-
version = "0.135.0"
187+
version = "0.137.0"
188188
source = "registry+https://github.com/rust-lang/crates.io-index"
189-
checksum = "bff0025f1ff6a0470cbd2a61b125f8501311ea9e6c46ed5bb2110ee6710c6a76"
189+
checksum = "bb4f4b6e71b257549ffa6f14ddc0c314f332f66c7531b3c9a645c290a9d1effa"
190190
dependencies = [
191191
"anyhow",
192192
"cranelift-codegen",
193193
"cranelift-control",
194+
"hashbrown 0.17.0",
194195
]
195196

196197
[[package]]
197198
name = "cranelift-native"
198-
version = "0.135.0"
199+
version = "0.137.0"
199200
source = "registry+https://github.com/rust-lang/crates.io-index"
200-
checksum = "4f31eb7e08f31e5bc9c167c35718b0325efa3d4e234e2e9342316e01b18a4b51"
201+
checksum = "815c559daf605a5b4ea35530604643c1e87504353c0d1a14763f9c2b9d518493"
201202
dependencies = [
202203
"cranelift-codegen",
203204
"libc",
205+
"mach2 0.6.0",
204206
"target-lexicon",
205207
]
206208

207209
[[package]]
208210
name = "cranelift-object"
209-
version = "0.135.0"
211+
version = "0.137.0"
210212
source = "registry+https://github.com/rust-lang/crates.io-index"
211-
checksum = "7ca0d86955529d5b9041c4c07745f6ffa42c32326e9f467a834e2b7bd9a9d156"
213+
checksum = "78f98e6d6b502fa10bd1bb95776544033169d0c1860d6fe1ada03109ea500eb4"
212214
dependencies = [
213215
"anyhow",
214216
"cranelift-codegen",
@@ -221,9 +223,9 @@ dependencies = [
221223

222224
[[package]]
223225
name = "cranelift-srcgen"
224-
version = "0.135.0"
226+
version = "0.137.0"
225227
source = "registry+https://github.com/rust-lang/crates.io-index"
226-
checksum = "2e0b67d313f510520f40c1496c3446af0d6b30219d1ba9a4c09c77ec288a561b"
228+
checksum = "d633ff621e7f31a943431da0d7dd37c4376766c60bd7171216de1c7ccabfb370"
227229

228230
[[package]]
229231
name = "crc32fast"
@@ -332,6 +334,12 @@ dependencies = [
332334
"libc",
333335
]
334336

337+
[[package]]
338+
name = "mach2"
339+
version = "0.6.0"
340+
source = "registry+https://github.com/rust-lang/crates.io-index"
341+
checksum = "dae608c151f68243f2b000364e1f7b186d9c29845f7d2d85bd31b9ad77ad552b"
342+
335343
[[package]]
336344
name = "memchr"
337345
version = "2.7.6"
@@ -349,9 +357,9 @@ dependencies = [
349357

350358
[[package]]
351359
name = "object"
352-
version = "0.39.1"
360+
version = "0.40.0"
353361
source = "registry+https://github.com/rust-lang/crates.io-index"
354-
checksum = "2e5a6c098c7a3b6547378093f5cc30bc54fd361ce711e05293a5cc589562739b"
362+
checksum = "dd229a0361b9d0d4396176e02d65897f487eebeab7caa6d443855ee152ca0b9c"
355363
dependencies = [
356364
"crc32fast",
357365
"hashbrown 0.17.0",
@@ -399,7 +407,7 @@ checksum = "e6b6ebd13bc009aef9cd476c1310d49ac354d36e240cf1bd753290f3dc7199a7"
399407
dependencies = [
400408
"bitflags",
401409
"libc",
402-
"mach2",
410+
"mach2 0.4.3",
403411
"windows-sys 0.52.0",
404412
]
405413

@@ -493,19 +501,19 @@ checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
493501

494502
[[package]]
495503
name = "wasmtime-internal-core"
496-
version = "48.0.0"
504+
version = "50.0.0"
497505
source = "registry+https://github.com/rust-lang/crates.io-index"
498-
checksum = "2c01c81d781512e17b38c3a76ca9aa2564bc3f9fd8ff6ffc77ba3e1c290d488a"
506+
checksum = "83d4ac46034b149aed44335595402503094a04e3b70d0cff8c169d83437318b8"
499507
dependencies = [
500508
"hashbrown 0.17.0",
501509
"libm",
502510
]
503511

504512
[[package]]
505513
name = "wasmtime-internal-jit-icache-coherence"
506-
version = "48.0.0"
514+
version = "50.0.0"
507515
source = "registry+https://github.com/rust-lang/crates.io-index"
508-
checksum = "2a09abde04346919af1136a28f344e200685509e28815aef4c39dc08977cc1d8"
516+
checksum = "cf25a1b3b925915f845927967554400554db9cebd3a7038a6fca0cf6e9bbaf6a"
509517
dependencies = [
510518
"libc",
511519
"wasmtime-internal-core",

‎compiler/rustc_codegen_cranelift/Cargo.toml‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,28 @@ crate-type = ["dylib"]
88

99
[dependencies]
1010
# These have to be in sync with each other
11-
cranelift-codegen = { version = "0.135.0", default-features = false, features = ["std", "timing", "unwind", "all-native-arch"] }
12-
cranelift-frontend = { version = "0.135.0" }
13-
cranelift-module = { version = "0.135.0" }
14-
cranelift-native = { version = "0.135.0" }
15-
cranelift-jit = { version = "0.135.0", optional = true }
16-
cranelift-object = { version = "0.135.0", default-features = false }
11+
cranelift-codegen = { version = "0.137.0", default-features = false, features = ["std", "timing", "unwind", "all-native-arch"] }
12+
cranelift-frontend = { version = "0.137.0" }
13+
cranelift-module = { version = "0.137.0" }
14+
cranelift-native = { version = "0.137.0" }
15+
cranelift-jit = { version = "0.137.0", optional = true }
16+
cranelift-object = { version = "0.137.0", default-features = false }
1717
target-lexicon = "0.13"
1818
gimli = { version = "0.33", default-features = false, features = ["write"] }
19-
object = { version = "0.39.1", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
19+
object = { version = "0.40.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
2020

2121
indexmap = "2.0.0"
2222
libloading = { version = "0.9.0", optional = true }
2323
smallvec = "1.8.1"
2424

2525
# Uncomment to use an unreleased version of cranelift
2626
#[patch.crates-io]
27-
#cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-48.0.0" }
28-
#cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-48.0.0" }
29-
#cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-48.0.0" }
30-
#cranelift-native = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-48.0.0" }
31-
#cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-48.0.0" }
32-
#cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-48.0.0" }
27+
#cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-50.0.0" }
28+
#cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-50.0.0" }
29+
#cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-50.0.0" }
30+
#cranelift-native = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-50.0.0" }
31+
#cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-50.0.0" }
32+
#cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-50.0.0" }
3333

3434
# Uncomment to use local checkout of cranelift
3535
#cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }

‎compiler/rustc_codegen_cranelift/patches/0029-sysroot_tests-Disable-complex-type-tests.patch‎

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
2-
channel = "nightly-2026-09-30"
2+
channel = "nightly-2026-10-23"
33
components = ["rust-src", "rustc-dev", "llvm-tools", "rustfmt"]
44
profile = "minimal"

‎compiler/rustc_codegen_cranelift/scripts/abi-cafe-rules.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
'OptionU128::conv_rust::repr_c::rustc_caller'.busted = "run"
77
'OptionU128::conv_rust::repr_c::cgclif_caller'.busted = "check"
88

9-
[target.'cfg(all(target_arch = "x86_64", windows))']
10-
'simple::conv_rust'.busted = "check"
11-
'simple::conv_rust::rustc_caller'.busted = "run"
9+
[target.'cfg(all(target_arch = "x86_64", target_env = "msvc"))']
10+
# ICE: https://github.com/rust-lang/rust/issues/164207
11+
'EmptyStruct::conv_c::repr_c::rustc_calls_cgclif'.run = "skip"
1212

1313
[target.'*'.'f16']
1414
run = "skip"

0 commit comments

Comments
 (0)