about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2025-07-15Update cargoEric Huss-0/+0
2025-07-15add test for global constructorsIbraheem Ahmed-0/+43
2025-07-15add support for global constructors (i.e. life before main)Ibraheem Ahmed-32/+165
2025-07-15ci cleanup: rustdoc-gui-test now installs browser-ui-testbinarycat-80/+13
this removes the need for --unsafe-perm in the Dockerfile.
2025-07-15Merge pull request #20178 from ShoyuVanilla/cargo-config-cleanupShoyu Vanilla (Flint)-374/+419
chore: Cleanup cargo config queries
2025-07-15Consider outlives assumptions when proving auto traits for coroutine interiorsMichael Goulet-2/+0
2025-07-15Format and bump rustc cratesLaurențiu Nicola-32/+30
2025-07-15Merge pull request #4469 from Patrick-6/add-spinloop-hintsRalf Jung-15/+31
Add std::hint::spin_loop() to tests
2025-07-15Merge from rust-lang/rustLaurențiu Nicola-2784/+7327
2025-07-15Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-07-15Make spin function naming more consistentPatrick-6-17/+17
2025-07-15Further decrease number of `cargo metadata` invokesShoyu Vanilla-243/+270
2025-07-15chore: Cleanup cargo config queriesShoyu Vanilla-133/+151
2025-07-15Merge pull request #4452 from Stypox/trace-borrow-trackerRalf Jung-1/+62
Add tracing spans to borrow tracker functions
2025-07-15Add InterpCx::fn_abi_of_instance/_fn_ptr with tracing, shadowing FnAbiOfStypox-1/+1
2025-07-15Add tracing calls to borrow tracker under the same nameStypox-0/+18
... but the function name is specified in the arguments, see https://github.com/rust-lang/miri/pull/4452#discussion_r2204958019
2025-07-15Add enter_trace_span! that checks #[cfg("tracing")]Stypox-1/+44
Includes a custom syntax shortand to enter_trace_span! with NAME::SUBNAME. MaybeEnteredTraceSpan is `pub use`d in lib.rs to make it available also in bin/, just in case.
2025-07-15Rollup merge of #143905 - xizheyin:143828, r=compiler-errorsSamuel Tardieu-2/+1
Recover and suggest to use `;` to construct array type Fixes rust-lang/rust#143828 r? compiler
2025-07-15Rollup merge of #143837 - jieyouxu:symbol-apis, r=ChrisDentonSamuel Tardieu-25/+159
Adjust `run_make_support::symbols` helpers Massage the `symbols` helpers to fill out {match all, match any} x {substring match, exact match}: | | Substring match | Exact match | |-----------|----------------------------------------|-------------------------------| | Match any | `object_contains_any_symbol_substring` | `object_contains_any_symbol` | | Match all | `object_contains_all_symbol_substring` | `object_contains_all_symbols` | As I'd like to use `object_contains_all_symbols` for rust-lang/rust#143669. As part of this: - Rename `any_symbol_contains` to `object_contains_any_symbol_substring` for accuracy, as `any_symbol_contains` is actually "contains any matching substring". - Remove `with_symbol_iter`. Noticed while working on https://github.com/rust-lang/rust/pull/143669. r? ``@ChrisDenton`` (or compiler)
2025-07-15Rollup merge of #143630 - jieyouxu:drop-suggest, r=Mark-SimulacrumSamuel Tardieu-237/+0
Drop `./x suggest` This PR removes the current `./x suggest` implementation (rust-lang/rust#109933, rust-lang/rust#106249) and associated docs for several reasons: 1. Primarily, `./x suggest` is another "flow" in bootstrap that incurs extra complexity and more invariants that bootstrap has to maintain. This causes more friction when trying to investigate and fix staging problems. As far as I know, this flow has not been actively maintained in quite a while, and I'm not aware of interest in maintaining it. Bootstrap really could use less implementation complexity with a very limited maintenance bandwidth. 2. The current `./x suggest` implementation "bypasses" the usual stage defaults for the various check/build/test/etc. flows, and it's not really possible to have a stage default because `./x suggest --run` produces a *sequence* of suggestions like [`./x check`, `./x test library/std`, ..] and then tries to run all of them in sequence, based on which files are modified. 3. We've not seen a lot of interest both in using it or extending static/dynamic test suggestions. Last extensions were rust-lang/rust#117961 and rust-lang/rust#120763. I'm not convinced the extra implementation complexity is worth it. This was discussed in: - [#t-infra/bootstrap > Dropping the current `./x suggest` flow implementation](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/Dropping.20the.20current.20.60.2E.2Fx.20suggest.60.20flow.20implementation/with/527456699) - [#t-compiler > Dropping current `./x suggest` implementation](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Dropping.20current.20.60.2E.2Fx.20suggest.60.20implementation/with/527528696) Closes rust-lang/rust#109933 (the current implementation is being removed). Closes rust-lang/rust#143569 (by removing `./x suggest` altogether).
2025-07-15Rollup merge of #142301 - Gelbpunkt:duplicated-path-in-error-musl, ↵Samuel Tardieu-0/+1
r=workingjubilee,fmease,jieyouxu tests: Fix duplicated-path-in-error fail with musl musl's dlopen returns a different error than glibc, which contains the name of the file. This would cause the test to fail, since the filename would appear twice in the output (once in the error from rustc, once in the error message from musl). Split the expected test outputs for the different libc implementations. Fixes rust-lang/rust#128474
2025-07-15tidy: check for invalid file namesSamuel Tardieu-0/+43
2025-07-15tidy: improve commentMarijn Schouten-1/+1
2025-07-15tidy static regex: OnceLock -> LazyLockMarijn Schouten-2/+3
2025-07-15Add std::hint::spin_loop()Patrick-6-6/+22
2025-07-15tidy: more clippy fixesMarijn Schouten-112/+110
2025-07-15Merge from rustcThe Miri Cronjob Bot-456/+942
2025-07-15Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-07-15Recover and suggest use `;` to construct array typexizheyin-2/+1
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-07-14Update mdbook to 0.4.52Eric Huss-3/+3
Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0452 This primarily picks up a few fixes.
2025-07-15Infer lifetimes for GATs in expression/pattern positionChayim Refael Friedman-2/+30
We should not only in type position.
2025-07-14Auto merge of #143745 - flip1995:clippy-subtree-update, r=Manishearthbors-470/+3267
Clippy subtree update r? `@Manishearth` Cargo.lock update due to `ui_test` bump and restructure.
2025-07-15Remove current implementation of `./x suggest`Jieyou Xu-237/+0
This is quite a bit of implementation complexity, yet it is quite broken, and we don't have the maintenance bandwidth to address. Remove the current implementation if only to reduce bootstrap's implementation complexity; the `suggest` flow comes with its own set of hacks.
2025-07-14tests: Fix duplicated-path-in-error fail with muslJens Reidel-0/+1
musl's dlopen returns a different error than glibc, which contains the name of the file. This would cause the test to fail, since the filename would appear twice in the output (once in the error from rustc, once in the error message from musl). Split the expected test outputs for the different libc implementations. Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2025-07-14Rollup merge of #143870 - jieyouxu:compiletest-maintenance-6, r=KobzolSamuel Tardieu-20/+44
[COMPILETEST-UNTANGLE 6/N] Use `TestSuite` enum instead of stringly-typed test suites This is part of a patch series to untangle `compiletest` to hopefully nudge it towards being more maintainable. This PR should contain no functional changes.
2025-07-14Rollup merge of #143710 - joshtriplett:random-updates, r=joshtriplettSamuel Tardieu-1/+1
Updates to random number generation APIs Updates based on discussions about random number generation. - Add comment on `RandomSource::fill_bytes` about multiple calls, to allow efficient implementations for random sources that generate a word at a time. - Drop the `Random` trait in favor of `Distribution<T>`, which will let people make calls like random(1..=6), and which allows for future expansion to non-uniform distributions, as well as floating-point. (For now, this is only implemented for `RangeFull`, to get the interface in place. Subsequent PRs will implement it for other range types.)
2025-07-14Reword mismatched-lifetime-syntaxes text based on feedbackJake Goulding-6/+7
Key changes include: - Removal of the word "syntax" from the lint message. More accurately, it could have been something like "syntax group" or "syntax category", but avoiding it completely is easier. - The primary lint message now reflects exactly which mismatch is occurring, instead of trying to be general. A new `help` line is general across the mismatch kinds. - Suggestions have been reduced to be more minimal, no longer also changing non-idiomatic but unrelated aspects. - Suggestion text no longer mentions changes when those changes don't occur in that specific suggestion.
2025-07-14Use `TestSuite` enum instead of stringly-typed test suitesJieyou Xu-20/+44
2025-07-14Rollup merge of #143918 - hkBst:tier-check-cleanup, r=KobzolJakub Beránek-9/+7
Tier check cleanup clippy cleanup + edition 2024
2025-07-14Rollup merge of #143875 - fee1-dead-contrib:push-zvqrmzrprpzt, r=compiler-errorsJakub Beránek-2/+2
update issue number for `const_trait_impl` r? project-const-traits cc rust-lang/rust#67792 rust-lang/rust#143874
2025-07-14Rollup merge of #143850 - fmease:comptest-simp-docck-handling, r=jieyouxuJakub Beránek-312/+283
Compiletest: Simplify {Html,Json}DocCk directive handling So much more maintainable and extensible. r? ````@jieyouxu```` as discussed
2025-07-14Rollup merge of #143724 - hkBst:tidy-cleanup, r=Mark-SimulacrumJakub Beránek-108/+91
Tidy cleanup
2025-07-14tiercheck: edition 2024Marijn Schouten-1/+1
2025-07-14tiercheck: clippy fixesMarijn Schouten-8/+6
2025-07-14Merge pull request #20234 from Hmikihiro/migrate_ted_remove_defaultShoyu Vanilla (Flint)-62/+19
Remove `ConstParam::remove_default` and `TypeParam::remove_default` to migrate from ted
2025-07-14Merge from rustcThe Miri Cronjob Bot-514/+581
2025-07-14Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-07-14Auto merge of #143779 - JonathanBrouwer:automatically_derived_parser, r=oli-obkbors-4/+5
Port `#[automatically_derived]` to the new attribute parsing infrastructure Ports `#[automatically_derived]` to the new attribute parsing infrastructure for https://github.com/rust-lang/rust/issues/131229#issuecomment-2971351163 r? `@oli-obk` cc `@jdonszelmann`
2025-07-13Auto merge of #143357 - cjgillot:no-assoc-item-kind, r=compiler-errorsbors-256/+220
Retire hir::*ItemRef. This information was kept for various places that iterate on HIR to know about trait-items and impl-items. This PR replaces them by uses of the `associated_items` query that contain pretty much the same information. This shortens many spans to just `def_span`, which can be easier to read.
2025-07-13Merge pull request #20236 from gvozdvmozgu/patch-1Chayim Refael Friedman-12/+7
remove now useless `#[allow(unused_lifetimes)]`