Commit graph

165761 commits

Author SHA1 Message Date
Ralf Jung
d4f861ecb6 account for aarch64 windows oversleeping 2025-09-02 16:33:10 +02:00
Ralf Jung
a354649102 add a flag to always apply the maximum float error 2025-09-02 15:04:17 +02:00
Ralf Jung
821a44d3ef move some configuration enums to a more logical place 2025-09-02 12:12:42 +02:00
Ralf Jung
8236def69f
Merge pull request #4554 from RalfJung/help
improve output for 'cargo miri test --help'
2025-09-01 07:24:13 +00:00
Ralf Jung
20a3256bc3 improve output for 'cargo miri test --help' 2025-09-01 08:45:45 +02:00
The Miri Cronjob Bot
4cc7ccaf98 Merge ref '828e45ad11' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 828e45ad11
Filtered ref: 10ab51e1b1b8eadb430163bd78ef39c0721cfbf8

This merge was created using https://github.com/rust-lang/josh-sync.
2025-09-01 05:02:58 +00:00
Jakub Beránek
af627f557a
Fix ui-fulldeps 2025-09-01 18:39:44 +02:00
Jakub Beránek
6f5fc69c7e
Consolidate staging of test steps in message groups 2025-09-01 14:30:32 +02:00
Jakub Beránek
6c3a86b73b
Do not run lint-docs tests in stage 1 x test by default 2025-09-01 08:54:37 +02:00
Jakub Beránek
8e97112ba8
Remove Compiler::with_stage 2025-09-01 08:52:05 +02:00
Jakub Beránek
72167b726c
Rename compiler to test_compiler 2025-09-01 08:52:05 +02:00
Jakub Beránek
2bfff320bd
Add some compiletest suites snapshot tests 2025-09-01 08:52:05 +02:00
Jakub Beránek
99583d1aec
Remove outdated comment 2025-09-01 08:52:01 +02:00
The Miri Cronjob Bot
988c077b06 Prepare for merging from rust-lang/rust
This updates the rust-version file to 828e45ad11.
2025-09-01 04:55:23 +00:00
bors
828e45ad11 Auto merge of #145663 - Kobzol:bootstrap-test, r=jieyouxu
Enforce in bootstrap that test must have stage at least 1 (except for compiletest)

This PR cleans up a bunch of test steps and adds metadata to them. I didn't yet touch the most complicated step (`CompileTest`), I'm leaving that for another PR.

Testing anything on stage 0 is only possible for compiletest and with `build.allow-compiletest-stage0`. Testing anything else on stage 0 will either produce a nice error or crash with a stage being subtracted below zero.

r? `@jieyouxu`

try-job: dist-x86_64-linux
try-job: aarch64-gnu
try-job: arm-android
try-job: `x86_64-gnu-llvm-20*`
try-job: `x86_64-msvc-*`
try-job: aarch64-apple
try-job: test-various
2025-09-01 01:30:27 +00:00
bors
07d246fc6d Auto merge of #146038 - notriddle:polarity, r=GuillaumeGomez
rustdoc-search: split function inverted index by input/output

Fixes rust-lang/rust#146015

With a patch applied to count the number of unifications, and running the query `Option<T>, (T -> U) -> Option<U>`

before: performed unifyFunctionType on 17484 functions
after: performed unifyFunctionType on 3055 functions

preview:
https://notriddle.com/rustdoc-html-demo-12/polarity/doc/std/index.html
https://notriddle.com/rustdoc-html-demo-12/polarity/compiler-doc/rustc_hir/index.html
2025-08-31 20:28:35 +00:00
Ralf Jung
1f0216e53e
Merge pull request #4466 from nia-e/native-structs
native-lib: allow passing structs as arguments
2025-08-31 19:31:32 +00:00
Ralf Jung
c1d16779d5 some refactoring and cleanup 2025-08-31 21:03:21 +02:00
Nia Espera
4dbadd05f8 native-lib: pass structs to native code 2025-08-31 20:49:47 +02:00
Nia Espera
fbd8b96a12
native-lib: more resilient grabbing of instruction bytes
Co-authored-by: Ralf Jung <post@ralfj.de>
2025-08-31 19:59:45 +02:00
bors
564ee21912 Auto merge of #146052 - matthiaskrgr:rollup-cfxx9m6, r=matthiaskrgr
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#144443 (Make target pointer width in target json an integer)
 - rust-lang/rust#145174 (Ensure consistent drop for panicking drop in hint::select_unpredictable)
 - rust-lang/rust#145592 (Fix format string grammar in docs and improve alignment error message for rust-lang/rust#144023)
 - rust-lang/rust#145931 (Clarify that align_offset overaligns)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-08-31 11:53:54 +00:00
Matthias Krüger
0e28b4201a
Rollup merge of #144443 - WaffleLapkin:integer-target-pointer-width, r=Noratrieb
Make target pointer width in target json an integer

r? Noratrieb
cc `@RalfJung` (https://github.com/rust-lang/rust/pull/142352/files#r2230380120)

try-job: x86_64-rust-for-linux
2025-08-31 13:40:34 +02:00
bors
1bc901e0ca Auto merge of #146039 - Mark-Simulacrum:fix-bolt-path, r=Kobzol
Use absolute path to llvm-bolt, merge-fdata rather than PATH

This unconditionally uses the provided LLVM toolchain's BOLT. I'm not sure that makes sense, but since we don't build BOLT as part of Rust's build of LLVM today, it's probably the right option for now.

This avoids breaking the build on not being able to find the llvm-bolt executable.
2025-08-31 08:45:55 +00:00
Michael Howell
6ef0bfdb5c rustdoc-search: improve concurrency at type search 2025-08-30 20:20:18 -07:00
Trevor Gross
7185ec6056
Rollup merge of #146036 - Mark-Simulacrum:rust-1, r=Kobzol
Use move_file for rename in tracing

This avoids panicking when the source and destination are on different filesystems.
2025-08-30 18:49:50 -05:00
Mark Rousskov
199d2d4615 Use absolute path to llvm-bolt, merge-fdata rather than PATH
This unconditionally uses the provided LLVM toolchain's BOLT. I'm not
sure that makes sense, but since we don't build BOLT as part of Rust's
build of LLVM today, it's probably the right option for now.

This avoids breaking the build on not being able to find the llvm-bolt
executable.
2025-08-30 18:47:23 -04:00
Michael Howell
0becce400b rustdoc-search: split function inverted index by input/output
With a patch applied to count the number of unifications,
and running the query `Option<T>, (T -> U) -> Option<U>`

before: performed unifyFunctionType on 17484 functions
after: performed unifyFunctionType on 3055 functions
2025-08-30 12:22:33 -07:00
Mark Rousskov
2dc57526c2 Use move_file for rename in tracing
This avoids panicking when the source and destinations are on different
filesystems.
2025-08-30 13:20:44 -04:00
bors
0f50696801 Auto merge of #145479 - Kmeakin:km/hardcode-char-is-control, r=joboet
Hard-code `char::is_control`

Split off from https://github.com/rust-lang/rust/pull/145219

According to
https://www.unicode.org/policies/stability_policy.html#Property_Value, the set of codepoints in `Cc` will never change. So we can hard-code the patterns to match against instead of using a table.

This doesn't change the generated assembly, since the lookup table is small enough that[ LLVM is able to inline the whole search](https://godbolt.org/z/bG8dM37YG). But this does reduce the chance of regressions if LLVM's heuristics change in the future, and means less generated Rust code checked in to `unicode-data.rs`.
2025-08-30 14:18:21 +00:00
Jakub Beránek
5bc9308471
Do not run lint-docs tests in stage 1 x test by default 2025-08-30 15:42:16 +02:00
Jakub Beránek
9de09ac101
Fix stage 1 compiler tests 2025-08-30 15:28:41 +02:00
Jakub Beránek
d2195c483c
Add test stage 2 snapshot tests 2025-08-30 15:28:41 +02:00
Jakub Beránek
daaf0c9eb5
Fix tests and doclink 2025-08-30 15:28:40 +02:00
Jakub Beránek
1c1d630c8c
Fake nodejs in snapshot test 2025-08-30 15:28:40 +02:00
Jakub Beránek
1591901e2f
Fix doclink 2025-08-30 15:28:40 +02:00
Jakub Beránek
425c66ecdc
Skip bootstrap tests on CI 2025-08-30 15:28:40 +02:00
Jakub Beránek
b53d532a38
Add change tracker entry 2025-08-30 15:28:40 +02:00
Jakub Beránek
dda8e1ddc1
Do not run tests on CI in stage 0 2025-08-30 15:28:40 +02:00
Jakub Beránek
ef569d3ce3
Fix spacing when testing individual crates 2025-08-30 15:28:40 +02:00
Jakub Beránek
0b3a13c9c0
Fix staging for compiler/std crate tests 2025-08-30 15:28:40 +02:00
Jakub Beránek
6651686949
Move the test! macro closer to its usages 2025-08-30 15:28:40 +02:00
Jakub Beránek
384a044f55
Add metadata to a bunch of steps, rename variables and add comments 2025-08-30 15:28:40 +02:00
Jakub Beránek
1d96ef8dc0
Small refactoring around RemoteCopyLibs 2025-08-30 15:28:40 +02:00
Jakub Beránek
0f2fc03068
Remove stage0 checking 2025-08-30 15:28:40 +02:00
Jakub Beránek
e759b97838
Refactor test::LintDocs 2025-08-30 15:28:40 +02:00
Jakub Beránek
2ca5cb8c16
Remove compiler_for from test::CodegenCranelift 2025-08-30 15:28:39 +02:00
Jakub Beránek
42fb65b5a9
Remove compiler_for from test::CodegenGCC 2025-08-30 15:28:39 +02:00
Jakub Beránek
a347f8dcb6
Fix staging of TestFloatParse
The tool wasn't useful for anything, it was only built as a part of the test, but we can just use `cargo test` and `cargo run` in the test, no need to (pre-)build the tool itself.
2025-08-30 15:28:39 +02:00
Jakub Beránek
f0d15d3324
Add snapshot test for x test 2025-08-30 15:28:39 +02:00
Jakub Beránek
542e750e51
Forbid running tests on stage 0 unless build.compiletest-allow-stage0 is enabled 2025-08-30 15:28:39 +02:00