about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-06-10Rollup merge of #126184 - RalfJung:interpret-simd-nonpow2, r=oli-obkMatthias Krüger-0/+21
interpret: do not ICE on padded non-pow2 SIMD vectors Fixes https://github.com/rust-lang/miri/issues/3458 r? ``@oli-obk``
2024-06-10Rollup merge of #126159 - RalfJung:scalarint-size-mismatch, r=oli-obkMatthias Krüger-28/+12
ScalarInt: size mismatches are a bug, do not delay the panic Cc [Zulip](https://rust-lang.zulipchat.com/#narrow/stream/146212-t-compiler.2Fconst-eval/topic/Why.20are.20ScalarInt.20to.20iN.2FuN.20methods.20fallible.3F) r? ``@oli-obk``
2024-06-10Auto merge of #17381 - roife:fix-issue-17378, r=Veykrilbors-3/+23
fix: ensure that the parent of a SourceRoot cannot be itself fix #17378. In `FileSetConfig.map`, different roots might be mapped to the same `root_id` due to deduplication in `ProjectFolders::new`: ```rust // Example from rustup /Users/roife/code/rustup/target/debug/build/rustup-863a063426b56c51/out /Users/roife/code/rustup ``` In `source_root_parent_map`, r-a might encounter paths where their SourceRootId (i.e. `root_id`) is identical, yet one the them is the parent of the another. This situation can cause the `root_id` to be its own parent, potentially leading to an infinite loop. This PR resolves such cases by adding a check.
2024-06-10Add socketpair shimtiif-15/+366
2024-06-10fix: ensure that the parent of a SourceRoot cannot be itselfroife-3/+23
2024-06-10Bump windows-bindgen to 0.57Chris Denton-1/+1
2024-06-10ScalarInt: size mismatches are a bug, do not delay the panicRalf Jung-28/+12
2024-06-10Remove extra parse cache from Semantics againLukas Wirth-9/+1
2024-06-10migrate tests/run-make/llvm-outputs to use rmake.rsbinarycat-1/+7
part of #121876
2024-06-10Thread more HasSource::source calls through Semantics for cachingLukas Wirth-84/+121
2024-06-10Auto merge of #17372 - Veykril:parallel-diagnostics, r=Veykrilbors-62/+150
feat: Compute native diagnostics in parallel
2024-06-09Auto merge of #126205 - jieyouxu:rollup-s64z5ng, r=jieyouxubors-32/+3
Rollup of 4 pull requests Successful merges: - #126172 (Weekly `cargo update`) - #126176 (rustdoc-search: use lowercase, non-normalized name for type search) - #126190 (Autolabel run-make tests, remind to update tracking issue) - #126194 (Migrate more things to `WinError`) r? `@ghost` `@rustbot` modify labels: rollup
2024-06-09Rollup merge of #126172 - clubby789:cargo-update, r=Mark-Simulacrum许杰友 Jieyou Xu (Joe)-32/+3
Weekly `cargo update` Replaces #125562 `r-efi` needs to be bumped in two places. The `icu4x` dependencies also added a SPDX license identifer, so remove the license checking exception and add `Unicode-3.0` to the list.
2024-06-09Don't intern attribute inputs as their spans make them uniqueLukas Wirth-6/+6
2024-06-09Rollup merge of #126188 - Kobzol:runmake-command-docs, r=jieyouxu许杰友 Jieyou Xu (Joe)-14/+6
Fix documentation for `impl_common_helpers` in `run-make-support` Forgot to do this in https://github.com/rust-lang/rust/pull/126121. `@bors` rollup r? `@jieyouxu`
2024-06-09Rollup merge of #125465 - weihanglo:opt-dist-vendor, r=Mark-Simulacrum许杰友 Jieyou Xu (Joe)-22/+68
bootstrap: vendor crates required by opt-dist to collect profiles These are the default package set required by opt-dist to correctly work, hence for people wanting to build a production grade of rustc in a sandboxed / air-gapped environment, these need to be vendored. The size of `rustc-src-nightly.tar.xz` before and after this change: * Before: 298M * After: 323M (+8%) Size change might or might not be a concern. See the previous discussion: https://github.com/rust-lang/rust/pull/125166#issuecomment-2113626468 Previous efforts on making: * https://github.com/rust-lang/rust/pull/125125 * https://github.com/rust-lang/rust/pull/125166 --- Note that extra works still need to be done to make it fully vendored. * The current pinned rustc-perf uses `tempfile::Tempdir` as the working directory when collecting profiles from some of these packages. This "tmp" working directory usage make it impossible for Cargo to pick up the correct vendor sources setting in `.cargo/config.toml` bundled in the rustc-src tarball. [^1] * opt-dist verifies the final built rustc against a subset of rustc test suite. However it rolls out its own `config.toml` without setting `vendor = true`, and that results in `./vendor/` directory removed. [^2] [^1]: https://github.com/rust-lang/rustc-perf/blob/4f313add609f43e928e98132358e8426ed3969ae/collector/src/compile/benchmark/mod.rs#L164-L173 [^2]: https://github.com/rust-lang/rust/blob/606afbb617a2949a4e35c4b0258ff94c980b9451/src/tools/opt-dist/src/tests.rs#L62-L77
2024-06-09rewrite `short-ice` in `rmake` formatOneirical-1/+0
2024-06-09tidy: add license exceptions for rustc-perfWeihang Lo-1/+41
`ring` is included because it is an optional dependency of `hyper`, which is a training data in rustc-pref for optimized build. The license of it is generally `ISC AND MIT AND OpenSSL`, though the `package.license` field is not set. See https://github.com/briansmith/ring/issues/902 `git+https://github.com/rust-lang/team` git source is from `rust_team_data`, which is used by `site` in src/tools/rustc-perf. This doesn't really a part of the compiler, so doesn't really affect the bootstrapping process. See https://github.com/rust-lang/rustc-perf/pull/1914.
2024-06-09feat: vendor crates required by opt-dist to collect profilesWeihang Lo-21/+24
These are the default package set required by opt-dist to correctly work, hence for people wanting to build a production grade of rustc in a sandboxed / air-gapped environment, these need to be vendored. The size of `rustc-src-nightly.tar.xz` before and after this change: * Before: 298M * After: 323M (+8%) These crates are the default set of packages required by opt-dist to correctly work, hence for people wanting to build a production grade of rustc in an sandboxed / air-gapped environment, these need to be vendored. The size of `rustc-src-nightly.tar.xz` before and after this change: * Before: 298M * After: 323M (+8%) Size change might or might not be a concern. See the previous discussion: https://github.com/rust-lang/rust/pull/125166#issuecomment-2113626468 Previous efforts on making: * https://github.com/rust-lang/rust/pull/125125 * https://github.com/rust-lang/rust/pull/125166 --- Note that extra works still need to be done to make it fully vendored. * The current pinned rustc-perf uses `tempfile::Tempdir` as the working directory when collecting profiles from some of these packages. This "tmp" working directory usage make it impossible for Cargo to pick up the correct vendor sources setting in `.cargo/config.toml` bundled in the rustc-src tarball. [^1] * opt-dist verifies the final built rustc against a subset of rustc test suite. However it rolls out its own `config.toml` without setting `vendor = true`, and that results in `./vendor/` directory removed. [^2] [^1]: https://github.com/rust-lang/rustc-perf/blob/4f313add609f43e928e98132358e8426ed3969ae/collector/src/compile/benchmark/mod.rs#L164-L173 [^2]: https://github.com/rust-lang/rust/blob/606afbb617a2949a4e35c4b0258ff94c980b9451/src/tools/opt-dist/src/tests.rs#L62-L77
2024-06-09Auto merge of #126193 - RalfJung:miri-sync, r=RalfJungbors-1087/+1500
Miri subtree update r? `@ghost`
2024-06-09minor: use push_str insteadYoung-Flash-12/+5
2024-06-09internal: tweak test caseYoung-Flash-5/+7
2024-06-09Follow up fix for eventfd shimtiif-23/+30
2024-06-09don't panic if time computaton overflowsRalf Jung-67/+102
2024-06-09Fix divide by zeroLukas Wirth-1/+2
2024-06-09Register virtual workspace Cargo.toml files in the VFSLukas Wirth-37/+77
2024-06-09Auto merge of #3653 - tiif:bug/futex_ice, r=RalfJungbors-8/+20
Fix futex with large timeout ICE Fixes #3647. This PR changed the type of ``nanoseconds`` from ``u64`` to ``u128``. In ``duration_since``, nanoseconds is manually converted to second by dividing it with 1e9. But overflow is still possible.
2024-06-09Allow choosing logical cores for num threads configLukas Wirth-9/+43
2024-06-09Run cargo fmttiif-1/+4
2024-06-09Saturate to u64::MAXtiif-1/+2
2024-06-09Checked add for duration updatebyt-1/+1
Co-authored-by: Ralf Jung <post@ralfj.de>
2024-06-09Add comment for u128 to u64 conversion.byt-0/+2
Co-authored-by: Ralf Jung <post@ralfj.de>
2024-06-09Move duration division outtiif-5/+3
2024-06-09Use modulo operation to convert nanosecond to Durationtiif-7/+8
2024-06-09Remove testtiif-16/+0
2024-06-09Convert u128 to nanosecondtiif-12/+8
2024-06-09First attempttiif-7/+34
2024-06-09interpret: do not ICE on padded non-pow2 SIMD vectorsRalf Jung-1/+22
2024-06-09Fix documentation for `impl_common_helpers` in `run-make-support`Jakub Beránek-14/+6
2024-06-09feat: Compute native diagnostics in parallelLukas Wirth-26/+73
2024-06-09use strict ops in some placesRalf Jung-9/+8
2024-06-09simd_bitmask: work correctly for sizes like 24Ralf Jung-42/+122
2024-06-09Rollup merge of #126175 - Kobzol:tidy-install-pip-quiet, r=tgross35Matthias Krüger-1/+1
Use --quiet flag when installing pip dependencies Fixes: https://github.com/rust-lang/rust/issues/126164 This still prints an error if any occurs.
2024-06-09simd_select_bitmask: fix intrinsic name in errorRalf Jung-2/+2
2024-06-09simd_bitmask: nicer error when the mask is too bigRalf Jung-2/+10
2024-06-09Update `icu4x` dependenciesclubby789-32/+3
2024-06-09internal: better print style for hirYoung-Flash-2/+16
2024-06-08Use --quiet flag when installing pip dependenciesJakub Beránek-1/+1
2024-06-08Merge from rustcRalf Jung-124/+113
2024-06-08Preparing for merge from rustcRalf Jung-1/+1