about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-05-25Auto merge of #125552 - matthiaskrgr:rollup-f1yybpn, r=matthiaskrgrbors-8/+30
Rollup of 7 pull requests Successful merges: - #121377 (Stabilize `LazyCell` and `LazyLock`) - #122986 (Fix c_char on AIX) - #123803 (Fix `VecDeque::shrink_to` UB when `handle_alloc_error` unwinds.) - #124080 (Some unstable changes to where opaque types get defined) - #124667 (Stabilize `div_duration`) - #125472 (tidy: validate LLVM component names in tests) - #125523 (Exit the process a short time after entering our ctrl-c handler) r? `@ghost` `@rustbot` modify labels: rollup
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-8/+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-25Auto merge of #125515 - weihanglo:target-toml-override, r=onur-ozkanbors-5/+59
bootstrap: support target specific config overrides Can't find any previous discussion about not supporting this, so I get it done. The motivation of this is from <https://github.com/rust-lang/rust/pull/125473#issuecomment-2129954990>.
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 #125541 - matthiaskrgr:rollup-4gwt4xp, r=matthiaskrgrbors-428/+428
Rollup of 8 pull requests Successful merges: - #125271 (use posix_memalign on almost all Unix targets) - #125451 (Fail relating constants of different types) - #125478 (Bump bootstrap compiler to the latest beta compiler) - #125498 (Stop using the avx512er and avx512pf x86 target features) - #125510 (remove proof tree formatting, make em shallow) - #125513 (Don't eagerly monomorphize drop for types that are impossible to instantiate) - #125514 (Structurally resolve before `builtin_index` in EUV) - #125527 (Add manual Sync impl for ReentrantLockGuard) r? `@ghost` `@rustbot` modify labels: rollup
2024-05-25Rollup merge of #125478 - Urgau:check-cfg-config-bump-stage0, r=Mark-SimulacrumMatthias Krüger-428/+428
Bump bootstrap compiler to the latest beta compiler This PR updates the bootstrap compiler, aka stage0 to the latest beta version, since it contains rust-lang/cargo#13925. It removes those unconditional Cargo warnings: ``` warning: [...]/rust/library/core/Cargo.toml: unused manifest key: lints.rust.unexpected_cfgs.check-cfg warning: [...]/rust/library/std/Cargo.toml: unused manifest key: lints.rust.unexpected_cfgs.check-cfg warning: [...]/rust/library/alloc/Cargo.toml: unused manifest key: lints.rust.unexpected_cfgs.check-cfg ``` for all contributors/users of this repository (including CI). I don't know if that's something we do, or if it's even advisable, feel free to close. r? `@Mark-Simulacrum`
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-25add change entryonur-ozkan-0/+5
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-05-25Remove deprecated field `dist.missing-tools`onur-ozkan-4/+0
It's been 5 months since this field was deprecated. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-05-25Merge from rustcThe Miri Cronjob Bot-13/+35
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-24bootstrap: test target specific config overridesWeihang Lo-4/+45
Debug, PartialEq, and Eq are derived for testing purposes.
2024-05-24bootstrap: support target specific config overridesWeihang Lo-1/+14
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 #125481 - iawia002:fix-dead-link, r=lqdMatthias Krüger-1/+1
Fix the dead link in the bootstrap README This link has been changed since https://github.com/rust-lang/rustc-dev-guide/pull/1939
2024-05-24Rollup merge of #125477 - nnethercote:missed-rustfmt, r=compiler-errorsMatthias Krüger-9/+32
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-24Fix the dead link in the bootstrap READMEXinzhao Xu-1/+1
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-24Bump bootstrap compiler to the latest beta compilerUrgau-428/+428
2024-05-24Run rustfmt on files that need it.Nicholas Nethercote-9/+32
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-113/+115
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.
2024-05-24Review fixes: Assist scope, trait qualifymaxwase-45/+126
2024-05-23solaris add suport for threadname.David Carlier-5/+34
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-24Review fixes: Split into 2, check tuple fieldsmaxwase-57/+137
2024-05-24Add toggle_async_sugar assist code actionmaxwase-0/+483