Skip to content

Commit 73c8bfa

Browse files
authored
Merge pull request #2604 from rust-lang/rustc-pull
Rustc pull update
2 parents bd97577 + cbee1ab commit 73c8bfa

File tree

1,659 files changed

+29275
-13541
lines changed

Some content is hidden

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

1,659 files changed

+29275
-13541
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ bootstrapping, the compiler architecture, source code representation, and more.
3131

3232
## [Getting help](https://rustc-dev-guide.rust-lang.org/getting-started.html#asking-questions)
3333

34-
There are many ways you can get help when you're stuck. Rust has many platforms for this:
35-
[internals], [rust-zulip], and [rust-discord]. It is recommended to ask for help on
34+
There are many ways you can get help when you're stuck. Rust has two platforms for this:
35+
[internals] and [rust-zulip]. It is recommended to ask for help on
3636
the [rust-zulip], but any of these platforms are great ways to seek help and even
3737
find a mentor! You can learn more about asking questions and getting help in the
3838
[Asking Questions](https://rustc-dev-guide.rust-lang.org/getting-started.html#asking-questions) chapter of the [rustc-dev-guide].
@@ -47,5 +47,4 @@ refer to [this section][contributing-bug-reports] and [open an issue][issue temp
4747
[contributing-bug-reports]: https://rustc-dev-guide.rust-lang.org/contributing.html#bug-reports
4848
[issue template]: https://github.com/rust-lang/rust/issues/new/choose
4949
[internals]: https://internals.rust-lang.org
50-
[rust-discord]: http://discord.gg/rust-lang
5150
[rust-zulip]: https://rust-lang.zulipchat.com

Cargo.lock

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ dependencies = [
128128

129129
[[package]]
130130
name = "anstyle-svg"
131-
version = "0.1.10"
131+
version = "0.1.11"
132132
source = "registry+https://github.com/rust-lang/crates.io-index"
133-
checksum = "dc03a770ef506fe1396c0e476120ac0e6523cf14b74218dd5f18cd6833326fa9"
133+
checksum = "26b9ec8c976eada1b0f9747a3d7cc4eae3bef10613e443746e7487f26c872fde"
134134
dependencies = [
135135
"anstyle",
136136
"anstyle-lossy",
@@ -334,8 +334,10 @@ dependencies = [
334334
"anyhow",
335335
"build_helper",
336336
"curl",
337+
"hex",
337338
"indexmap",
338339
"serde",
340+
"sha2",
339341
"toml 0.8.23",
340342
]
341343

@@ -1332,6 +1334,12 @@ dependencies = [
13321334
"windows-sys 0.59.0",
13331335
]
13341336

1337+
[[package]]
1338+
name = "find-msvc-tools"
1339+
version = "0.1.2"
1340+
source = "registry+https://github.com/rust-lang/crates.io-index"
1341+
checksum = "1ced73b1dacfc750a6db6c0a0c3a3853c8b41997e2e2c563dc90804ae6867959"
1342+
13351343
[[package]]
13361344
name = "flate2"
13371345
version = "1.1.2"
@@ -3556,7 +3564,7 @@ dependencies = [
35563564
"ar_archive_writer",
35573565
"bitflags",
35583566
"bstr",
3559-
"cc",
3567+
"find-msvc-tools",
35603568
"itertools",
35613569
"libc",
35623570
"object 0.37.3",
@@ -4760,7 +4768,7 @@ dependencies = [
47604768
name = "rustc_windows_rc"
47614769
version = "0.0.0"
47624770
dependencies = [
4763-
"cc",
4771+
"find-msvc-tools",
47644772
]
47654773

47664774
[[package]]
@@ -5233,9 +5241,9 @@ dependencies = [
52335241

52345242
[[package]]
52355243
name = "stringdex"
5236-
version = "0.0.1-alpha9"
5244+
version = "0.0.1-alpha10"
52375245
source = "registry+https://github.com/rust-lang/crates.io-index"
5238-
checksum = "7081029913fd7d591c0112182aba8c98ae886b4f12edb208130496cd17dc3c15"
5246+
checksum = "0fa846a7d509d1828a4f90962dc09810e161abcada7fc6a921e92c168d0811d7"
52395247
dependencies = [
52405248
"stacker",
52415249
]

bootstrap.example.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,6 @@
476476
# when the stage 0 compiler is actually built from in-tree sources.
477477
#build.compiletest-allow-stage0 = false
478478

479-
# Whether to use the precompiled stage0 libtest with compiletest.
480-
#build.compiletest-use-stage0-libtest = true
481-
482479
# Default value for the `--extra-checks` flag of tidy.
483480
#
484481
# See `./x test tidy --help` for details.
@@ -768,16 +765,15 @@
768765
# make this default to false.
769766
#rust.lld = false in all cases, except on `x86_64-unknown-linux-gnu` as described above, where it is true
770767

771-
# Indicates whether LLD will be used to link Rust crates during bootstrap on
772-
# supported platforms.
768+
# Indicates if we should override the linker used to link Rust crates during bootstrap to be LLD.
773769
# If set to `true` or `"external"`, a global `lld` binary that has to be in $PATH
774770
# will be used.
775771
# If set to `"self-contained"`, rust-lld from the snapshot compiler will be used.
776772
#
777773
# On MSVC, LLD will not be used if we're cross linking.
778774
#
779775
# Explicitly setting the linker for a target will override this option when targeting MSVC.
780-
#rust.use-lld = false
776+
#rust.bootstrap-override-lld = false
781777

782778
# Indicates whether some LLVM tools, like llvm-objdump, will be made available in the
783779
# sysroot.
@@ -950,7 +946,7 @@
950946
# Linker to be used to bootstrap Rust code. Note that the
951947
# default value is platform specific, and if not specified it may also depend on
952948
# what platform is crossing to what platform.
953-
# Setting this will override the `use-lld` option for Rust code when targeting MSVC.
949+
# Setting this will override the `bootstrap-override-lld` option for Rust code when targeting MSVC.
954950
#linker = "cc" (path)
955951

956952
# Should rustc and the standard library be built with split debuginfo? Default

compiler/rustc_abi/src/callconv/reg.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,22 @@ impl Reg {
4242
let dl = cx.data_layout();
4343
match self.kind {
4444
RegKind::Integer => match self.size.bits() {
45-
1 => dl.i1_align.abi,
46-
2..=8 => dl.i8_align.abi,
47-
9..=16 => dl.i16_align.abi,
48-
17..=32 => dl.i32_align.abi,
49-
33..=64 => dl.i64_align.abi,
50-
65..=128 => dl.i128_align.abi,
45+
1 => dl.i1_align,
46+
2..=8 => dl.i8_align,
47+
9..=16 => dl.i16_align,
48+
17..=32 => dl.i32_align,
49+
33..=64 => dl.i64_align,
50+
65..=128 => dl.i128_align,
5151
_ => panic!("unsupported integer: {self:?}"),
5252
},
5353
RegKind::Float => match self.size.bits() {
54-
16 => dl.f16_align.abi,
55-
32 => dl.f32_align.abi,
56-
64 => dl.f64_align.abi,
57-
128 => dl.f128_align.abi,
54+
16 => dl.f16_align,
55+
32 => dl.f32_align,
56+
64 => dl.f64_align,
57+
128 => dl.f128_align,
5858
_ => panic!("unsupported float: {self:?}"),
5959
},
60-
RegKind::Vector => dl.llvmlike_vector_align(self.size).abi,
60+
RegKind::Vector => dl.llvmlike_vector_align(self.size),
6161
}
6262
}
6363
}

0 commit comments

Comments
 (0)