about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-06-27[PATCH] Fix build on Solaris where fd-lock cannot be used.Petr Sumbera-4/+6
2023-06-26Auto merge of #112884 - klensy:ri-drop-old-clap, r=albertlarsan68bors-132/+57
rust-installer: migrate to clap 4.2, change to 2021 edition and fix few clippy lints Updated rust-installer to clap 4.2, dropping last user of clap v3; changes to 2021 edition, fixes few clippy warns.
2023-06-26Auto merge of #111850 - the8472:external-step-by, r=scottmcmbors-36/+482
Specialize `StepBy<Range<{integer}>>` OLD iter::bench_range_step_by_fold_u16 700.00ns/iter +/- 10.00ns iter::bench_range_step_by_fold_usize 519.00ns/iter +/- 6.00ns iter::bench_range_step_by_loop_u32 555.00ns/iter +/- 7.00ns iter::bench_range_step_by_sum_reducible 37.00ns/iter +/- 0.00ns NEW iter::bench_range_step_by_fold_u16 49.00ns/iter +/- 0.00ns iter::bench_range_step_by_fold_usize 194.00ns/iter +/- 1.00ns iter::bench_range_step_by_loop_u32 98.00ns/iter +/- 0.00ns iter::bench_range_step_by_sum_reducible 1.00ns/iter +/- 0.00ns NEW + `-Ctarget-cpu=x86-64-v3` iter::bench_range_step_by_fold_u16 22.00ns/iter +/- 0.00ns iter::bench_range_step_by_fold_usize 80.00ns/iter +/- 1.00ns iter::bench_range_step_by_loop_u32 41.00ns/iter +/- 0.00ns iter::bench_range_step_by_sum_reducible 1.00ns/iter +/- 0.00ns I have only optimized for walltime of those methods, I haven't tested whether it eliminates bounds checks when indexing into slices via things like `(0..slice.len()).step_by(16)`.
2023-06-25Auto merge of #113038 - matthiaskrgr:rollup-sdcfkxa, r=matthiaskrgrbors-2/+171
Rollup of 5 pull requests Successful merges: - #112976 (Add test for futures with HRTB) - #113013 (rustdoc: get rid of extra line when line-wrapping fn decls with empty arg list) - #113030 (Add a regression test for #109071) - #113031 (Add a regression test for #110933) - #113036 (Accept `ReStatic` for RPITIT) r? `@ghost` `@rustbot` modify labels: rollup
2023-06-25Rollup merge of #113036 - TaKO8Ki:fix-112094, r=compiler-errorsMatthias Krüger-1/+13
Accept `ReStatic` for RPITIT Fixes #112094 Regression in https://github.com/rust-lang/rust/commit/8216b7f22934cea2422c79565df9c30ac8db93e0 If there is a better suggestion, I will go with that.
2023-06-25Rollup merge of #113031 - JohnTitor:issue-110933, r=compiler-errorsMatthias Krüger-0/+20
Add a regression test for #110933 Closes #110933 r? `@compiler-errors`
2023-06-25Rollup merge of #113030 - JohnTitor:issue-109071, r=TaKO8KiMatthias Krüger-0/+79
Add a regression test for #109071 Closes #109071 r? `@compiler-errors`
2023-06-25Rollup merge of #113013 - fmease:rustdoc-decl-line-wrapping-slim-arg-list, ↵Matthias Krüger-1/+15
r=camelid rustdoc: get rid of extra line when line-wrapping fn decls with empty arg list Fixes https://github.com/bevyengine/bevy/issues/8898#issuecomment-1605683417: ![Screenshot 2023-06-24 at 23-42-53 any_with_component in bevy_ecs schedule common_conditions - Rust](https://github.com/rust-lang/rust/assets/14913065/4646eba6-b186-4d78-96d9-aad716a4ef5d) It now prints as shown below (which conforms to the style guide): ```rs pub fn any_with_component<T: Component>( ) -> impl FnMut(Query<'_, '_, (), With<T>>) -> bool + Clone ``` The bug was introduced in #109011.
2023-06-25Rollup merge of #112976 - dswij:issue-112347, r=compiler-errorsMatthias Krüger-0/+44
Add test for futures with HRTB Part of #112347 This PR adds test for ice when resolving for `Futures` with HRTB.
2023-06-25Auto merge of #113037 - TaKO8Ki:rollup-pqfbxwk, r=TaKO8Kibors-120/+167
Rollup of 3 pull requests Successful merges: - #112281 (Test the cargo args generated by bootstrap.py) - #113028 (rustdoc: handle assoc const equalities in cross-crate impl-Trait-in-arg-pos) - #113029 (CI: do not run Bump dependencies workflow on forks) r? `@ghost` `@rustbot` modify labels: rollup
2023-06-26Rollup merge of #113029 - Kobzol:ci-fork-update, r=Mark-SimulacrumTakayuki Maeda-0/+3
CI: do not run Bump dependencies workflow on forks I haven't found a prettier way of doing this. We can possibly only use the condition on the `pr` job (to just disallow the creation of the PR), or only on the `not-waiting-on-bors` step, as if it doesn't run, the following job (probably) also shouldn't run. Fixes: https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/.22Weekly.20cargo.20update.22.20on.20forks r? `@Mark-Simulacrum`
2023-06-26Rollup merge of #113028 - fmease:rustdoc-x-crate-itiap-clean-term, r=notriddleTakayuki Maeda-13/+20
rustdoc: handle assoc const equalities in cross-crate impl-Trait-in-arg-pos Fixes FIXME (the added test previously lead to an ICE). `@rustbot` label A-cross-crate-reexports
2023-06-26Rollup merge of #112281 - jyn514:test-bootstrap-py, r=albertlarsan68Takayuki Maeda-107/+144
Test the cargo args generated by bootstrap.py I recommend reviewing this commit-by-commit using the instructions in https://rustc-dev-guide.rust-lang.org/git.html#moving-large-sections-of-code. - Test cargo arguments passed by bootstrap.py This moves a lot of code around, but the logic itself is not too terribly complicated. - Move almost all logic in `def bootstrap` to the `RustBuild` class, to avoid mixing setting configuration with running commands - Update various doctests to the new (more complete) RustBuild config. In particular, don't pretend that `bin_root` supports `build` being unset. - Change `parse_args` not to use a global, to allow testing it - Set BUILD_DIR appropriately so bootstrap.py doesn't panic because cargo isn't found - Allow passing arguments to `bootstrap_test.py` Previous, it used the built-in test runner, which doesn't support options unless they're manually passed in the script. - Fix progress messages for configure in bootstrap_test.py Before it would unconditionally print `configure-args = []`. r? `@albertlarsan68` cc https://github.com/rust-lang/rust/pull/112089 https://github.com/rust-lang/rust/pull/111979#issuecomment-1568525699
2023-06-25Mark the StepBy specialization as unsafeThe 8472-8/+8
2023-06-25StepBy<Range<{int <= usize}>> can be TrustedLenThe 8472-1/+7
2023-06-26accept `ReStatic` for RPITITTakayuki Maeda-1/+13
add an ui test for #112094
2023-06-25doccomments for StepBy specializationsThe 8472-0/+41
2023-06-25fix some bugsjyn-1/+7
- fix tests when `--build` is set - don't leak `config.example.toml` fd - don't crash if `config.toml` doesn't exist yet
2023-06-25Auto merge of #113027 - matthiaskrgr:rollup-mpes684, r=matthiaskrgrbors-6/+33
Rollup of 2 pull requests Successful merges: - #113007 (Revert "Structurally resolve correctly in check_pat_lit") - #113023 (Migrate GUI colors test to original CSS color format) r? `@ghost` `@rustbot` modify labels: rollup
2023-06-25Add a regression test for #110933Yuki Okushi-0/+20
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-06-25Add a regression test for #109071Yuki Okushi-0/+79
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-06-25CI: do not run Bump dependencies workflow on forksJakub Beránek-0/+3
2023-06-25rustdoc: handle assoc const equalities in cross-crate impl-Trait-in-arg-posLeón Orell Valerian Liehr-13/+20
2023-06-25Add test for futures with HRTBdswij-0/+44
2023-06-25Rollup merge of #113023 - GuillaumeGomez:migrate-gui-test-color-17, r=notriddleMatthias Krüger-3/+3
Migrate GUI colors test to original CSS color format Follow-up of https://github.com/rust-lang/rust/pull/111459. r? `@notriddle`
2023-06-25Rollup merge of #113007 - ↵Matthias Krüger-3/+30
compiler-errors:dont-structural-resolve-byte-str-pat, r=oli-obk Revert "Structurally resolve correctly in check_pat_lit" This reverts commit 54fb5a48b968b3a329ceeb57226d9ac60f983f04. Also adds a couple of tests, and downgrades the existing `-Ztrait-solver=next` test to a known-bug. Fixes #112993
2023-06-25Auto merge of #113001 - ChrisDenton:win-arm32-shim, r=thomccbors-73/+44
Move windows-sys arm32 shim to c.rs This moves the arm32 shim in to c.rs instead of appending to the generated file itself. This makes it simpler to change these workarounds if/when needed. The downside is we need to exclude a couple of functions from being generated (see the comment). A metadata solution could help here but they'll be easy enough to add back if that happens.
2023-06-25Auto merge of #113022 - GuillaumeGomez:rollup-vkpzsuw, r=GuillaumeGomezbors-54/+172
Rollup of 4 pull requests Successful merges: - #112918 (display PID of process holding lock) - #112990 (Add a regression test for #96699) - #113011 (Add enum for `can_access_statics` boolean) - #113018 (Fix test for #96258) r? `@ghost` `@rustbot` modify labels: rollup
2023-06-25Migrate GUI colors test to original CSS color formatGuillaume Gomez-3/+3
2023-06-25Rollup merge of #113018 - asquared31415:test_fix, r=TaKO8KiGuillaume Gomez-3/+28
Fix test for #96258 #98644 did not properly test enabling the problematic lint as a warning due to improper use of `compile-flags:` (missing `:`). This makes it use `#![warn]` instead, like in the reproducer. cc #96258
2023-06-25Rollup merge of #113011 - Nilstrieb:can_access_statics, r=oli-obkGuillaume Gomez-15/+36
Add enum for `can_access_statics` boolean `/*can_access_statics:*/ false` is one of the ways to do this, but not the one I like. r? oli-obk
2023-06-25Rollup merge of #112990 - JohnTitor:issue-96699, r=TaKO8KiGuillaume Gomez-0/+87
Add a regression test for #96699 Closes #96699 r? `@BoxyUwU`
2023-06-25Rollup merge of #112918 - zephaniahong:issue-107077-fix, r=Mark-SimulacrumGuillaume Gomez-36/+21
display PID of process holding lock Displays PID of process holding lock when trying to run multiple instances of x.py
2023-06-25Auto merge of #112476 - chenyukang:yukang-fix-109991, r=compiler-errorsbors-19/+139
Do not emit coerce_suggestions for expr from destructuring assignment desugaring Fixes #109991
2023-06-25Auto merge of #113014 - matthiaskrgr:rollup-dasfmfc, r=matthiaskrgrbors-26/+34
Rollup of 5 pull requests Successful merges: - #112937 (rustdoc: Align search results horizontally for easy scanning) - #112950 (DirEntry::file_name: improve explanation) - #112956 (Expose `compiler-builtins-weak-intrinsics` feature for `-Zbuild-std`) - #113008 (Move some docs from the README to the dev-guide) - #113009 (Remove unnecessary `path` attribute) r? `@ghost` `@rustbot` modify labels: rollup
2023-06-24fix testasquared31415-3/+28
2023-06-25Do not offer any of the suggestions in emit_coerce_suggestions for expr from ↵yukang-19/+139
destructuring assignment desugaring
2023-06-25Rollup merge of #113009 - ChrisDenton:remove-path, r=workingjubileeMatthias Krüger-1/+0
Remove unnecessary `path` attribute Follow up to #111401. I missed this at the time but it should now be totally unnecessary since the other include was removed. r? `@workingjubilee`
2023-06-25Rollup merge of #113008 - jyn514:new-contributor-improvements, r=clubby789Matthias Krüger-20/+17
Move some docs from the README to the dev-guide and as a drive-by cleanup, improve the error message for `x test tidy` when a feature gate is missing. This also improves the error message you get on Windows if python isn't installed. cc https://github.com/rust-lang/libs-team/issues/242#issuecomment-1597558557, https://github.com/rust-lang/rustc-dev-guide/pull/1701
2023-06-25Rollup merge of #112956 - Amanieu:weak-intrinsics, r=Mark-SimulacrumMatthias Krüger-0/+3
Expose `compiler-builtins-weak-intrinsics` feature for `-Zbuild-std` This was added in rust-lang/compiler-builtins#526 to force all compiler-builtins intrinsics to use weak linkage.
2023-06-25Rollup merge of #112950 - tshepang:patch-4, r=Mark-SimulacrumMatthias Krüger-2/+8
DirEntry::file_name: improve explanation
2023-06-25Rollup merge of #112937 - camelid:align-typenames, r=notriddle,GuillaumeGomezMatthias Krüger-3/+6
rustdoc: Align search results horizontally for easy scanning The recent PR #110688 added info about an item's kind before its name in search results. However, because the kind and name are inline with no alignment, it's now hard to visually scan downward through the search results, looking at item names. This PR fixes that by horizontally aligning search results such that there are now two columns of information. r? `@GuillaumeGomez`
2023-06-24rustdoc: get rid of extra line when line-wrapping fn decls with empty arg listLeón Orell Valerian Liehr-1/+15
2023-06-24rustdoc: Update GUI testNoah Lev-1/+2
2023-06-24Auto merge of #113006 - GuillaumeGomez:rollup-l2js0wa, r=GuillaumeGomezbors-53/+313
Rollup of 8 pull requests Successful merges: - #112703 ([-Ztrait-solver=next, mir-typeck] instantiate hidden types in the root universe) - #112854 (fix: add cfg diagnostic for unresolved import error) - #112912 (style-guide: Rewrite let-else section for clarity, without changing formatting) - #112915 (Update runtests.py : grammar correction) - #112971 (issue template: add clippy entry which points to the clippy repo) - #112989 (Add a regression test for #109141) - #113002 (bootstrap: Backup `settings.json` to the correct filename) - #113003 (Fix old python deprecation check in x.py) r? `@ghost` `@rustbot` modify labels: rollup
2023-06-24Add enum for `can_access_statics` booleanNilstrieb-15/+36
`/*can_access_statics:*/ false` is one of the ways to do this, but not the one I like.
2023-06-24Don't print "x.ps1"jyn-1/+1
This is left over from adding `Get-Command -syntax`; it's not helpful.
2023-06-24Give a better error on Windows if python isn't installedjyn-2/+10
Before: ``` PS C:\Users\vboxuser\rust> ./x x.ps1 PS C:\Users\vboxuser\rust> ``` After: ``` PS C:\Users\vboxuser\rust> ./x x.ps1 C:\Users\vboxuser\rust\x.ps1 : C:\Users\vboxuser\rust\x.ps1: error: did not find python installed help: consider installing it from https://www.python.org/downloads/windows/ At line:1 char:1 + ./x + ~~~ + CategoryInfo : NotInstalled: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,x.ps1 ``` The existing message from the shell script is already decent and I decided not to change it: ``` $ ./x Python was not found but can be installed from the Microsoft Store: ms-windows-store://pdp/?productid=9NJ46SX7X90P ```
2023-06-24Remove unnecessary `path` attributeChris Denton-1/+0
2023-06-24Revert "Structurally resolve correctly in check_pat_lit"Michael Goulet-3/+30
This reverts commit 54fb5a48b968b3a329ceeb57226d9ac60f983f04.