about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-08-04Remove cygpath from run-make-supportChris Denton-47/+5
2024-08-03Migrate `run-make/print-calling-conventions` to ui-testJerry Wang-1/+0
2024-08-03Promote riscv64gc-unknown-linux-musl to tier 2Amanieu d'Antras-0/+1
2024-08-03Auto merge of #128595 - matthiaskrgr:rollup-7a4qa8b, r=matthiaskrgrbors-35/+74
Rollup of 7 pull requests Successful merges: - #126704 (Added SHA512, SM3, SM4 target-features and `sha512_sm_x86` feature gate) - #127586 (Add `#[must_use]` to some `into_raw*` functions.) - #128161 (nested aux-build in tests/rustdoc/ tests) - #128303 (Enable `std::io::copy` specialisation for `std::pipe::{PipeReader, PipeWriter}`) - #128368 (Formatting tweaks) - #128483 (Still more `cfg` cleanups) - #128557 (chore: use shorthand initializer) r? `@ghost` `@rustbot` modify labels: rollup
2024-08-03Rollup merge of #128161 - EtomicBomb:just-compiletest, r=notriddleMatthias Krüger-35/+74
nested aux-build in tests/rustdoc/ tests * Fixes bug that prevented using nested aux-build in `tests/rustdoc/` tests. Before, `fn document` and the auxiliary builder disagreed about where to find the nested aux-build source file (`auxiliary/auxiliary/aux.rs` vs `auxiliary/aux.rs`), preventing them from building. Picked the latter in line with other builders in compiletest. * Adds `//@ doc-flags` header, which forwards flags to rustdoc and not rustc. * Adds `//@ unique-doc-out-dir` header, which sets the --out-dir for the rustdoc invocation to a unique directory: `<root out dir>/docs/<test name>/doc` * Changes working directory of the rustdoc invocation to the root out directory (common among all aux-builds). Prior art: exec_compiled_test in runtest.rs * Adds tests that use nested aux builds and new headers These changes provide useful capabilities for writing rustdoc tests on their own. They are also needed to test the implementation for the [mergable-rustdoc-cross-crate-info](https://github.com/rust-lang/rfcs/pull/3662) RFC. try-job: x86_64-msvc
2024-08-03Promote aarch64-apple-darwin to Tier 1Evelyn Harthbrooke-2/+1
Per rust-lang/rfcs#3671.
2024-08-03Miri: add a flag to do recursive validity checkingRalf Jung-29/+57
2024-08-03Auto merge of #128356 - Oneirical:real-estate-reaLTOr, r=jieyouxubors-4/+9
Migrate `cross-lang-lto-clang` and `cross-lang-lto-pgo-smoketest` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). This has the same problem outlined by #126180, where the tests do not actually run as no test-running CI enviroment has `RUSTBUILD_FORCE_CLANG_BASED_TESTS` set. However, I still find it interesting to turn the Makefiles into the rmake format until the Clang issue is fixed. This should technically be tested on MSVC... if MSVC actually ran Clang tests. try-job: x86_64-gnu-debug
2024-08-03Merge from rustcThe Miri Cronjob Bot-100/+214
2024-08-03Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-08-03Auto merge of #128576 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 15 commits in 257b72b8adfb1f2aa9916cefca67285c21666276..fa646583675d7c140482bd906145c71b7fb4fc2b 2024-07-30 15:08:27 +0000 to 2024-08-02 16:08:06 +0000 - refactor(toml): Rename 'resolved' to 'normalized' (rust-lang/cargo#14342) - faq: rephrase offline usage. (rust-lang/cargo#14336) - docs(unstable): Improve nightly link (rust-lang/cargo#14344) - Fix a typo in 1.81 changes (rust-lang/cargo#14343) - Change tests to support `rustc` wording changes (rust-lang/cargo#14341) - chore(deps): update rust crate windows-sys to 0.59 (rust-lang/cargo#14335) - chore(deps): update rust crate gix to 0.64.0 (rust-lang/cargo#14332) - chore(deps): update compatible (rust-lang/cargo#14331) - chore(deps): update rust crate rusqlite to 0.32.0 (rust-lang/cargo#14334) - fix: also build manpage for cargo.md (rust-lang/cargo#14339) - fix(config): Adjust MSRV resolve config field name / values (rust-lang/cargo#14296) - fix(toml): Resolve regression from toml_edit 0.22.18 (rust-lang/cargo#14329) - test(publish): More dev-dep stripping cases (rust-lang/cargo#14327) - Use gmake on AIX (rust-lang/cargo#14323) - fix(publish): Don't strip non-dev features (rust-lang/cargo#14325) r? ghost
2024-08-02Update cargoWeihang Lo-0/+0
2024-08-03Auto merge of #128528 - ↵bors-18/+0
workingjubilee:you-dont-need-to-see-this-cpuid-move-along, r=Amanieu Finish removing `has_cpuid` The one use of it was guaranteed to be always true. try-job: test-various
2024-08-02Auto merge of #128361 - Oneirical:testle-deforestation, r=jieyouxubors-2/+0
Migrate `link-cfg` and `rustdoc-default-output` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). try-job: aarch64-apple try-job: x86_64-msvc try-job: x86_64-mingw try-job: x86_64-gnu-llvm-18 try-job: i686-msvc
2024-08-02run cross-lang-lto-pgo-smoketest in CI by renaming itOneirical-7/+6
2024-08-02rewrite cross-lang-lto-pgo-smoketest to rmakeOneirical-3/+3
2024-08-02rewrite cross-lang-lto-clang to rmakeOneirical-1/+7
2024-08-02rewrite rustdoc-default-output to rmakeOneirical-1/+0
2024-08-02Wait with change processing until the vfs is doneLukas Wirth-30/+34
2024-08-02rewrite foreign-exceptions to rmakeOneirical-46/+18
2024-08-02rewrite and rename issue-36710 to rmakeOneirical-1/+0
2024-08-02rewrite foreign-double-unwind to rmakeOneirical-2/+109
2024-08-02Auto merge of #3769 - primoly:miri-start, r=RalfJungbors-11/+140
Add `miri_start` support This PR uses a function with the exported symbol `miri_start` as a drop-in alternative to `#[start]`. So the signature stays the same as suggested in [this comment](https://github.com/rust-lang/miri/issues/3498#issuecomment-2088560526). <del>I’ve also removed Miri’s restriction to only work on bin crates as I don’t think this is necessary anymore.</del> Closes #3758
2024-08-02docsRalf Jung-9/+24
2024-08-02Add `miri_start` supportprimoly-11/+125
2024-08-02internal: Load VFS config changes in parallelLukas Wirth-81/+129
2024-08-02Auto merge of #128352 - Oneirical:daLTOnist-vision, r=jieyouxubors-3/+38
Migrate `cross-lang-lto` `run-make` test to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Please try: try-job: x86_64-msvc try-job: i686-mingw try-job: x86_64-mingw try-job: armhf-gnu try-job: test-various try-job: aarch64-apple try-job: x86_64-gnu-llvm-18
2024-08-02Move the standard library to a separate workspacebjorn3-49/+55
This ensures that the Cargo.lock packaged for it in the rust-src component is up-to-date, allowing rust-analyzer to run cargo metadata on the standard library even when the rust-src component is stored in a read-only location as is necessary for loading crates.io dependencies of the standard library. This also simplifies tidy's license check for runtime dependencies as it can now look at all entries in library/Cargo.lock without having to filter for just the dependencies of runtime crates. In addition this allows removing an exception in check_runtime_license_exceptions that was necessary due to the compiler enabling a feature on the object crate which pulls in a dependency not allowed for the standard library. While cargo workspaces normally enable dependencies of multiple targets to be reused, for the standard library we do not want this reusing to prevent conflicts between dependencies of the sysroot and of tools that are built using this sysroot. For this reason we already use an unstable cargo feature to ensure that any dependencies which would otherwise be shared get a different -Cmetadata argument as well as using separate build dirs. This doesn't change the situation around vendoring. We already have several cargo workspaces that need to be vendored. Adding another one doesn't change much. There are also no cargo profiles that are shared between the root workspace and the library workspace anyway, so it doesn't add any extra work when changing cargo profiles.
2024-08-02Move ZST ABI handling to `rustc_target`beetrees-0/+5
2024-08-02Handle virtual workspaces in the tidy edition checkbjorn3-7/+9
2024-08-02rustfmt: Remove `has_cpuid` from testJubilee Young-18/+0
2024-08-02internal: Remove AbsPathBuf::TryFrom impl that checks too many things at onceLukas Wirth-95/+90
2024-08-02Auto merge of #17705 - huntc:resolve-ra, r=Veykrilbors-16/+191
feat: Use oldest rustup rust-analyzer when toolchain override is present Selects a rust-toolchain declared RA based on its date. The earliest (oldest) RA wins and becomes the one that the workspace uses as a whole. In terms of precedence: nightly > stable-with-version > stable With stable-with-version, we invoke the RA with a `--version` arg and attempt to extract a date. Given the same date as a nightly, the nightly RA will win. Fixes #17663
2024-08-02fmtThe Miri Cronjob Bot-3/+6
2024-08-02Merge from rustcThe Miri Cronjob Bot-8044/+15526
2024-08-02Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-08-02Auto merge of #128529 - matthiaskrgr:rollup-gzq2slo, r=matthiaskrgrbors-33/+10
Rollup of 6 pull requests Successful merges: - #126818 (Better handle suggestions for the already present code and fix some suggestions) - #128436 (Update sysinfo version to 0.31.2) - #128453 (raw_eq: using it on bytes with provenance is not UB (outside const-eval)) - #128491 ([`macro_metavar_expr_concat`] Dogfooding) - #128494 (MIR required_consts, mentioned_items: ensure we do not forget to fill these lists) - #128521 (rustdoc: Remove dead opaque_tys rendering logic) r? `@ghost` `@rustbot` modify labels: rollup
2024-08-02Rollup merge of #128453 - RalfJung:raw_eq, r=saethlinMatthias Krüger-25/+0
raw_eq: using it on bytes with provenance is not UB (outside const-eval) The current behavior of raw_eq violates provenance monotonicity. See https://github.com/rust-lang/rust/pull/124921 for an explanation of provenance monotonicity. It is violated in raw_eq because comparing bytes without provenance is well-defined, but adding provenance makes the operation UB. So remove the no-provenance requirement from raw_eq. However, the requirement stays in-place for compile-time invocations of raw_eq, that indeed cannot deal with provenance. Cc `@rust-lang/opsem`
2024-08-02Rollup merge of #128436 - GuillaumeGomez:update-sysinfo, r=clubby789Matthias Krüger-1/+1
Update sysinfo version to 0.31.2 I needed to update `memchr` version (which was pinned in https://github.com/rust-lang/rust/commit/36a16798f798eb59db21ff2a8a163135b4a599fe). So let's see if it triggers the linker issue. try-job: x86_64-mingw
2024-08-02Rollup merge of #126818 - estebank:suggestions-fix, r=wesleywiserMatthias Krüger-7/+9
Better handle suggestions for the already present code and fix some suggestions When a suggestion part is for code that is already present, skip it. If all the suggestion parts for a suggestion are for code that is already there, do not emit the suggestion. Fix two suggestions that treat `span_suggestion` as if it were `span_help`.
2024-08-02Auto merge of #128147 - lolbinarycat:fmt-write-bloat-rmake, r=jieyouxubors-1/+52
migrate fmt-write-bloat to rmake try-job: aarch64-apple try-job: x86_64-gnu-llvm-18 try-job: dist-x86_64-linux
2024-08-02Auto merge of #127624 - Oneirical:a-test-of-lime, r=jieyouxubors-4/+1
Migrate and rename `issue-47551`, `issue-35164` and `issue-69368` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). try-job: dist-x86_64-msvc
2024-08-02Make toggle_macro_delimiters work only for macro_callsAli Bektas-62/+112
2024-08-01Auto merge of #127276 - aDotInTheVoid:no-opaque, r=camelidbors-14/+3
rustdoc: Remove OpaqueTy r? `@ghost` Apparently this works lol?!? try-job: aarch64-apple
2024-08-01Do not underline suggestions for code that is already thereEsteban Küber-7/+9
When a suggestion part is for already present code, do not highlight it. If after that there are no highlights left, do not show the suggestion at all. Fix clippy lint suggestion incorrectly treated as `span_help`.
2024-08-01Rollup merge of #128482 - RalfJung:ptr-signed-offset, r=oli-obkMatthias Krüger-101/+93
interpret: on a signed deref check, mention the right pointer in the error When a negative offset (like `ptr.offset(-10)`) goes out-of-bounds, we currently show an error saying that we expect the *resulting* pointer to be inbounds for 10 bytes. That's confusing, so this PR makes it so that instead we say that we expect the *original* pointer `ptr` to have 10 bytes *to the left*. I also realized I can simplify the pointer arithmetic logic and handling of "staying inbounds of a target `usize`" quite a bit; the second commit does that.
2024-08-01rustdoc: Remove OpaqueTyAlona Enraght-Moony-14/+3
2024-08-01rewrite stable-symbol-names to rmakeOneirical-29/+23
2024-08-01rewrite reproducible-build-2 to rmakeOneirical-1/+22
2024-08-01Update sysinfo version to 0.31.2Guillaume Gomez-1/+1