Skip to content

Commit 66ec64c

Browse files
committed
Auto merge of rust-lang#82851 - JohnTitor:rollup-me5ko8g, r=JohnTitor
Rollup of 13 pull requests Successful merges: - rust-lang#77916 (Change built-in kernel targets to be os = none throughout) - rust-lang#82130 (Make some Option, Result methods unstably const) - rust-lang#82292 (Prevent specialized ZipImpl from calling `__iterator_get_unchecked` twice with the same index) - rust-lang#82402 (Remove RefCell around `module_trait_cache`) - rust-lang#82592 (Improve transmute docs with further clarifications) - rust-lang#82651 (Cleanup rustdoc warnings) - rust-lang#82720 (Fix diagnostic suggests adding type `[type error]`) - rust-lang#82751 (improve offset_from docs) - rust-lang#82793 (Move some tests to more suitable subdirs) - rust-lang#82803 (rustdoc: Add an unstable option to print all unversioned files) - rust-lang#82808 (Sync rustc_codegen_cranelift) - rust-lang#82822 (Fix typo) - rust-lang#82837 (tweak MaybeUninit docs) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents dfe519b + 6220e00 commit 66ec64c

File tree

146 files changed

+1500
-2836
lines changed

Some content is hidden

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

146 files changed

+1500
-2836
lines changed

compiler/rustc/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ fn main() {
44
// Note that we're pulling in a static copy of jemalloc which means that to
55
// pull it in we need to actually reference its symbols for it to get
66
// linked. The two crates we link to here, std and rustc_driver, are both
7-
// dynamic libraries. That means to pull in jemalloc we need to actually
7+
// dynamic libraries. That means to pull in jemalloc we actually need to
88
// reference allocation symbols one way or another (as this file is the only
99
// object code in the rustc executable).
1010
#[cfg(feature = "jemalloc-sys")]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
task:
2+
name: freebsd
3+
freebsd_instance:
4+
image: freebsd-12-1-release-amd64
5+
setup_rust_script:
6+
- pkg install -y curl git bash
7+
- curl https://sh.rustup.rs -sSf --output rustup.sh
8+
- sh rustup.sh --default-toolchain none -y --profile=minimal
9+
cargo_bin_cache:
10+
folder: ~/.cargo/bin
11+
target_cache:
12+
folder: target
13+
prepare_script:
14+
- . $HOME/.cargo/env
15+
- git config --global user.email "[email protected]"
16+
- git config --global user.name "User"
17+
- ./prepare.sh
18+
test_script:
19+
- . $HOME/.cargo/env
20+
- # Enable backtraces for easier debugging
21+
- export RUST_BACKTRACE=1
22+
- # Reduce amount of benchmark runs as they are slow
23+
- export COMPILE_RUNS=2
24+
- export RUN_RUNS=2
25+
- ./test.sh

compiler/rustc_codegen_cranelift/.github/workflows/main.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os: [ubuntu-latest, macos-latest]
15-
env:
16-
- BACKEND: ""
17-
- BACKEND: --oldbe
1815

1916
steps:
2017
- uses: actions/checkout@v2
@@ -54,7 +51,7 @@ jobs:
5451
export COMPILE_RUNS=2
5552
export RUN_RUNS=2
5653
57-
./test.sh $BACKEND
54+
./test.sh
5855
5956
- name: Package prebuilt cg_clif
6057
run: tar cvfJ cg_clif.tar.xz build

compiler/rustc_codegen_cranelift/.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
// source for rustc_* is not included in the rust-src component; disable the errors about this
3-
"rust-analyzer.diagnostics.disabled": ["unresolved-extern-crate"],
3+
"rust-analyzer.diagnostics.disabled": ["unresolved-extern-crate", "macro-error"],
44
"rust-analyzer.assist.importMergeBehavior": "last",
55
"rust-analyzer.cargo.loadOutDirsFromCheck": true,
66
"rust-analyzer.linkedProjects": [

compiler/rustc_codegen_cranelift/Cargo.lock

+41-87
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# This file is automatically @generated by Cargo.
22
# It is not intended for manual editing.
3+
version = 3
4+
35
[[package]]
46
name = "anyhow"
57
version = "1.0.38"
@@ -29,18 +31,6 @@ version = "1.4.2"
2931
source = "registry+https://github.com/rust-lang/crates.io-index"
3032
checksum = "ae44d1a3d5a19df61dd0c8beb138458ac2a53a7ac09eba97d55592540004306b"
3133

32-
[[package]]
33-
name = "cc"
34-
version = "1.0.66"
35-
source = "registry+https://github.com/rust-lang/crates.io-index"
36-
checksum = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48"
37-
38-
[[package]]
39-
name = "cfg-if"
40-
version = "0.1.10"
41-
source = "registry+https://github.com/rust-lang/crates.io-index"
42-
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
43-
4434
[[package]]
4535
name = "cfg-if"
4636
version = "1.0.0"
@@ -49,16 +39,16 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
4939

5040
[[package]]
5141
name = "cranelift-bforest"
52-
version = "0.69.0"
53-
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
42+
version = "0.70.0"
43+
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#cdb60ec5a9df087262ae8960a31067e88cd80058"
5444
dependencies = [
5545
"cranelift-entity",
5646
]
5747

5848
[[package]]
5949
name = "cranelift-codegen"
60-
version = "0.69.0"
61-
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
50+
version = "0.70.0"
51+
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#cdb60ec5a9df087262ae8960a31067e88cd80058"
6252
dependencies = [
6353
"byteorder",
6454
"cranelift-bforest",
@@ -75,27 +65,27 @@ dependencies = [
7565

7666
[[package]]
7767
name = "cranelift-codegen-meta"
78-
version = "0.69.0"
79-
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
68+
version = "0.70.0"
69+
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#cdb60ec5a9df087262ae8960a31067e88cd80058"
8070
dependencies = [
8171
"cranelift-codegen-shared",
8272
"cranelift-entity",
8373
]
8474

8575
[[package]]
8676
name = "cranelift-codegen-shared"
87-
version = "0.69.0"
88-
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
77+
version = "0.70.0"
78+
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#cdb60ec5a9df087262ae8960a31067e88cd80058"
8979

9080
[[package]]
9181
name = "cranelift-entity"
92-
version = "0.69.0"
93-
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
82+
version = "0.70.0"
83+
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#cdb60ec5a9df087262ae8960a31067e88cd80058"
9484

9585
[[package]]
9686
name = "cranelift-frontend"
97-
version = "0.69.0"
98-
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
87+
version = "0.70.0"
88+
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#cdb60ec5a9df087262ae8960a31067e88cd80058"
9989
dependencies = [
10090
"cranelift-codegen",
10191
"log",
@@ -105,8 +95,8 @@ dependencies = [
10595

10696
[[package]]
10797
name = "cranelift-jit"
108-
version = "0.69.0"
109-
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
98+
version = "0.70.0"
99+
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#cdb60ec5a9df087262ae8960a31067e88cd80058"
110100
dependencies = [
111101
"anyhow",
112102
"cranelift-codegen",
@@ -123,8 +113,8 @@ dependencies = [
123113

124114
[[package]]
125115
name = "cranelift-module"
126-
version = "0.69.0"
127-
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
116+
version = "0.70.0"
117+
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#cdb60ec5a9df087262ae8960a31067e88cd80058"
128118
dependencies = [
129119
"anyhow",
130120
"cranelift-codegen",
@@ -135,18 +125,17 @@ dependencies = [
135125

136126
[[package]]
137127
name = "cranelift-native"
138-
version = "0.69.0"
139-
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
128+
version = "0.70.0"
129+
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#cdb60ec5a9df087262ae8960a31067e88cd80058"
140130
dependencies = [
141131
"cranelift-codegen",
142-
"raw-cpuid",
143132
"target-lexicon",
144133
]
145134

146135
[[package]]
147136
name = "cranelift-object"
148-
version = "0.69.0"
149-
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
137+
version = "0.70.0"
138+
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#cdb60ec5a9df087262ae8960a31067e88cd80058"
150139
dependencies = [
151140
"anyhow",
152141
"cranelift-codegen",
@@ -162,7 +151,7 @@ version = "1.2.1"
162151
source = "registry+https://github.com/rust-lang/crates.io-index"
163152
checksum = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a"
164153
dependencies = [
165-
"cfg-if 1.0.0",
154+
"cfg-if",
166155
]
167156

168157
[[package]]
@@ -219,27 +208,27 @@ dependencies = [
219208

220209
[[package]]
221210
name = "libc"
222-
version = "0.2.82"
211+
version = "0.2.86"
223212
source = "registry+https://github.com/rust-lang/crates.io-index"
224-
checksum = "89203f3fba0a3795506acaad8ebce3c80c0af93f994d5a1d7a0b1eeb23271929"
213+
checksum = "b7282d924be3275cec7f6756ff4121987bc6481325397dde6ba3e7802b1a8b1c"
225214

226215
[[package]]
227216
name = "libloading"
228217
version = "0.6.7"
229218
source = "registry+https://github.com/rust-lang/crates.io-index"
230219
checksum = "351a32417a12d5f7e82c368a66781e307834dae04c6ce0cd4456d52989229883"
231220
dependencies = [
232-
"cfg-if 1.0.0",
221+
"cfg-if",
233222
"winapi",
234223
]
235224

236225
[[package]]
237226
name = "log"
238-
version = "0.4.13"
227+
version = "0.4.14"
239228
source = "registry+https://github.com/rust-lang/crates.io-index"
240-
checksum = "fcf3805d4480bb5b86070dcfeb9e2cb2ebc148adb753c5cca5f884d1d65a42b2"
229+
checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710"
241230
dependencies = [
242-
"cfg-if 0.1.10",
231+
"cfg-if",
243232
]
244233

245234
[[package]]
@@ -253,9 +242,9 @@ dependencies = [
253242

254243
[[package]]
255244
name = "object"
256-
version = "0.22.0"
245+
version = "0.23.0"
257246
source = "registry+https://github.com/rust-lang/crates.io-index"
258-
checksum = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397"
247+
checksum = "a9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4"
259248
dependencies = [
260249
"crc32fast",
261250
"indexmap",
@@ -272,24 +261,13 @@ dependencies = [
272261

273262
[[package]]
274263
name = "quote"
275-
version = "1.0.8"
264+
version = "1.0.9"
276265
source = "registry+https://github.com/rust-lang/crates.io-index"
277-
checksum = "991431c3519a3f36861882da93630ce66b52918dcf1b8e2fd66b397fc96f28df"
266+
checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7"
278267
dependencies = [
279268
"proc-macro2",
280269
]
281270

282-
[[package]]
283-
name = "raw-cpuid"
284-
version = "8.1.2"
285-
source = "registry+https://github.com/rust-lang/crates.io-index"
286-
checksum = "1fdf7d9dbd43f3d81d94a49c1c3df73cc2b3827995147e6cf7f89d4ec5483e73"
287-
dependencies = [
288-
"bitflags",
289-
"cc",
290-
"rustc_version",
291-
]
292-
293271
[[package]]
294272
name = "regalloc"
295273
version = "0.0.31"
@@ -337,30 +315,6 @@ dependencies = [
337315
"target-lexicon",
338316
]
339317

340-
[[package]]
341-
name = "rustc_version"
342-
version = "0.2.3"
343-
source = "registry+https://github.com/rust-lang/crates.io-index"
344-
checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a"
345-
dependencies = [
346-
"semver",
347-
]
348-
349-
[[package]]
350-
name = "semver"
351-
version = "0.9.0"
352-
source = "registry+https://github.com/rust-lang/crates.io-index"
353-
checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403"
354-
dependencies = [
355-
"semver-parser",
356-
]
357-
358-
[[package]]
359-
name = "semver-parser"
360-
version = "0.7.0"
361-
source = "registry+https://github.com/rust-lang/crates.io-index"
362-
checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
363-
364318
[[package]]
365319
name = "smallvec"
366320
version = "1.6.1"
@@ -369,9 +323,9 @@ checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e"
369323

370324
[[package]]
371325
name = "syn"
372-
version = "1.0.58"
326+
version = "1.0.60"
373327
source = "registry+https://github.com/rust-lang/crates.io-index"
374-
checksum = "cc60a3d73ea6594cd712d830cc1f0390fd71542d8c8cd24e70cc54cdfd5e05d5"
328+
checksum = "c700597eca8a5a762beb35753ef6b94df201c81cca676604f547495a0d7f0081"
375329
dependencies = [
376330
"proc-macro2",
377331
"quote",
@@ -380,24 +334,24 @@ dependencies = [
380334

381335
[[package]]
382336
name = "target-lexicon"
383-
version = "0.11.1"
337+
version = "0.11.2"
384338
source = "registry+https://github.com/rust-lang/crates.io-index"
385-
checksum = "4ee5a98e506fb7231a304c3a1bd7c132a55016cf65001e0282480665870dfcb9"
339+
checksum = "422045212ea98508ae3d28025bc5aaa2bd4a9cdaecd442a08da2ee620ee9ea95"
386340

387341
[[package]]
388342
name = "thiserror"
389-
version = "1.0.23"
343+
version = "1.0.24"
390344
source = "registry+https://github.com/rust-lang/crates.io-index"
391-
checksum = "76cc616c6abf8c8928e2fdcc0dbfab37175edd8fb49a4641066ad1364fdab146"
345+
checksum = "e0f4a65597094d4483ddaed134f409b2cb7c1beccf25201a9f73c719254fa98e"
392346
dependencies = [
393347
"thiserror-impl",
394348
]
395349

396350
[[package]]
397351
name = "thiserror-impl"
398-
version = "1.0.23"
352+
version = "1.0.24"
399353
source = "registry+https://github.com/rust-lang/crates.io-index"
400-
checksum = "9be73a2caec27583d0046ef3796c3794f868a5bc813db689eed00c7631275cd1"
354+
checksum = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0"
401355
dependencies = [
402356
"proc-macro2",
403357
"quote",

compiler/rustc_codegen_cranelift/Cargo.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ crate-type = ["dylib"]
99

1010
[dependencies]
1111
# These have to be in sync with each other
12-
cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", features = ["unwind", "x86", "x64"] }
12+
cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", features = ["unwind", "x64"] }
1313
cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
1414
cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
1515
cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", optional = true }
1616
cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
1717
target-lexicon = "0.11.0"
1818
gimli = { version = "0.23.0", default-features = false, features = ["write"]}
19-
object = { version = "0.22.0", default-features = false, features = ["std", "read_core", "write", "coff", "elf", "macho", "pe"] }
19+
object = { version = "0.23.0", default-features = false, features = ["std", "read_core", "write", "coff", "elf", "macho", "pe"] }
2020

2121
ar = { git = "https://github.com/bjorn3/rust-ar.git", branch = "do_not_remove_cg_clif_ranlib" }
2222
indexmap = "1.0.2"
@@ -38,7 +38,6 @@ smallvec = "1.6.1"
3838
default = ["jit", "inline_asm"]
3939
jit = ["cranelift-jit", "libloading"]
4040
inline_asm = []
41-
oldbe = []
4241

4342
[profile.dev]
4443
# By compiling dependencies with optimizations, performing tests gets much faster.

0 commit comments

Comments
 (0)