Skip to content

Rustc pull update #2518

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 31 commits into from
Jul 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
53023ae
Merge ref '040e2f8b9ff2' from rust-lang/rust
Kobzol Jul 8, 2025
ad9210d
Merge pull request #1853 from Kobzol/pull-fixed
Amanieu Jul 8, 2025
dd0b3f4
Merge pull request #1857 from folkertdev/arm-dup
sayantn Jul 10, 2025
cded49a
Merge pull request #1858 from folkertdev/aarch-comparison-operators
sayantn Jul 11, 2025
ae75f4e
Merge pull request #1852 from folkertdev/optimize-intrinsic-test
Amanieu Jul 14, 2025
c1e7716
Merge pull request #1837 from heiher/loong32
Amanieu Jul 14, 2025
0dae8e5
Merge ref '82310651b93a' from rust-lang/rust
invalid-email-address Jul 18, 2025
196e4f1
Auto merge of #144154 - tgross35:update-builtins, r=tgross35
bors Jul 21, 2025
da7ef35
Rollup merge of #142097 - ZuseZ4:offload-host1, r=oli-obk
jieyouxu Jul 21, 2025
f2d2467
Rollup merge of #143430 - cjgillot:extra-lifetime-swap, r=oli-obk
jieyouxu Jul 21, 2025
7586bd2
Rollup merge of #143768 - Randl:const-try, r=oli-obk
jieyouxu Jul 21, 2025
8961e5a
Rollup merge of #143816 - Kobzol:compiletest-check-macro, r=jieyouxu
jieyouxu Jul 21, 2025
c162ce1
Rollup merge of #143985 - makai410:rp-rename, r=oli-obk
jieyouxu Jul 21, 2025
8e40c73
Rollup merge of #144027 - RalfJung:clippy, r=Mark-Simulacrum
jieyouxu Jul 21, 2025
fd5d967
Rollup merge of #144080 - jieyouxu:realign, r=BoxyUwU
jieyouxu Jul 21, 2025
c71266f
Rollup merge of #144176 - Kobzol:bors-labels-blocking, r=oli-obk
jieyouxu Jul 21, 2025
4ec880d
Rollup merge of #144212 - bjorn3:remove_unique_lang_item, r=oli-obk
jieyouxu Jul 21, 2025
f8b4b20
Rollup merge of #144251 - tshepang:rdg-sync, r=jieyouxu
jieyouxu Jul 21, 2025
3372cd6
Rollup merge of #144254 - ognevny:opt-dist-artifact-dir, r=Kobzol
jieyouxu Jul 21, 2025
7a77909
Auto merge of #144269 - jieyouxu:rollup-137ysl2, r=jieyouxu
bors Jul 21, 2025
e452c9b
Auto merge of #144205 - hkBst:flt2dec, r=workingjubilee
bors Jul 22, 2025
277a5c4
Rename `tests/assembly` into `tests/assembly-llvm`
GuillaumeGomez Jul 21, 2025
0da1244
Rename `tests/codegen` into `tests/codegen-llvm`
GuillaumeGomez Jul 21, 2025
a2288c4
Auto merge of #144222 - Kobzol:stdarch-push, r=folkertdev
bors Jul 22, 2025
3914c53
Auto merge of #144249 - GuillaumeGomez:asm-tests, r=jieyouxu
bors Jul 22, 2025
cfa6a88
Auto merge of #143897 - cjgillot:derive-walk, r=petrochenkov
bors Jul 23, 2025
c5c0a0b
Auto merge of #143412 - Kobzol:std-detect-in-stdlib, r=Amanieu
bors Jul 23, 2025
ff93b36
Auto merge of #144233 - cjgillot:unsat-mir, r=oli-obk
bors Jul 23, 2025
d11dbbb
Auto merge of #144244 - jieyouxu:pr-full-ci, r=Kobzol
bors Jul 23, 2025
93af4af
Prepare for merging from rust-lang/rust
invalid-email-address Jul 24, 2025
1bdaf66
Merge ref 'efd420c770bb' from rust-lang/rust
invalid-email-address Jul 24, 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 @@
460259d14de0274b97b8801e08cb2fe5f16fdac5
efd420c770bb179537c01063e98cb6990c439654
6 changes: 3 additions & 3 deletions src/asm.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ can't know ahead of time whether a function will require a frame/base pointer.

Various tests for inline assembly are available:

- `tests/assembly/asm`
- `tests/assembly-llvm/asm`
- `tests/ui/asm`
- `tests/codegen/asm-*`
- `tests/codegen-llvm/asm-*`

Every architecture supported by inline assembly must have exhaustive tests in
`tests/assembly/asm` which test all combinations of register classes and types.
`tests/assembly-llvm/asm` which test all combinations of register classes and types.
2 changes: 1 addition & 1 deletion src/autodiff/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ rustup toolchain install nightly # enables -Z unstable-options
You can then run our test cases:

```bash
./x test --stage 1 tests/codegen/autodiff
./x test --stage 1 tests/codegen-llvm/autodiff
./x test --stage 1 tests/pretty/autodiff
./x test --stage 1 tests/ui/autodiff
./x test --stage 1 tests/ui/feature-gates/feature-gate-autodiff.rs
Expand Down
4 changes: 2 additions & 2 deletions src/llvm-coverage-instrumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ human-readable coverage report.
> directive, so they will be skipped if the profiler runtime has not been
> [enabled in `bootstrap.toml`](#recommended-configtoml-settings).

Finally, the [`tests/codegen/instrument-coverage/testprog.rs`] test compiles a simple Rust program
Finally, the [`tests/codegen-llvm/instrument-coverage/testprog.rs`] test compiles a simple Rust program
with `-C instrument-coverage` and compares the compiled program's LLVM IR to
expected LLVM IR instructions and structured data for a coverage-enabled
program, including various checks for Coverage Map-related metadata and the LLVM
Expand All @@ -136,4 +136,4 @@ and `mir-opt` tests can be refreshed by running:
[`tests/coverage`]: https://github.com/rust-lang/rust/tree/master/tests/coverage
[`src/tools/coverage-dump`]: https://github.com/rust-lang/rust/tree/master/src/tools/coverage-dump
[`tests/coverage-run-rustdoc`]: https://github.com/rust-lang/rust/tree/master/tests/coverage-run-rustdoc
[`tests/codegen/instrument-coverage/testprog.rs`]: https://github.com/rust-lang/rust/blob/master/tests/mir-opt/coverage/instrument_coverage.rs
[`tests/codegen-llvm/instrument-coverage/testprog.rs`]: https://github.com/rust-lang/rust/blob/master/tests/mir-opt/coverage/instrument_coverage.rs
2 changes: 1 addition & 1 deletion src/offload/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This gives you a working LLVM build.
## Testing
run
```
./x test --stage 1 tests/codegen/gpu_offload
./x test --stage 1 tests/codegen-llvm/gpu_offload
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion src/profile-guided-optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ There is also a [codegen test][codegen-test] that checks that some expected
instrumentation artifacts show up in LLVM IR.

[rmake-tests]: https://github.com/rust-lang/rust/tree/master/tests/run-make
[codegen-test]: https://github.com/rust-lang/rust/blob/master/tests/codegen/pgo-instrumentation.rs
[codegen-test]: https://github.com/rust-lang/rust/blob/master/tests/codegen-llvm/pgo-instrumentation.rs

## Additional information

Expand Down
4 changes: 2 additions & 2 deletions src/sanitizers.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ implementation:
## Testing sanitizers

Sanitizers are validated by code generation tests in
[`tests/codegen/sanitize*.rs`][test-cg] and end-to-end functional tests in
[`tests/codegen-llvm/sanitize*.rs`][test-cg] and end-to-end functional tests in
[`tests/ui/sanitizer/`][test-ui] directory.

Testing sanitizer functionality requires the sanitizer runtimes (built when
Expand All @@ -85,7 +85,7 @@ sanitizer. When sanitizer is unsupported on given target, sanitizers tests will
be ignored. This behaviour is controlled by compiletest `needs-sanitizer-*`
directives.

[test-cg]: https://github.com/rust-lang/rust/tree/master/tests/codegen
[test-cg]: https://github.com/rust-lang/rust/tree/master/tests/codegen-llvm
[test-ui]: https://github.com/rust-lang/rust/tree/master/tests/ui/sanitizer

## Enabling sanitizer on a new target
Expand Down
10 changes: 5 additions & 5 deletions src/tests/compiletest.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The following test suites are available, with links for more information:
| [`pretty`](#pretty-printer-tests) | Check pretty printing |
| [`incremental`](#incremental-tests) | Check incremental compilation behavior |
| [`debuginfo`](#debuginfo-tests) | Check debuginfo generation running debuggers |
| [`codegen`](#codegen-tests) | Check code generation |
| [`codegen-*`](#codegen-tests) | Check code generation |
| [`codegen-units`](#codegen-units-tests) | Check codegen unit partitioning |
| [`assembly`](#assembly-tests) | Check assembly output |
| [`mir-opt`](#mir-opt-tests) | Check MIR generation and optimizations |
Expand Down Expand Up @@ -290,7 +290,7 @@ For example, `./x test tests/debuginfo -- --debugger gdb` will only test GDB com

### Codegen tests

The tests in [`tests/codegen`] test LLVM code generation. They compile the test
The tests in [`tests/codegen-llvm`] test LLVM code generation. They compile the test
with the `--emit=llvm-ir` flag to emit LLVM IR. They then run the LLVM
[FileCheck] tool. The test is annotated with various `// CHECK` comments to
check the generated code. See the [FileCheck] documentation for a tutorial and
Expand All @@ -301,13 +301,13 @@ See also the [assembly tests](#assembly-tests) for a similar set of tests.
If you need to work with `#![no_std]` cross-compiling tests, consult the
[`minicore` test auxiliary](./minicore.md) chapter.

[`tests/codegen`]: https://github.com/rust-lang/rust/tree/master/tests/codegen
[`tests/codegen-llvm`]: https://github.com/rust-lang/rust/tree/master/tests/codegen-llvm
[FileCheck]: https://llvm.org/docs/CommandGuide/FileCheck.html


### Assembly tests

The tests in [`tests/assembly`] test LLVM assembly output. They compile the test
The tests in [`tests/assembly-llvm`] test LLVM assembly output. They compile the test
with the `--emit=asm` flag to emit a `.s` file with the assembly output. They
then run the LLVM [FileCheck] tool.

Expand All @@ -324,7 +324,7 @@ See also the [codegen tests](#codegen-tests) for a similar set of tests.
If you need to work with `#![no_std]` cross-compiling tests, consult the
[`minicore` test auxiliary](./minicore.md) chapter.

[`tests/assembly`]: https://github.com/rust-lang/rust/tree/master/tests/assembly
[`tests/assembly-llvm`]: https://github.com/rust-lang/rust/tree/master/tests/assembly-llvm


### Codegen-units tests
Expand Down