Skip to content

Commit 436b81f

Browse files
committed
Auto merge of rust-lang#93306 - ehuss:beta-backports, r=ehuss
[beta] Backports * Update cargo * rust-lang/cargo#10328 — remove --host flag * rust-lang/cargo#10325 — Fix documenting with undocumented dependencies * rust-lang#93128 — Add script to prevent point releases with same number as existing ones * rust-lang#93014 — Revert "Do not hash leading zero bytes of i64 numbers in Sip128 hasher" * rust-lang#93012 — Update pulldown-cmark version to fix markdown list issue
2 parents 92c92fb + c678458 commit 436b81f

File tree

7 files changed

+55
-37
lines changed

7 files changed

+55
-37
lines changed

.github/workflows/ci.yml

+9
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ jobs:
128128
- name: ensure backported commits are in upstream branches
129129
run: src/ci/scripts/verify-backported-commits.sh
130130
if: success() && !env.SKIP_JOB
131+
- name: ensure the stable version number is correct
132+
run: src/ci/scripts/verify-stable-version-number.sh
133+
if: success() && !env.SKIP_JOB
131134
- name: run the build
132135
run: src/ci/scripts/run-build-from-ci.sh
133136
env:
@@ -502,6 +505,9 @@ jobs:
502505
- name: ensure backported commits are in upstream branches
503506
run: src/ci/scripts/verify-backported-commits.sh
504507
if: success() && !env.SKIP_JOB
508+
- name: ensure the stable version number is correct
509+
run: src/ci/scripts/verify-stable-version-number.sh
510+
if: success() && !env.SKIP_JOB
505511
- name: run the build
506512
run: src/ci/scripts/run-build-from-ci.sh
507513
env:
@@ -612,6 +618,9 @@ jobs:
612618
- name: ensure backported commits are in upstream branches
613619
run: src/ci/scripts/verify-backported-commits.sh
614620
if: success() && !env.SKIP_JOB
621+
- name: ensure the stable version number is correct
622+
run: src/ci/scripts/verify-stable-version-number.sh
623+
if: success() && !env.SKIP_JOB
615624
- name: run the build
616625
run: src/ci/scripts/run-build-from-ci.sh
617626
env:

Cargo.lock

+7-18
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ dependencies = [
617617
"clippy_utils",
618618
"if_chain",
619619
"itertools 0.10.1",
620-
"pulldown-cmark 0.9.0",
620+
"pulldown-cmark",
621621
"quine-mc_cluskey",
622622
"regex-syntax",
623623
"rustc-semver",
@@ -2154,9 +2154,9 @@ dependencies = [
21542154

21552155
[[package]]
21562156
name = "mdbook"
2157-
version = "0.4.14"
2157+
version = "0.4.15"
21582158
source = "registry+https://github.com/rust-lang/crates.io-index"
2159-
checksum = "f6e77253c46a90eb7e96b2807201dab941a4db5ea05eca5aaaf7027395f352b3"
2159+
checksum = "241f10687eb3b4e0634b3b4e423f97c5f1efbd69dc9522e24a8b94583eeec3c6"
21602160
dependencies = [
21612161
"ammonia",
21622162
"anyhow",
@@ -2169,7 +2169,7 @@ dependencies = [
21692169
"log",
21702170
"memchr",
21712171
"opener",
2172-
"pulldown-cmark 0.8.0",
2172+
"pulldown-cmark",
21732173
"regex",
21742174
"serde",
21752175
"serde_derive",
@@ -2808,27 +2808,16 @@ dependencies = [
28082808

28092809
[[package]]
28102810
name = "pulldown-cmark"
2811-
version = "0.8.0"
2811+
version = "0.9.1"
28122812
source = "registry+https://github.com/rust-lang/crates.io-index"
2813-
checksum = "ffade02495f22453cd593159ea2f59827aae7f53fa8323f756799b670881dcf8"
2813+
checksum = "34f197a544b0c9ab3ae46c359a7ec9cbbb5c7bf97054266fecb7ead794a181d6"
28142814
dependencies = [
28152815
"bitflags",
28162816
"getopts",
28172817
"memchr",
28182818
"unicase",
28192819
]
28202820

2821-
[[package]]
2822-
name = "pulldown-cmark"
2823-
version = "0.9.0"
2824-
source = "registry+https://github.com/rust-lang/crates.io-index"
2825-
checksum = "acd16514d1af5f7a71f909a44ef253cdb712a376d7ebc8ae4a471a9be9743548"
2826-
dependencies = [
2827-
"bitflags",
2828-
"memchr",
2829-
"unicase",
2830-
]
2831-
28322821
[[package]]
28332822
name = "punycode"
28342823
version = "0.4.1"
@@ -4634,7 +4623,7 @@ dependencies = [
46344623
"expect-test",
46354624
"itertools 0.9.0",
46364625
"minifier",
4637-
"pulldown-cmark 0.9.0",
4626+
"pulldown-cmark",
46384627
"rayon",
46394628
"regex",
46404629
"rustdoc-json-types",

compiler/rustc_data_structures/src/sip128.rs

+2-16
Original file line numberDiff line numberDiff line change
@@ -409,20 +409,6 @@ impl SipHasher128 {
409409
}
410410
}
411411

412-
macro_rules! dispatch_value {
413-
($target: expr, $value:expr) => {
414-
let value = $value;
415-
#[allow(unreachable_patterns)]
416-
#[allow(overflowing_literals)]
417-
match value {
418-
0..=0xFF => $target.short_write(value as u8),
419-
0x100..=0xFFFF => $target.short_write(value as u16),
420-
0x10000..=0xFFFFFFFF => $target.short_write(value as u32),
421-
_ => $target.short_write(value as u64),
422-
}
423-
};
424-
}
425-
426412
impl Hasher for SipHasher128 {
427413
#[inline]
428414
fn write_u8(&mut self, i: u8) {
@@ -436,7 +422,7 @@ impl Hasher for SipHasher128 {
436422

437423
#[inline]
438424
fn write_u32(&mut self, i: u32) {
439-
dispatch_value!(self, i);
425+
self.short_write(i);
440426
}
441427

442428
#[inline]
@@ -466,7 +452,7 @@ impl Hasher for SipHasher128 {
466452

467453
#[inline]
468454
fn write_i64(&mut self, i: i64) {
469-
dispatch_value!(self, i as u64);
455+
self.short_write(i as u64);
470456
}
471457

472458
#[inline]

src/ci/github-actions/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ x--expand-yaml-anchors--remove:
206206
run: src/ci/scripts/verify-backported-commits.sh
207207
<<: *step
208208

209+
- name: ensure the stable version number is correct
210+
run: src/ci/scripts/verify-stable-version-number.sh
211+
<<: *step
212+
209213
- name: run the build
210214
run: src/ci/scripts/run-build-from-ci.sh
211215
env:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
# On the stable channel, check whether we're trying to build artifacts with the
3+
# same version number of a release that's already been published, and fail the
4+
# build if that's the case.
5+
#
6+
# It's a mistake whenever that happens: the release process won't start if it
7+
# detects a duplicate version number, and the artifacts would have to be
8+
# rebuilt anyway.
9+
10+
set -euo pipefail
11+
IFS=$'\n\t'
12+
13+
if [[ "$(cat src/ci/channel)" != "stable" ]]; then
14+
echo "This script only works on the stable channel. Skipping the check."
15+
exit 0
16+
fi
17+
18+
version="$(cat src/version)"
19+
url="https://static.rust-lang.org/dist/channel-rust-${version}.toml"
20+
21+
if curl --silent --fail "${url}" >/dev/null; then
22+
echo "The version number ${version} matches an existing release."
23+
echo
24+
echo "If you're trying to prepare a point release, remember to change the"
25+
echo "version number in the src/version file."
26+
exit 1
27+
else
28+
echo "The version number ${version} does not match any released version!"
29+
exit 0
30+
fi

src/test/debuginfo/function-names.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
// Const generic parameter
3838
// gdb-command:info functions -q function_names::const_generic_fn.*
3939
// gdb-check:[...]static fn function_names::const_generic_fn_bool<false>();
40-
// gdb-check:[...]static fn function_names::const_generic_fn_non_int<{CONST#3fcd7c34c1555be6}>();
40+
// gdb-check:[...]static fn function_names::const_generic_fn_non_int<{CONST#fe3cfa0214ac55c7}>();
4141
// gdb-check:[...]static fn function_names::const_generic_fn_signed_int<-7>();
4242
// gdb-check:[...]static fn function_names::const_generic_fn_unsigned_int<14>();
4343

@@ -76,7 +76,7 @@
7676
// Const generic parameter
7777
// cdb-command:x a!function_names::const_generic_fn*
7878
// cdb-check:[...] a!function_names::const_generic_fn_bool<false> (void)
79-
// cdb-check:[...] a!function_names::const_generic_fn_non_int<CONST$3fcd7c34c1555be6> (void)
79+
// cdb-check:[...] a!function_names::const_generic_fn_non_int<CONST$fe3cfa0214ac55c7> (void)
8080
// cdb-check:[...] a!function_names::const_generic_fn_unsigned_int<14> (void)
8181
// cdb-check:[...] a!function_names::const_generic_fn_signed_int<-7> (void)
8282

0 commit comments

Comments
 (0)