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

Commit 94a9e44

Browse files
authored
Merge pull request rust-lang#4281 from rust-lang/rustup-2025-04-20
Automatic Rustup
2 parents dc58d1e + 669d511 commit 94a9e44

File tree

118 files changed

+1589
-1658
lines changed

Some content is hidden

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

118 files changed

+1589
-1658
lines changed

compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,21 +2959,27 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
29592959
}
29602960
}
29612961

2962-
let mut err = self.path_does_not_live_long_enough(borrow_span, &format!("`{name}`"));
2962+
let name = if borrow_span.in_external_macro(self.infcx.tcx.sess.source_map()) {
2963+
// Don't name local variables in external macros.
2964+
"value".to_string()
2965+
} else {
2966+
format!("`{name}`")
2967+
};
2968+
2969+
let mut err = self.path_does_not_live_long_enough(borrow_span, &name);
29632970

29642971
if let Some(annotation) = self.annotate_argument_and_return_for_borrow(borrow) {
29652972
let region_name = annotation.emit(self, &mut err);
29662973

29672974
err.span_label(
29682975
borrow_span,
2969-
format!("`{name}` would have to be valid for `{region_name}`..."),
2976+
format!("{name} would have to be valid for `{region_name}`..."),
29702977
);
29712978

29722979
err.span_label(
29732980
drop_span,
29742981
format!(
2975-
"...but `{}` will be dropped here, when the {} returns",
2976-
name,
2982+
"...but {name} will be dropped here, when the {} returns",
29772983
self.infcx
29782984
.tcx
29792985
.opt_item_name(self.mir_def_id().to_def_id())
@@ -3011,7 +3017,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
30113017
}
30123018
} else {
30133019
err.span_label(borrow_span, "borrowed value does not live long enough");
3014-
err.span_label(drop_span, format!("`{name}` dropped here while still borrowed"));
3020+
err.span_label(drop_span, format!("{name} dropped here while still borrowed"));
30153021

30163022
borrow_spans.args_subdiag(&mut err, |args_span| {
30173023
crate::session_diagnostics::CaptureArgLabel::Capture {

compiler/rustc_borrowck/src/diagnostics/explain_borrow.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ impl<'tcx> BorrowExplanation<'tcx> {
9595
&& let hir::def::Res::Local(hir_id) = p.res
9696
&& let hir::Node::Pat(pat) = tcx.hir_node(hir_id)
9797
{
98-
err.span_label(pat.span, format!("binding `{ident}` declared here"));
98+
if !ident.span.in_external_macro(tcx.sess.source_map()) {
99+
err.span_label(pat.span, format!("binding `{ident}` declared here"));
100+
}
99101
}
100102
}
101103
}

compiler/rustc_codegen_gcc/.github/workflows/ci.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: CI
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches:
6+
- master
7+
pull_request:
68

79
permissions:
810
contents: read
@@ -121,3 +123,22 @@ jobs:
121123
run: |
122124
cd build_system
123125
cargo test
126+
127+
# Summary job for the merge queue.
128+
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
129+
success:
130+
needs: [build, duplicates, build_system]
131+
# We need to ensure this job does *not* get skipped if its dependencies fail,
132+
# because a skipped job is considered a success by GitHub. So we have to
133+
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
134+
# when the workflow is canceled manually.
135+
if: ${{ !cancelled() }}
136+
runs-on: ubuntu-latest
137+
steps:
138+
# Manually check the status of all dependencies. `if: failure()` does not work.
139+
- name: Conclusion
140+
run: |
141+
# Print the dependent jobs to see them in the CI log
142+
jq -C <<< '${{ toJson(needs) }}'
143+
# Check if all jobs that we depend on (in the needs array) were successful.
144+
jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'

compiler/rustc_codegen_gcc/.github/workflows/failures.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
name: Failures
33

44
on:
5-
- pull_request
5+
push:
6+
branches:
7+
- master
8+
pull_request:
69

710
permissions:
811
contents: read
@@ -108,3 +111,22 @@ jobs:
108111
echo "Error: 'the compiler unexpectedly panicked' found in output logs. CI Error!!"
109112
exit 1
110113
fi
114+
115+
# Summary job for the merge queue.
116+
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
117+
success_failures:
118+
needs: [build]
119+
# We need to ensure this job does *not* get skipped if its dependencies fail,
120+
# because a skipped job is considered a success by GitHub. So we have to
121+
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
122+
# when the workflow is canceled manually.
123+
if: ${{ !cancelled() }}
124+
runs-on: ubuntu-latest
125+
steps:
126+
# Manually check the status of all dependencies. `if: failure()` does not work.
127+
- name: Conclusion
128+
run: |
129+
# Print the dependent jobs to see them in the CI log
130+
jq -C <<< '${{ toJson(needs) }}'
131+
# Check if all jobs that we depend on (in the needs array) were successful.
132+
jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'

compiler/rustc_codegen_gcc/.github/workflows/gcc12.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: CI libgccjit 12
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches:
6+
- master
7+
pull_request:
68

79
permissions:
810
contents: read
@@ -85,3 +87,22 @@ jobs:
8587
#- name: Run tests
8688
#run: |
8789
#./y.sh test --release --clean --build-sysroot ${{ matrix.commands }} --no-default-features
90+
91+
# Summary job for the merge queue.
92+
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
93+
success_gcc12:
94+
needs: [build]
95+
# We need to ensure this job does *not* get skipped if its dependencies fail,
96+
# because a skipped job is considered a success by GitHub. So we have to
97+
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
98+
# when the workflow is canceled manually.
99+
if: ${{ !cancelled() }}
100+
runs-on: ubuntu-latest
101+
steps:
102+
# Manually check the status of all dependencies. `if: failure()` does not work.
103+
- name: Conclusion
104+
run: |
105+
# Print the dependent jobs to see them in the CI log
106+
jq -C <<< '${{ toJson(needs) }}'
107+
# Check if all jobs that we depend on (in the needs array) were successful.
108+
jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'

compiler/rustc_codegen_gcc/.github/workflows/m68k.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
name: m68k CI
44

55
on:
6-
- push
7-
- pull_request
6+
push:
7+
branches:
8+
- master
9+
pull_request:
810

911
permissions:
1012
contents: read
@@ -105,3 +107,22 @@ jobs:
105107
- name: Run tests
106108
run: |
107109
./y.sh test --release --clean --build-sysroot --sysroot-features compiler_builtins/no-f16-f128 ${{ matrix.commands }}
110+
111+
# Summary job for the merge queue.
112+
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
113+
success_m68k:
114+
needs: [build]
115+
# We need to ensure this job does *not* get skipped if its dependencies fail,
116+
# because a skipped job is considered a success by GitHub. So we have to
117+
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
118+
# when the workflow is canceled manually.
119+
if: ${{ !cancelled() }}
120+
runs-on: ubuntu-latest
121+
steps:
122+
# Manually check the status of all dependencies. `if: failure()` does not work.
123+
- name: Conclusion
124+
run: |
125+
# Print the dependent jobs to see them in the CI log
126+
jq -C <<< '${{ toJson(needs) }}'
127+
# Check if all jobs that we depend on (in the needs array) were successful.
128+
jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'

compiler/rustc_codegen_gcc/.github/workflows/release.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: CI with sysroot compiled in release mode
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches:
6+
- master
7+
pull_request:
68

79
permissions:
810
contents: read
@@ -82,3 +84,22 @@ jobs:
8284
echo "Test is done with LTO enabled, hence inlining should occur across crates"
8385
exit 1
8486
fi
87+
88+
# Summary job for the merge queue.
89+
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
90+
success_release:
91+
needs: [build]
92+
# We need to ensure this job does *not* get skipped if its dependencies fail,
93+
# because a skipped job is considered a success by GitHub. So we have to
94+
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
95+
# when the workflow is canceled manually.
96+
if: ${{ !cancelled() }}
97+
runs-on: ubuntu-latest
98+
steps:
99+
# Manually check the status of all dependencies. `if: failure()` does not work.
100+
- name: Conclusion
101+
run: |
102+
# Print the dependent jobs to see them in the CI log
103+
jq -C <<< '${{ toJson(needs) }}'
104+
# Check if all jobs that we depend on (in the needs array) were successful.
105+
jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'

compiler/rustc_codegen_gcc/.github/workflows/stdarch.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: stdarch tests with sysroot compiled in release mode
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches:
6+
- master
7+
pull_request:
68

79
permissions:
810
contents: read
@@ -102,3 +104,22 @@ jobs:
102104
# TODO: remove --skip test_mm512_stream_ps when stdarch is updated in rustc.
103105
# TODO: remove --skip test_tile_ when it's implemented.
104106
STDARCH_TEST_EVERYTHING=1 CHANNEL=release CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="${{ matrix.cargo_runner }}" TARGET=x86_64-unknown-linux-gnu CG_RUSTFLAGS="-Ainternal_features --cfg stdarch_intel_sde" ./y.sh cargo test --manifest-path build/build_sysroot/sysroot_src/library/stdarch/Cargo.toml -- --skip rtm --skip tbm --skip sse4a --skip test_mm512_stream_ps --skip test_tile_
107+
108+
# Summary job for the merge queue.
109+
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
110+
success_stdarch:
111+
needs: [build]
112+
# We need to ensure this job does *not* get skipped if its dependencies fail,
113+
# because a skipped job is considered a success by GitHub. So we have to
114+
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
115+
# when the workflow is canceled manually.
116+
if: ${{ !cancelled() }}
117+
runs-on: ubuntu-latest
118+
steps:
119+
# Manually check the status of all dependencies. `if: failure()` does not work.
120+
- name: Conclusion
121+
run: |
122+
# Print the dependent jobs to see them in the CI log
123+
jq -C <<< '${{ toJson(needs) }}'
124+
# Check if all jobs that we depend on (in the needs array) were successful.
125+
jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'

compiler/rustc_codegen_gcc/Cargo.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@ dependencies = [
5656

5757
[[package]]
5858
name = "gccjit"
59-
version = "2.4.0"
59+
version = "2.5.0"
6060
source = "registry+https://github.com/rust-lang/crates.io-index"
61-
checksum = "72fd91f4adbf02b53cfc73c97bc33c5f253009043f30c56a5ec08dd5c8094dc8"
61+
checksum = "2895ddec764de7ac76fe6c056050c4801a80109c066f177a00a9cc8dee02b29b"
6262
dependencies = [
6363
"gccjit_sys",
6464
]
6565

6666
[[package]]
6767
name = "gccjit_sys"
68-
version = "0.5.0"
68+
version = "0.6.0"
6969
source = "registry+https://github.com/rust-lang/crates.io-index"
70-
checksum = "0fb7b8f48a75e2cfe78c3d9a980b32771c34ffd12d196021ab3f98c49fbd2f0d"
70+
checksum = "ac133db68db8a6a8b2c51ef4b18d8ea16682d5814c4641272fe37bbbc223d5f3"
7171
dependencies = [
7272
"libc",
7373
]

compiler/rustc_codegen_gcc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ master = ["gccjit/master"]
2222
default = ["master"]
2323

2424
[dependencies]
25-
gccjit = "2.4"
25+
gccjit = "2.5"
2626
#gccjit = { git = "https://github.com/rust-lang/gccjit.rs" }
2727

2828
# Local copy.

0 commit comments

Comments
 (0)