about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-05-30Merge commit 'c9139bd546d9cd69df817faeab62c5f9b1a51337' into ↵Philipp Krones-676/+1422
clippy-subtree-update
2024-05-30Auto merge of #3644 - narpfel:local-crates-metadata-format-update, r=RalfJungbors-12/+28
Fix "local crate" detection `PackageId` is an opaque identifier whose internal format is subject to change, so looking up the names of local crates by ID is more robust than parsing the ID. Resolves #3643.
2024-05-30add a commentRalf Jung-0/+2
2024-05-30Rollup merge of #125753 - Zalathar:procres, r=jieyouxuMatthias Krüger-29/+19
compiletest: Unify `cmd2procres` with `run_command_to_procres` Historical context: I originally added `run_command_to_procres` in #112300 and #114843, because I didn't like the overly-specific failure message in `cmd2procres`, but at the time I didn't feel confident enough to change the existing code, so I just added my own similar code. Now I'm going back to remove this redundancy by eliminating `cmd2procress`, and adjusting all callers to use a slightly-tweaked `run_command_to_procres` instead.
2024-05-30Rollup merge of #125739 - RalfJung:drop-in-place-docs, r=workingjubileeMatthias Krüger-0/+12
drop_in_place: weaken the claim of equivalence with drop(ptr.read()) The two are *not* semantically equivalent in all cases, so let's not be so definite about this. Fixes https://github.com/rust-lang/rust/issues/112015
2024-05-30Rollup merge of #125711 - oli-obk:const_block_ice2, r=NadrierilMatthias Krüger-22/+21
Make `body_owned_by` return the `Body` instead of just the `BodyId` fixes #125677 Almost all `body_owned_by` callers immediately called `body`, too, so just return `Body` directly. This makes the inline-const query feeding more robust, as all calls to `body_owned_by` will now yield a body for inline consts, too. I have not yet figured out a good way to make `tcx.hir().body()` return an inline-const body, but that can be done as a follow-up
2024-05-30explain what the open questions are, and add a Miri test for thatRalf Jung-0/+12
2024-05-30make env/var test deterministicRalf Jung-0/+3
2024-05-30compiletest: clarify COMPILETEST_NEEDS_ALL_LLVM_COMPONENTS errorRalf Jung-3/+9
also improve wording for an ignore reason
2024-05-30fmtThe Miri Cronjob Bot-1/+2
2024-05-30Merge from rustcThe Miri Cronjob Bot-524/+640
2024-05-30Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-05-30compiletest: Unify `cmd2procres` with `run_command_to_procres`Zalathar-29/+19
2024-05-30Auto merge of #125744 - fmease:rollup-ky7d098, r=fmeasebors-31/+32
Rollup of 7 pull requests Successful merges: - #125653 (Migrate `run-make/const-prop-lint` to `rmake.rs`) - #125662 (Rewrite `fpic`, `simple-dylib` and `issue-37893` `run-make` tests in `rmake.rs` or ui test format) - #125699 (Streamline `x fmt` and improve its output) - #125701 ([ACP 362] genericize `ptr::from_raw_parts`) - #125723 (Migrate `run-make/crate-data-smoke` to `rmake.rs`) - #125733 (Add lang items for `AsyncFn*`, `Future`, `AsyncFnKindHelper`'s associated types) - #125734 (ast: Revert a breaking attribute visiting order change) r? `@ghost` `@rustbot` modify labels: rollup
2024-05-30Rollup merge of #125734 - petrochenkov:macinattr, r=wesleywiserLeón Orell Valerian Liehr-24/+24
ast: Revert a breaking attribute visiting order change Fixes https://github.com/rust-lang/rust/issues/124535 Fixes https://github.com/rust-lang/rust/issues/125201
2024-05-30Rollup merge of #125723 - GuillaumeGomez:migrate-run-make-crate-data-smoke, ↵León Orell Valerian Liehr-3/+8
r=jieyouxu Migrate `run-make/crate-data-smoke` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? ``@jieyouxu``
2024-05-30Rollup merge of #125662 - Oneirical:more-tests-again, r=jieyouxuLeón Orell Valerian Liehr-3/+0
Rewrite `fpic`, `simple-dylib` and `issue-37893` `run-make` tests in `rmake.rs` or ui test format Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
2024-05-30Rollup merge of #125653 - GuillaumeGomez:migrate-const-prop-lint, r=jieyouxuLeón Orell Valerian Liehr-1/+0
Migrate `run-make/const-prop-lint` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? ``@jieyouxu``
2024-05-29Auto merge of #125702 - workingjubilee:tell-tidy-about-csky, r=nikicbors-0/+1
Give tidy the good news about C-SKY It seems this was overlooked in https://github.com/rust-lang/rust/pull/125472 because we don't test C-SKY much yet. Fixes #125697 r? `@erikdesjardins`
2024-05-29Auto merge of #125732 - matthiaskrgr:rollup-bozbtk3, r=matthiaskrgrbors-426/+372
Rollup of 7 pull requests Successful merges: - #124655 (Add `-Zfixed-x18`) - #125693 (Format all source files in `tests/coverage/`) - #125700 (coverage: Avoid overflow when the MC/DC condition limit is exceeded) - #125705 (Reintroduce name resolution check for trying to access locals from an inline const) - #125708 (tier 3 target policy: clarify the point about producing assembly) - #125715 (remove unneeded extern crate in rmake test) - #125719 (Extract coverage-specific code out of `compiletest::runtest`) r? `@ghost` `@rustbot` modify labels: rollup
2024-05-29add tests for local crate detectionPaul Gey-1/+17
2024-05-29ast: Revert a breaking attribute visiting order changeVadim Petrochenkov-24/+24
2024-05-29Rollup merge of #125719 - Zalathar:run-coverage, r=jieyouxuMatthias Krüger-426/+372
Extract coverage-specific code out of `compiletest::runtest` I had been vaguely intending to do this for a while, but seeing #89475 on the compiletest dashboard inspired me to actually go and do it. This moves a few hundred lines of coverage-specific code out of the main module, making navigation a bit easier. There is still a small amount of coverage-specific logic in broader functions in that module, since it can't easily be moved. This is just cut-and-paste plus fixing visibility and imports, so no functional changes. I also removed the unit test for anonymizing line numbers in MC/DC reports, as foreshadowed by the comment I wrote when adding it. That functionality is now adequately exercised by the actual snapshot tests for MC/DC coverage. (Removing the test now avoids the need to move it, or to make the function it calls visible.)
2024-05-29Auto merge of #125613 - ChrisDenton:windows-recipie, r=jieyouxubors-5/+6
Use `rmake` for `windows-` run-make tests Convert some Makefile tests to recipes. I renamed "issue-85441" to "windows-ws2_32" as I think it's slightly more descriptive. EDIT: `llvm-readobj` seems to work for reading DLL imports so I've used that instead of `objdump`. cc #121876
2024-05-29Auto merge of #3638 - saethlin:big-alloc-bench, r=RalfJungbors-0/+28
Add a benchmark for creating large uninit allocations Extracted from https://github.com/rust-lang/miri/issues/3637 I used this program to confirm that https://github.com/rust-lang/rust/pull/125633 has the desired effect.
2024-05-29Add `Function::fn_ptr_type(…)` for obtaining name-erased function typeVincent Esche-0/+8
2024-05-29give tidy the good news about C-SKYJubilee Young-0/+1
2024-05-29Add `run-make-support::rust_lib_name`Guillaume Gomez-1/+7
2024-05-29rewrite and rename issue-37893 to rmakeOneirical-2/+0
2024-05-29convert simple-dylib to ui testOneirical-1/+0
2024-05-29Migrate `run-make/crate-data-smoke` to `rmake.rs`Guillaume Gomez-2/+1
2024-05-29Remove Makefiles from allowed_run_make_makefilesChris Denton-5/+0
2024-05-29Convert run-make/windows-safeseh to rmakeChris Denton-0/+6
2024-05-29Migrate `run-make/const-prop-lint` to `rmake.rs`Guillaume Gomez-1/+0
2024-05-29Add no_std Xtensa targets supportSergio Gasquez-0/+4
2024-05-29Auto merge of #125360 - RalfJung:packed-field-reorder, r=fmeasebors-3/+3
don't inhibit random field reordering on repr(packed(1)) `inhibit_struct_field_reordering_opt` being false means we exclude this type from random field shuffling. However, `packed(1)` types can still be shuffled! The logic was added in https://github.com/rust-lang/rust/pull/48528 since it's pointless to reorder fields in packed(1) types (there's no padding that could be saved) -- but that shouldn't inhibit `-Zrandomize-layout` (which did not exist at the time). We could add an optimization elsewhere to not bother sorting the fields for `repr(packed)` types, but I don't think that's worth the effort. This *does* change the behavior in that we may now reorder fields of `packed(1)` structs (e.g. if there are niches, we'll try to move them to the start/end, according to `NicheBias`). We were always allowed to do that but so far we didn't. Quoting the [reference](https://doc.rust-lang.org/reference/type-layout.html): > On their own, align and packed do not provide guarantees about the order of fields in the layout of a struct or the layout of an enum variant, although they may be combined with representations (such as C) which do provide such guarantees.
2024-05-29Extract coverage-specific code out of `compiletest::runtest`Zalathar-426/+372
This moves a few hundred lines of coverage-specific code out of the main module, making navigation a bit easier.
2024-05-29Make `body_owned_by` return the body directly.Oli Scherer-8/+7
Almost all callers want this anyway, and now we can use it to also return fed bodies
2024-05-29Don't require `visit_body` to take a lifetime that must outlive the function ↵Oli Scherer-14/+14
call
2024-05-29Revert miri async drop test but add warnings to each async drop testDaria Sukhonina-50/+34
2024-05-29Bless new async destructor sizes in async drop testsDaria Sukhonina-5/+5
2024-05-29Add size check inside of the async drop testsDaria Sukhonina-29/+50
2024-05-28Add preference modifier for workspace-local crates when using auto import.Mathew Horner-1/+46
2024-05-29Rollup merge of #125639 - ChrisDenton:run-make-support-doc, r=onur-ozkan许杰友 Jieyou Xu (Joe)-3/+3
Support `./x doc run-make-support --open` Having easy access to the run-make-support documentation is invaluable when creating run-make tests using the new Rust recipes.
2024-05-29Rollup merge of #125638 - Oneirical:lets-find-some-tests, r=jieyouxu许杰友 Jieyou Xu (Joe)-3/+0
Rewrite `lto-smoke`, `simple-rlib` and `mixing-deps` `run-make` tests in `rmake.rs` format Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
2024-05-29Rollup merge of #125633 - RalfJung:miri-no-copy, r=saethlin许杰友 Jieyou Xu (Joe)-37/+19
miri: avoid making a full copy of all new allocations Hopefully fixes https://github.com/rust-lang/miri/issues/3637 r? ``@saethlin``
2024-05-29Rollup merge of #125226 - madsmtm:fix-mac-catalyst-tests, r=workingjubilee许杰友 Jieyou Xu (Joe)-5/+11
Make more of the test suite run on Mac Catalyst Combined with https://github.com/rust-lang/rust/pull/125225, the only failing parts of the test suite are in `tests/rustdoc-js`, `tests/rustdoc-js-std` and `tests/debuginfo`. Tested with: ```console ./x test --target=aarch64-apple-ios-macabi library/std ./x test --target=aarch64-apple-ios-macabi --skip=tests/rustdoc-js --skip=tests/rustdoc-js-std --skip=tests/debuginfo tests ``` Will probably put up a PR later to enable _running_ on (not just compiling for) Mac Catalyst in CI, though not sure where exactly I should do so? `src/ci/github-actions/jobs.yml`? Note that I've deliberately _not_ enabled stack overflow handlers on iOS/tvOS/watchOS/visionOS (see https://github.com/rust-lang/rust/issues/25872), but rather just skipped those tests, as it uses quite a few APIs that I'd be weary about getting rejected by the App Store (note that Swift doesn't do it on those platforms either). r? ``@workingjubilee`` CC ``@thomcc`` ``@rustbot`` label O-ios O-apple
2024-05-29Rollup merge of #124251 - scottmcm:unop-ptr-metadata, r=oli-obk许杰友 Jieyou Xu (Joe)-1/+149
Add an intrinsic for `ptr::metadata` The follow-up to #123840, so we can remove `PtrComponents` and `PtrRepr` from libcore entirely (well, after a bootstrap update). As discussed in <https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/.60ptr_metadata.60.20in.20MIR/near/435637808>, this introduces `UnOp::PtrMetadata` taking a raw pointer and returning the associated metadata value. By no longer going through a `union`, this should also help future PRs better optimize pointer operations. r? ``@oli-obk``
2024-05-28Add a benchmark for creating large uninit allocationsBen Kimock-0/+28
2024-05-28Auto merge of #125682 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 5 commits in a8d72c675ee52dd57f0d8f2bae6655913c15b2fb..431db31d0dbeda320caf8ef8535ea48eb3093407 2024-05-24 03:34:17 +0000 to 2024-05-28 18:17:31 +0000 - Include `lints.rust.unexpected_cfgs.check-cfg` in the fingerprint (rust-lang/cargo#13958) - feat(test): Auto-redact elapsed time (rust-lang/cargo#13973) - chore: Update to snapbox 0.6 (rust-lang/cargo#13963) - fix: check if rev is full commit sha for github fast path (rust-lang/cargo#13969) - test: switch from `drop` to `let _` due to nightly rustc change (rust-lang/cargo#13964) r? ghost