about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-09-01Capture panic messages via a custom panic hookZalathar-0/+152
2025-08-31rustdoc-search: skip loading unneeded fnDataMichael Howell-12/+13
2025-09-01Auto merge of #145663 - Kobzol:bootstrap-test, r=jieyouxubors-380/+753
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-08-31Auto merge of #146038 - notriddle:polarity, r=GuillaumeGomezbors-72/+267
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-31Merge pull request #4466 from nia-e/native-structsRalf Jung-133/+454
native-lib: allow passing structs as arguments
2025-08-31some refactoring and cleanupRalf Jung-145/+128
2025-08-31native-lib: pass structs to native codeNia Espera-129/+467
2025-08-31native-lib: more resilient grabbing of instruction bytesNia Espera-26/+26
Co-authored-by: Ralf Jung <post@ralfj.de>
2025-08-31allow taking address to union fieldKivooeo-1/+1
2025-08-31fixup nix dev shell againWaffle Lapkin-0/+3
2025-08-31Auto merge of #146052 - matthiaskrgr:rollup-cfxx9m6, r=matthiaskrgrbors-9/+4
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-31Rollup merge of #144443 - WaffleLapkin:integer-target-pointer-width, r=NoratriebMatthias Krüger-9/+4
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-31Auto merge of #146039 - Mark-Simulacrum:fix-bolt-path, r=Kobzolbors-5/+15
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-30rustdoc-search: improve concurrency at type searchMichael Howell-9/+15
2025-08-30Rollup merge of #146036 - Mark-Simulacrum:rust-1, r=KobzolTrevor Gross-1/+5
Use move_file for rename in tracing This avoids panicking when the source and destination are on different filesystems.
2025-08-30More docsAlona Enraght-Moony-7/+43
2025-08-30Use absolute path to llvm-bolt, merge-fdata rather than PATHMark Rousskov-5/+15
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-30Start documenting tests/rustdoc-jsonAlona Enraght-Moony-2/+48
2025-08-30tidy: --bless now makes escheck run with --fixbinarycat-10/+22
2025-08-30Pass `--target` before `--` for `cargo rustc`Elliot Roberts-5/+2
2025-08-30rustdoc-search: split function inverted index by input/outputMichael Howell-67/+256
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-30Use move_file for rename in tracingMark Rousskov-1/+5
This avoids panicking when the source and destinations are on different filesystems.
2025-08-30Merge pull request #2536 from apiraino/no-typofixes-plsapiraino-0/+3
2025-08-30Auto merge of #145479 - Kmeakin:km/hardcode-char-is-control, r=joboetbors-1/+0
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-30Do not run `lint-docs` tests in stage 1 `x test` by defaultJakub Beránek-14/+10
2025-08-30Merge pull request #20563 from ChayimFriedman2/ns-projection-dyn-auto-traitShoyu Vanilla (Flint)-1/+70
fix: When mapping next-solver's `dyn` type, add `Self` (aka. bound var ^1.0) to auto traits' substitutions
2025-08-30Fix stage 1 compiler testsJakub Beránek-15/+90
2025-08-30Add test stage 2 snapshot testsJakub Beránek-10/+97
2025-08-30Fix tests and doclinkJakub Beránek-10/+10
2025-08-30Fake nodejs in snapshot testJakub Beránek-0/+2
2025-08-30Fix doclinkJakub Beránek-1/+1
2025-08-30Skip bootstrap tests on CIJakub Beránek-1/+5
2025-08-30Add change tracker entryJakub Beránek-0/+5
2025-08-30Do not run tests on CI in stage 0Jakub Beránek-1/+1
2025-08-30Fix spacing when testing individual cratesJakub Beránek-6/+11
2025-08-30Fix staging for compiler/std crate testsJakub Beránek-56/+106
2025-08-30Move the `test!` macro closer to its usagesJakub Beránek-70/+70
2025-08-30Add metadata to a bunch of steps, rename variables and add commentsJakub Beránek-28/+102
2025-08-30Small refactoring around `RemoteCopyLibs`Jakub Beránek-10/+14
2025-08-30Remove stage0 checkingJakub Beránek-16/+2
2025-08-30Refactor `test::LintDocs`Jakub Beránek-7/+31
2025-08-30Remove `compiler_for` from `test::CodegenCranelift`Jakub Beránek-49/+35
2025-08-30Remove `compiler_for` from `test::CodegenGCC`Jakub Beránek-51/+31
2025-08-30Fix staging of `TestFloatParse`Jakub Beránek-74/+61
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-30Add snapshot test for `x test`Jakub Beránek-1/+71
2025-08-30Forbid running tests on stage 0 unless `build.compiletest-allow-stage0` is ↵Jakub Beránek-1/+7
enabled
2025-08-30Fixup `x test tier-check`Jakub Beránek-21/+40
2025-08-30Add snapshot test for `tier-check`Jakub Beránek-0/+13
2025-08-30Merge pull request #4549 from RalfJung/mprotectRalf Jung-39/+21
native-lib mode: avoid unsoundness due to mrpotect
2025-08-30reduce some code duplication and update some commentsRalf Jung-22/+8