about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-05-26Auto merge of #3629 - devnexen:illumos_num_cpus, r=RalfJungbors-2/+32
solarish platform: add support for available-parallelism.
2024-05-26reorder codeRalf Jung-1/+1
2024-05-26solarish platform add supports for available-parallelism.David Carlier-2/+32
2024-05-26Auto merge of #3631 - RalfJung:blocking-refactor, r=RalfJungbors-1043/+951
completely refactor how we manage blocking and unblocking threads This hides a lot of invariants from the implementation of the synchronization primitives, and makes sure we never have to release or acquire a vector clock on another thread but the active one.
2024-05-26add a macro to declare thread unblock callbacksRalf Jung-249/+256
2024-05-26Auto merge of #3632 - RalfJung:readdir, r=RalfJungbors-35/+33
unix/fs: a bit of cleanup in macos_fbsd_readdir_r
2024-05-26unix/fs: a bit of cleanup in macos_fbsd_readdir_rRalf Jung-35/+33
2024-05-26fix './miri run --dep --target _'Ralf Jung-1/+7
2024-05-26data_race: vector indices can be reused immediately when the thread is goneRalf Jung-82/+37
2024-05-26completely refactor how we manage blocking and unblocking threadsRalf Jung-895/+832
2024-05-26Rollup merge of #125473 - weihanglo:respect-existing-config-toml, r=KobzolMatthias Krüger-17/+14
fix(opt-dist): respect existing config.toml This is another step toward making opt-dist work in sandboxed environments. See also <https://github.com/rust-lang/rust/pull/125465>. opt-dist verifies the final built rustc against a subset of rustc test suite. However it overwrote the pre-existing `config.toml` [^1], and that results in ./vendor/ directory removed [^2]. Instead of overwriting, this patch use `--set <config-value>` to override paths to rustc / cargo / llvm-config. [^1]: https://github.com/rust-lang/rust/blob/606afbb617a2949a4e35c4b0258ff94c980b9451/src/tools/opt-dist/src/tests.rs#L62-L77 [^2]: https://github.com/rust-lang/rust/blob/8679004993f08807289911d9f400f4ac4391d2bc/src/bootstrap/bootstrap.py#L1057
2024-05-26Rollup merge of #125307 - workingjubilee:uproot-entry-limit, r=Mark-SimulacrumMatthias Krüger-13/+2
tidy: stop special-casing tests/ui entry limit It is genuinely more annoying to have this error, now that this value is below the general `ENTRY_LIMIT` cap, when one is trying to clean out tests from tests/ui! This code has served its purpose well, let it rest now rather than force it to continue haunting us.
2024-05-26Auto merge of #17296 - mathew-horner:no-clone-target, r=Veykrilbors-3/+3
Avoid clone when constructing runnable label. I stumbled across this when reading this code. This seems like an unnecessary allocation (though likely small?)
2024-05-26make release_clock always work on the current threadRalf Jung-106/+115
2024-05-25opt-dist: dont overrwite config.toml when verifyingWeihang Lo-17/+14
This is another step toward making opt-dist work in sandboxed environments opt-dist verifies the final built rustc against a subset of rustc test suite. However it overwrote the pre-existing `config.toml` [^1], and that results in ./vendor/ directory removed [^2]. Instead of overwriting, this patch use `--set <config-value>` to override paths to rustc / cargo / llvm-config. [^1]: https://github.com/rust-lang/rust/blob/606afbb617a2949a4e35c4b0258ff94c980b9451/src/tools/opt-dist/src/tests.rs#L62-L77 [^2]: https://github.com/rust-lang/rust/blob/8679004993f08807289911d9f400f4ac4391d2bc/src/bootstrap/bootstrap.py#L1057
2024-05-25Removed returnJonas Rinke-3/+4
2024-05-25Rollup merge of #125472 - erikdesjardins:component, r=clubby789Matthias Krüger-0/+30
tidy: validate LLVM component names in tests LLVM component names are not immediately obvious (they usually omit any suffixes on the target arch name), and if they're incorrect, the test will silently never run. This happened [here](https://github.com/rust-lang/rust/pull/125220#discussion_r1612626002), and it would be nice to prevent it.
2024-05-25Rollup merge of #121377 - pitaj:lazy_cell_fn_pointer, r=dtolnayMatthias Krüger-7/+0
Stabilize `LazyCell` and `LazyLock` Closes #109736 This stabilizes the [`LazyLock`](https://doc.rust-lang.org/stable/std/sync/struct.LazyLock.html) and [`LazyCell`](https://doc.rust-lang.org/stable/std/cell/struct.LazyCell.html) types: ```rust static HASHMAP: LazyLock<HashMap<i32, String>> = LazyLock::new(|| { println!("initializing"); let mut m = HashMap::new(); m.insert(13, "Spica".to_string()); m.insert(74, "Hoyten".to_string()); m }); let lazy: LazyCell<i32> = LazyCell::new(|| { println!("initializing"); 92 }); ``` r? libs-api
2024-05-25Avoid clone when constructing runnable label.Mathew Horner-3/+3
2024-05-25Auto merge of #125502 - weihanglo:update-rustc-perf, r=Kobzolbors-0/+0
Update rustc-perf Just check if the latest commit works. https://github.com/rust-lang/rustc-perf/compare/4f313add609f43e928e98132358e8426ed3969ae...cc81f9654dac3fe08de286907dba747538417afd See discussion on Zulip: https://rust-lang.zulipchat.com/#narrow/stream/247081-t-compiler.2Fperformance/topic/tempfile.20in.20rustc-perf.20make.20it.20hard.20to.20configure.20vendor/near/440442827 r? ghost
2024-05-25FormattingJonas Rinke-2/+2
2024-05-25SemicolonJonas Rinke-1/+1
2024-05-25Use correct format for setting environment variables when debugging with ↵Jonas Rinke-1/+3
cpptools
2024-05-25Auto merge of #125524 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 7 commits in 84dc5dc11a9007a08f27170454da6097265e510e..a8d72c675ee52dd57f0d8f2bae6655913c15b2fb 2024-05-20 18:57:08 +0000 to 2024-05-24 03:34:17 +0000 - Improve error description when deserializing partial field struct (rust-lang/cargo#13956) - fix: remove symlink dir on Windows (rust-lang/cargo#13910) - Fix wrong type of rustc-flags in documentation (rust-lang/cargo#13957) - Add more high level traces (rust-lang/cargo#13951) - upgrade gix from 0.62 to 0.63 (rust-lang/cargo#13948) - Use `i32` rather than `usize` as "default integer" in library template (rust-lang/cargo#13939) - fetch specific commits even if the github fast path fails (rust-lang/cargo#13946) r? ghost
2024-05-25Fix `data_constructor` ignoring generics for structTavo Annus-5/+19
2024-05-25Merge from rustcThe Miri Cronjob Bot-4/+3
2024-05-25Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-05-24Add "better" edition handling on lint-docs toolSantiago Pastorino-2/+11
2024-05-24Update cargoWeihang Lo-0/+0
2024-05-24Rollup merge of #125485 - GuillaumeGomez:migrate-rmake-rustdoc, r=jieyouxuMatthias Krüger-1/+0
Migrate `run-make/rustdoc-with-output-dir-option` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? `@jieyouxu`
2024-05-24Rollup merge of #125483 - ↵Matthias Krüger-2/+2
workingjubilee:move-transform-validate-to-mir-transform, r=oli-obk compiler: validate.rs belongs next to what it validates It's hard to find code that is deeply nested and far away from its callsites, so let's move `rustc_const_eval::transform::validate` into `rustc_mir_transform`, where all of its callers are. As `rustc_mir_transform` already depends on `rustc_const_eval`, the added visible dependency edge doesn't mean the dependency tree got any worse. This also lets us unnest the `check_consts` module. I did look into moving everything inside `rustc_const_eval::transform` into `rustc_mir_transform`. It turned out to be a much more complex operation, with more concerns and real edges into the `const_eval` crate, whereas this was both faster and more obvious.
2024-05-24remove nested match with and_thenLuuk Wester-4/+1
2024-05-24add test for every keyword, fix bugLuuk Wester-16/+94
2024-05-24cosmetic and performance fixes, and drop support for adding //! comments ↵Luuk Wester-113/+78
anywhere, except for at the top of files.
2024-05-24Remove `DefId` from `EarlyParamRegion` (clippy/smir)Boxy-10/+9
2024-05-24miri: receive the blessings of validate.rsJubilee Young-1/+1
2024-05-24clippy: unnest check_constsJubilee Young-1/+1
2024-05-24Rollup merge of #125477 - nnethercote:missed-rustfmt, r=compiler-errorsMatthias Krüger-1/+1
Run rustfmt on files that need it. Somehow these files aren't properly formatted. By default `x fmt` and `x tidy` only check files that have changed against master, so if an ill-formatted file somehow slips in it can stay that way as long as it doesn't get modified(?) I found these when I ran `x fmt` explicitly on every `.rs` file in the repo, while working on https://github.com/rust-lang/compiler-team/issues/750.
2024-05-24Update rustc-perfWeihang Lo-0/+0
2024-05-24Migrate `run-make/rustdoc-with-output-dir-option` to `rmake.rs`Guillaume Gomez-1/+0
2024-05-24Auto merge of #3626 - devnexen:pthread_name_illumos, r=oli-obkbors-5/+34
solaris add support for threadname. from std::unix::thread::set_name, pthread_setname_np is a weak symbol (not always had been available). Other than that, similar to linux only having twice of its buffer limit.
2024-05-24Auto merge of #3625 - Strophox:miri-allocation-fix, r=RalfJungbors-23/+24
Bugfix `MiriAllocBytes` to guarantee different addresses Fix in `alloc_bytes.rs` following https://github.com/rust-lang/miri/pull/3526 Currently when an allocation of `size == 0` is requested we return a `std::ptr::without_provenance_mut(align)`, but this means returned `ptr`s may overlap, which breaks things.
2024-05-24extend commentsRalf Jung-2/+3
2024-05-24Auto merge of #3628 - RalfJung:tokio, r=RalfJungbors-1/+13
add back some tokio features Turns out I went a bit too fer when I removed features, so `socketpair` was no longer used.
2024-05-24add back some tokio featuresRalf Jung-1/+13
2024-05-24Run rustfmt on files that need it.Nicholas Nethercote-1/+1
Somehow these files aren't properly formatted. By default `x fmt` and `x tidy` only check files that have changed against master, so if an ill-formatted file somehow slips in it can stay that way as long as it doesn't get modified(?) I found these when I ran `x fmt` explicitly on every `.rs` file in the repo, while working on https://github.com/rust-lang/compiler-team/issues/750.
2024-05-24fmtThe Miri Cronjob Bot-2/+7
2024-05-24Merge from rustcThe Miri Cronjob Bot-106/+110
2024-05-24Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-05-23tidy: validate LLVM component names in testsErik Desjardins-0/+30
LLVM component names are not immediately obvious (they usually omit any suffixes on the target arch name), and if they're incorrect, the test will silently never run.