Skip to content

Rustc pull update #2512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 47 commits into from
Jul 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
4a8b8af
Merge pull request #20109 from Hmikihiro/generate_new_tuple_field
ShoyuVanilla Jul 9, 2025
c756d9a
Merge pull request #20054 from Young-Flash/folding_all
ShoyuVanilla Jul 10, 2025
0aa03e8
Merge from rust-lang/rust
lnicola Jul 15, 2025
155b939
Merge pull request #20243 from lnicola/sync-from-rust
lnicola Jul 15, 2025
c2a30ad
Merge pull request #20178 from ShoyuVanilla/cargo-config-cleanup
ShoyuVanilla Jul 15, 2025
387e047
Auto merge of #140399 - tiif:unstable_impl, r=lcnr,BoxyUwU
bors Jul 17, 2025
4d2cfff
Auto merge of #142903 - cjgillot:local-def-path-hash, r=compiler-errors
bors Jul 17, 2025
37dd43b
Merge pull request #20233 from shashforge/lsp-minimal-example-clean
ShoyuVanilla Jul 17, 2025
73bf010
parse `const trait Trait`
fee1-dead Jul 13, 2025
d524f88
Auto merge of #143879 - fee1-dead-contrib:push-lrlpoouyqqry, r=fmease
bors Jul 17, 2025
c8b767e
Auto merge of #141762 - compiler-errors:witnesser, r=lcnr
bors Jul 17, 2025
4aa10ca
Merge pull request #19783 from A4-Tacks/generate-single-field-from
ShoyuVanilla Jul 18, 2025
4dbedb8
Auto merge of #143545 - compiler-errors:coroutine-obl, r=oli-obk
bors Jul 18, 2025
f1c74f7
Rollup merge of #142300 - jieyouxu:exp-partial-revert-141576, r=Waffl…
matthiaskrgr Jul 18, 2025
c8310a2
Rollup merge of #143271 - cjgillot:gvn-types, r=oli-obk
matthiaskrgr Jul 18, 2025
dc7f08c
Rollup merge of #143293 - folkertdev:naked-function-kcfi, r=compiler-…
matthiaskrgr Jul 18, 2025
a2be18a
Rollup merge of #143719 - xizheyin:142812-1, r=jieyouxu
matthiaskrgr Jul 18, 2025
c1a614b
Rollup merge of #143846 - usamoi:gc, r=bjorn3
matthiaskrgr Jul 18, 2025
9b62dde
Rollup merge of #143891 - scrabsha:push-xxtttopqoprr, r=jdonszelmann
matthiaskrgr Jul 18, 2025
93afe7f
Rollup merge of #143967 - oli-obk:const-option-methods, r=fee1-dead
matthiaskrgr Jul 18, 2025
3dfae3a
Rollup merge of #144008 - anatawa12:fix-double-negations, r=compiler-…
matthiaskrgr Jul 18, 2025
9482fab
Rollup merge of #144010 - xdoardo:bootstrap-warning-optimize-false, r…
matthiaskrgr Jul 18, 2025
f7d16bf
Rollup merge of #144049 - tshepang:rust-push, r=jieyouxu
matthiaskrgr Jul 18, 2025
7711f56
Rollup merge of #144056 - Kobzol:gcc-build-src, r=nikic
matthiaskrgr Jul 18, 2025
a95bae7
Auto merge of #144109 - matthiaskrgr:rollup-mz0mrww, r=matthiaskrgr
bors Jul 18, 2025
156098a
Auto merge of #144114 - lnicola:sync-from-ra, r=lnicola
bors Jul 18, 2025
de18939
Auto merge of #143845 - cjgillot:stability-query, r=jieyouxu
bors Jul 18, 2025
98dafe7
Auto merge of #143784 - scottmcm:enums-again-new-ex2, r=dianqk
bors Jul 19, 2025
78450eb
Auto merge of #143641 - Kobzol:tool-target, r=jieyouxu
bors Jul 19, 2025
73a513c
tests: Require `run-fail` ui tests to have an exit code (`SIGABRT` no…
Enselic Jun 25, 2025
348460a
Auto merge of #143002 - Enselic:tests-ui-run-fail-exit-vs-signal, r=p…
bors Jul 20, 2025
b26eeb1
Auto merge of #144068 - dianqk:update-llvm, r=cuviper
bors Jul 20, 2025
6c4ac45
Add new `ignore-backends` tests annotations
GuillaumeGomez Jul 18, 2025
22fa0c8
Add new `needs-backends` tests annotations
GuillaumeGomez Jul 18, 2025
bd660dc
Rollup merge of #143282 - nxsaken:strict_sub_signed, r=jhpratt
GuillaumeGomez Jul 20, 2025
d5684f4
Rollup merge of #143423 - hkBst:clippy-fix-1, r=workingjubilee
GuillaumeGomez Jul 20, 2025
2deff41
Rollup merge of #143720 - scottmcm:rvalue-always-operand, r=lcnr
GuillaumeGomez Jul 20, 2025
5a69a1c
Rollup merge of #144011 - Zalathar:check-compiler-no-llvm, r=Kobzol
GuillaumeGomez Jul 20, 2025
8035560
Rollup merge of #144112 - Enselic:no-debuginfo-in-codegen, r=Mark-Sim…
GuillaumeGomez Jul 20, 2025
3103efb
Rollup merge of #144125 - GuillaumeGomez:new-annotations, r=Kobzol
GuillaumeGomez Jul 20, 2025
bee900e
Rollup merge of #144143 - Gelbpunkt:target-features-crt-static, r=Ral…
GuillaumeGomez Jul 20, 2025
a57121a
Rollup merge of #144150 - Gelbpunkt:globalmerge, r=Mark-Simulacrum
GuillaumeGomez Jul 20, 2025
933b567
Rollup merge of #144190 - scottmcm:spanned-errors-in-mir-validation, …
GuillaumeGomez Jul 20, 2025
9dda25f
Auto merge of #144219 - GuillaumeGomez:rollup-ha29sql, r=GuillaumeGomez
bors Jul 20, 2025
599ee17
Auto merge of #143861 - rust-lang:cargo_update, r=clubby789
bors Jul 20, 2025
cf395fe
Prepare for merging from rust-lang/rust
invalid-email-address Jul 21, 2025
e5fb217
Merge ref '460259d14de0' from rust-lang/rust
invalid-email-address Jul 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fd2eb391d032181459773f3498c17b198513e0d0
460259d14de0274b97b8801e08cb2fe5f16fdac5
9 changes: 3 additions & 6 deletions src/effects.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ in [`wfcheck::check_impl`].
Here's an example:

```rust
#[const_trait]
trait Bar {}
#[const_trait]
trait Foo: ~const Bar {}
const trait Bar {}
const trait Foo: ~const Bar {}
// `const_conditions` contains `HostEffect(Self: Bar, maybe)`

impl const Bar for () {}
Expand All @@ -85,8 +83,7 @@ predicates of the trait method, and we attempt to prove the predicates of the
impl method. We do the same for `const_conditions`:

```rust
#[const_trait]
trait Foo {
const trait Foo {
fn hi<T: ~const Default>();
}

Expand Down
8 changes: 6 additions & 2 deletions src/tests/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ expectations](ui.md#controlling-passfail-expectations).
| `check-fail` | Building (no codegen) should fail | `ui`, `crashes` | N/A |
| `build-pass` | Building should pass | `ui`, `crashes`, `codegen`, `incremental` | N/A |
| `build-fail` | Building should fail | `ui`, `crashes` | N/A |
| `run-pass` | Running the test binary should pass | `ui`, `crashes`, `incremental` | N/A |
| `run-fail` | Running the test binary should fail | `ui`, `crashes` | N/A |
| `run-pass` | Program must exit with code `0` | `ui`, `crashes`, `incremental` | N/A |
| `run-fail` | Program must exit with code `1..=127` | `ui`, `crashes` | N/A |
| `run-crash` | Program must crash | `ui` | N/A |
| `run-fail-or-crash` | Program must `run-fail` or `run-crash` | `ui` | N/A |
| `ignore-pass` | Ignore `--pass` flag | `ui`, `crashes`, `codegen`, `incremental` | N/A |
| `dont-check-failure-status` | Don't check exact failure status (i.e. `1`) | `ui`, `incremental` | N/A |
| `failure-status` | Check | `ui`, `crashes` | Any `u16` |
Expand Down Expand Up @@ -203,6 +205,8 @@ settings:
on `wasm32-unknown-unknown` target because the target does not support the
`proc-macro` crate type.
- `needs-target-std` — ignores if target platform does not have std support.
- `ignore-backends` — ignores the listed backends, separated by whitespace characters.
- `needs-backends` — only runs the test if current codegen backend is listed.

The following directives will check LLVM support:

Expand Down
20 changes: 15 additions & 5 deletions src/tests/ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ even run the resulting program. Just add one of the following
- `//@ build-pass` — compilation and linking should succeed but do
not run the resulting binary.
- `//@ run-pass` — compilation should succeed and running the resulting
binary should also succeed.
binary should make it exit with code 0 which indicates success.
- Fail directives:
- `//@ check-fail` — compilation should fail (the codegen phase is skipped).
This is the default for UI tests.
Expand All @@ -457,10 +457,20 @@ even run the resulting program. Just add one of the following
- First time is to ensure that the compile succeeds without the codegen phase
- Second time is to ensure that the full compile fails
- `//@ run-fail` — compilation should succeed, but running the resulting
binary should fail.

For `run-pass` and `run-fail` tests, by default the output of the program itself
is not checked.
binary should make it exit with a code in the range `1..=127` which
indicates regular failure. On targets without unwind support, crashes
are also accepted.
- `//@ run-crash` — compilation should succeed, but running the resulting
binary should fail with a crash. Crashing is defined as "not exiting with
a code in the range `0..=127`". Example on Linux: Termination by `SIGABRT`
or `SIGSEGV`. Example on Windows: Exiting with the code for
`STATUS_ILLEGAL_INSTRUCTION` (`0xC000001D`).
- `//@ run-fail-or-crash` — compilation should succeed, but running the
resulting binary should either `run-fail` or `run-crash`. Useful if a test
crashes on some targets but just fails on others.

For `run-pass`. `run-fail`, `run-crash` and `run-fail-or-crash` tests, by
default the output of the program itself is not checked.

If you want to check the output of running the program, include the
`check-run-results` directive. This will check for a `.run.stderr` and
Expand Down