Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 09c817e

Browse files
committed
Auto merge of rust-lang#72120 - Dylan-DPC:rollup-ca0tur2, r=Dylan-DPC
Rollup of 10 pull requests Successful merges: - rust-lang#72014 (Deprecated emoji) - rust-lang#72019 (Fix debug assertion in error code) - rust-lang#72027 (Use CDN for ci-caches on download) - rust-lang#72044 (use min_specialization for some rustc crates where it requires no changes) - rust-lang#72052 (display `ConstKind::Param`) - rust-lang#72067 (Emit a warning when optimization fuel runs out) - rust-lang#72072 (doc: minus (U+2212) instead of dash (U+002D) for negative infinity) - rust-lang#72077 (Improve E0571 wording) - rust-lang#72107 (Clean up E0579 explanation) - rust-lang#72109 (Fix clippy warnings) Failed merges: r? @ghost
2 parents 99cb9cc + dfa3677 commit 09c817e

File tree

55 files changed

+178
-125
lines changed

Some content is hidden

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

55 files changed

+178
-125
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
CI_JOB_NAME: "${{ matrix.name }}"
3535
SCCACHE_BUCKET: rust-lang-gha-caches
3636
TOOLSTATE_REPO: "https://github.com/pietroalbini/rust-toolstate"
37+
CACHE_DOMAIN: ci-caches-gha.rust-lang.org
3738
if: "github.event_name == 'pull_request'"
3839
strategy:
3940
matrix:
@@ -146,6 +147,7 @@ jobs:
146147
TOOLSTATE_PUBLISH: 1
147148
CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5
148149
ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF
150+
CACHE_DOMAIN: ci-caches-gha.rust-lang.org
149151
if: "github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'"
150152
strategy:
151153
matrix:
@@ -255,6 +257,7 @@ jobs:
255257
TOOLSTATE_PUBLISH: 1
256258
CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5
257259
ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF
260+
CACHE_DOMAIN: ci-caches-gha.rust-lang.org
258261
if: "github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
259262
strategy:
260263
matrix:
@@ -606,6 +609,7 @@ jobs:
606609
TOOLSTATE_PUBLISH: 1
607610
CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5
608611
ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF
612+
CACHE_DOMAIN: ci-caches-gha.rust-lang.org
609613
if: "github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'rust-lang-ci/rust'"
610614
steps:
611615
- name: checkout the source code

src/ci/docker/run.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ dist=$objdir/build/dist
1717

1818
source "$ci_dir/shared.sh"
1919

20+
CACHE_DOMAIN="${CACHE_DOMAIN:-ci-caches.rust-lang.org}"
21+
2022
if [ -f "$docker_dir/$image/Dockerfile" ]; then
2123
if [ "$CI" != "" ]; then
2224
hash_key=/tmp/.docker-hash-key.txt
@@ -38,9 +40,7 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
3840
cksum=$(sha512sum $hash_key | \
3941
awk '{print $1}')
4042

41-
s3url="s3://$SCCACHE_BUCKET/docker/$cksum"
42-
url="https://$SCCACHE_BUCKET.s3.amazonaws.com/docker/$cksum"
43-
upload="aws s3 cp - $s3url"
43+
url="https://$CACHE_DOMAIN/docker/$cksum"
4444

4545
echo "Attempting to download $url"
4646
rm -f /tmp/rustci_docker_cache
@@ -65,7 +65,9 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
6565
-f "$dockerfile" \
6666
"$context"
6767

68-
if [ "$upload" != "" ]; then
68+
if [ "$CI" != "" ]; then
69+
s3url="s3://$SCCACHE_BUCKET/docker/$cksum"
70+
upload="aws s3 cp - $s3url"
6971
digest=$(docker inspect rust-ci --format '{{.Id}}')
7072
echo "Built container $digest"
7173
if ! grep -q "$digest" <(echo "$loaded_images"); then

src/ci/github-actions/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ x--expand-yaml-anchors--remove:
3737
- &public-variables
3838
SCCACHE_BUCKET: rust-lang-gha-caches
3939
TOOLSTATE_REPO: https://github.com/pietroalbini/rust-toolstate
40+
CACHE_DOMAIN: ci-caches-gha.rust-lang.org
4041

4142
- &prod-variables
4243
SCCACHE_BUCKET: rust-lang-gha-caches
@@ -51,6 +52,7 @@ x--expand-yaml-anchors--remove:
5152
# (caches, artifacts...).
5253
CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5
5354
ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF
55+
CACHE_DOMAIN: ci-caches-gha.rust-lang.org
5456

5557
- &base-job
5658
env: {}

src/libcore/num/f32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ impl f32 {
367367
/// Infinity (∞).
368368
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
369369
pub const INFINITY: f32 = 1.0_f32 / 0.0_f32;
370-
/// Negative infinity (-∞).
370+
/// Negative infinity (∞).
371371
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
372372
pub const NEG_INFINITY: f32 = -1.0_f32 / 0.0_f32;
373373

src/libcore/num/f64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ impl f64 {
366366
/// Infinity (∞).
367367
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
368368
pub const INFINITY: f64 = 1.0_f64 / 0.0_f64;
369-
/// Negative infinity (-∞).
369+
/// Negative infinity (∞).
370370
#[stable(feature = "assoc_int_consts", since = "1.43.0")]
371371
pub const NEG_INFINITY: f64 = -1.0_f64 / 0.0_f64;
372372

src/librustc_ast_lowering/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#![feature(array_value_iter)]
3434
#![feature(crate_visibility_modifier)]
3535
#![feature(marker_trait_attr)]
36-
#![feature(specialization)]
36+
#![feature(specialization)] // FIXME: min_specialization does not work
3737
#![feature(or_patterns)]
3838
#![recursion_limit = "256"]
3939

src/librustc_attr/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ pub fn eval_condition(
634634
[NestedMetaItem::Literal(Lit { span, .. })
635635
| NestedMetaItem::MetaItem(MetaItem { span, .. })] => {
636636
sess.span_diagnostic
637-
.struct_span_err(*span, &*format!("expected a version literal"))
637+
.struct_span_err(*span, "expected a version literal")
638638
.emit();
639639
return false;
640640
}

src/librustc_data_structures/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#![feature(generators)]
1313
#![feature(generator_trait)]
1414
#![feature(fn_traits)]
15-
#![feature(specialization)]
15+
#![feature(min_specialization)]
1616
#![feature(optin_builtin_traits)]
1717
#![feature(nll)]
1818
#![feature(allow_internal_unstable)]

src/librustc_data_structures/tiny_list.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl<T: PartialEq> TinyList<T> {
5252
if &e.data == data {
5353
return true;
5454
}
55-
elem = e.next.as_ref().map(|e| &**e);
55+
elem = e.next.as_deref();
5656
}
5757
false
5858
}
@@ -62,7 +62,7 @@ impl<T: PartialEq> TinyList<T> {
6262
let (mut elem, mut count) = (self.head.as_ref(), 0);
6363
while let Some(ref e) = elem {
6464
count += 1;
65-
elem = e.next.as_ref().map(|e| &**e);
65+
elem = e.next.as_deref();
6666
}
6767
count
6868
}

src/librustc_error_codes/error_codes/E0571.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Example of erroneous code:
77
# fn satisfied(n: usize) -> bool { n % 23 == 0 }
88
let result = while true {
99
if satisfied(i) {
10-
break 2*i; // error: `break` with value from a `while` loop
10+
break 2 * i; // error: `break` with value from a `while` loop
1111
}
1212
i += 1;
1313
};
@@ -22,9 +22,9 @@ Make sure `break value;` statements only occur in `loop` loops:
2222
```
2323
# let mut i = 1;
2424
# fn satisfied(n: usize) -> bool { n % 23 == 0 }
25-
let result = loop { // ok!
25+
let result = loop { // This is now a "loop" loop.
2626
if satisfied(i) {
27-
break 2*i;
27+
break 2 * i; // ok!
2828
}
2929
i += 1;
3030
};

0 commit comments

Comments
 (0)