215486 Commits

Author SHA1 Message Date
bors 2c8cc34323 Auto merge of #108818 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] Promote 1.68.0 beta to stable

https://forge.rust-lang.org/release/process.html#beta-to-stable

r? `@Mark-Simulacrum`
1.68.0
2023-03-06 15:58:31 +00:00
Mark Rousskov 025e02c9ca Promote 1.68.0 beta to stable 2023-03-06 09:40:47 -05:00
bors 47a8fcefc1 Auto merge of #108670 - cuviper:beta-next, r=cuviper
[beta] stage0 bump and backports

- Bump stage0 to stable
- Revert to using `RtlGenRandom` as a fallback #108060
- Fix `VecDeque::shrink_to` and add tests. #108475
- Fix `VecDeque::append` capacity overflow for ZSTs #108462
- Clippy: Fix array-size-threshold config deserialization error #108673 / rust-lang/rust-clippy#10423
- Yeet point_at_expr_source_of_inferred_type for now #108703

r? `@ghost`
2023-03-04 01:55:08 +00:00
Michael Goulet be90b53d2b Yeet point_at_expr_source_of_inferred_type for now 2023-03-03 09:32:47 -08:00
Alex Macleod 2410b0dfdf Fix array-size-threshold config deserialization error 2023-03-03 09:32:47 -08:00
pommicket 005892a589 Add test for VecDeque::append ZST capacity overflow
(cherry picked from commit 12f959ba39)
2023-03-03 09:32:47 -08:00
pommicket 07a8043079 Use checked_add in VecDeque::append for ZSTs to avoid overflow
(cherry picked from commit 379b18bb0a)
2023-03-03 09:32:47 -08:00
Markus Everling 2d33fe73f4 Disambiguate comments
(cherry picked from commit 4a4f43e4e9)
2023-03-03 09:32:47 -08:00
Markus Everling a07453adef Fix VecDeque::shrink_to and add tests.
This adds both a test specific to #108453 as well as an exhaustive test
that goes through all possible combinations of head index, length and target capacity
for a deque with capacity 16.

(cherry picked from commit 9e22516877)
2023-03-03 09:32:47 -08:00
Chris Denton a541751231 Revert to using RtlGenRandom
This is required due to `BCryptGenRandom` failing to load the necessary dll on some systems.

(cherry picked from commit dfd0afb991)
2023-03-03 09:32:47 -08:00
Josh Stone 40cb3f0e00 Bump stage0 to stable 2023-03-03 09:32:47 -08:00
bors 453d6d2351 Auto merge of #108508 - weihanglo:update-beta-cargo, r=weihanglo
[beta-1.68] cargo beta backports

3 commits in ddf05ad7a66f4cfbe79d7692b84aa144c1aac34d..115f34552518a2f9b96d740192addbac1271e7e6 2023-02-09 03:13:43 +0000 to 2023-02-26 15:07:29 +0000

- [beta-1.68] backport rust-lang/cargo#11756 (rust-lang/cargo#11773)
- [beta-1.68] backport rust-lang/cargo#11759 (rust-lang/cargo#11760)
- [beta-1.68] backport rust-lang/cargo#11733 (rust-lang/cargo#11735)

r? `@ghost`
2023-02-27 02:58:22 +00:00
Weihang Lo b6383e7e8b [beta-1.68] cargo beta backports
3 commits in ddf05ad7a66f4cfbe79d7692b84aa144c1aac34d..115f34552518a2f9b96d740192addbac1271e7e6
2023-02-09 03:13:43 +0000 to 2023-02-26 15:07:29 +0000

- [beta-1.68] backport rust-lang/cargo#11756 (rust-lang/cargo#11773)
- [beta-1.68] backport rust-lang/cargo#11759 (rust-lang/cargo#11760)
- [beta-1.68] backport rust-lang/cargo#11733 (rust-lang/cargo#11735)
2023-02-26 22:29:36 +00:00
bors 003b6f24e6 Auto merge of #108037 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backport

*  Do not eagerly recover for bad impl Trait types in macros #107813
*  Fix infinite loop in rustdoc get_all_import_attributes function #107357
*  Bring tests back into rustc source tarball #107239

r? `@Mark-Simulacrum`
2023-02-15 00:03:17 +00:00
Tomasz Miąsko 993482a05d Bring tests back into rustc source tarball
They were missing after recent move from src/test to tests.
2023-02-14 07:03:18 -05:00
Guillaume Gomez e9abee735b Add regression test for #107350 2023-02-14 07:03:18 -05:00
Guillaume Gomez ea92c68d5e Fix infinite loop in rustdoc get_all_import_attributes function 2023-02-14 07:03:18 -05:00
Michael Goulet 792a9a2eb3 Do not eagerly recover for bad impl-trait in macros 2023-02-14 06:47:56 -05:00
bors a6d8057f09 Auto merge of #107849 - weihanglo:update-beta-cargo, r=weihanglo
[beta-1.68] cargo beta backports

1 commits in 0762e3bbdb6fa64b6859154199ec47d6c90c731c..ddf05ad7a66f4cfbe79d7692b84aa144c1aac34d 2023-01-30 22:07:51 +0000 to 2023-02-09 03:13:43 +0000
- [beta-1.68] Backport fixes (rust-lang/cargo#11674)

r? `@ghost`
2023-02-09 17:06:36 +00:00
Weihang Lo 3a03561a19 [beta-1.68] Update cargo
1 commits in 0762e3bbdb6fa64b6859154199ec47d6c90c731c..ddf05ad7a66f4cfbe79d7692b84aa144c1aac34d
2023-01-30 22:07:51 +0000 to 2023-02-09 03:13:43 +0000
- [beta-1.68] Backport fixes (rust-lang/cargo#11674)
2023-02-09 14:39:47 +00:00
bors 5a6594b4fd Auto merge of #107609 - pnkfelix:backport-reverts-to-fix-thin-archive-reading-for-1-68-beta, r=cuviper
Backport reverts to fix thin archive reading for 1 68 beta

This is a backport of PR #107360 aimed at beta.

cc https://github.com/rust-lang/rust/issues/107162, https://github.com/rust-lang/rust/issues/107334 and https://github.com/google/shaderc-rs/issues/133
2023-02-08 13:28:43 +00:00
Michael Goulet 0e31fdbc4d Revert "switch to the macos-12-xl builder"
This reverts commit fcbae989ae.
2023-02-07 17:27:47 -08:00
Manish Goregaokar 0fe1bba912 Mark uninlined_format_args as pedantic 2023-02-07 17:27:47 -08:00
bjorn3 77565f7950 Revert "Avoid a temporary file when processing macOS fat archives"
This reverts commit bd8e476d8b.
2023-02-02 15:22:14 -05:00
bjorn3 7afc4d2353 Revert "Remove macOS fat archive support from LlvmArchiveBuilder"
This reverts commit 047c7cc60c.
2023-02-02 15:22:04 -05:00
bjorn3 75625d33f3 Revert back to LlvmArchiveBuilder on all platforms
ArArchiveBuilder doesn't support reading thin archives, causing a
regression.
2023-02-02 15:21:35 -05:00
bors 10b73bf73a Auto merge of #107504 - weihanglo:update-beta-cargo, r=ehuss
[beta] Cargo 1.68.0 backports

1 commits in 985d561f0bb9b76ec043a2b12511790ec7a2b954..0762e3bbdb6fa64b6859154199ec47d6c90c731c 2023-01-20 14:39:28 +0000 to 2023-01-30 22:07:51 +0000

- [beta-1.68] Backport fixes of split-debuginfo detection (rust-lang/cargo#11649)

r? `@ehuss`
2023-02-01 16:49:53 +00:00
Weihang Lo cf9aafe591 [beta] Update cargo
1 commits in 985d561f0bb9b76ec043a2b12511790ec7a2b954..0762e3bbdb6fa64b6859154199ec47d6c90c731c
2023-01-20 14:39:28 +0000 to 2023-01-30 22:07:51 +0000

- [beta-1.68] Backport fixes of split-debuginfo detection (rust-lang/cargo#11649)
2023-01-31 08:33:53 +00:00
bors efd27454ae Auto merge of #107258 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] 1.68 branch

Seems like no pending backports this time around.

r? `@Mark-Simulacrum`
2023-01-25 01:51:56 +00:00
Mark Rousskov c68f5b9eef Set channel to beta 2023-01-24 08:40:18 -05:00
Mark Rousskov b01e890d93 Set version placeholders to 1.68 2023-01-24 08:40:09 -05:00
bors 940d00f2f6 Auto merge of #107185 - compiler-errors:rollup-wkomjma, r=compiler-errors
Rollup of 8 pull requests

Successful merges:

 - #103418 (Add `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` to future-incompat report)
 - #106113 (llvm-wrapper: adapt for LLVM API change)
 - #106144 (Improve the documentation of `black_box`)
 - #106578 (Label closure captures/generator locals that make opaque types recursive)
 - #106749 (Update cc to 1.0.77)
 - #106935 (Fix `SingleUseLifetime` ICE)
 - #107015 (Re-enable building rust-analyzer on riscv64)
 - #107029 (Add new bootstrap members to triagebot.toml)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
2023-01-22 06:53:36 +00:00
Michael Goulet 31f9f21412 Rollup merge of #107029 - albertlarsan68:patch-2, r=Mark-Simulacrum
Add new bootstrap members to triagebot.toml

```@ozkanonur``` if you want to be assigned to review PRs too, just post a message to this thread.

Should a `T-bootstrap` label be created, since `src/tools/tidy` is assigned to the `bootstrap` members, but labeled `A-testsuite` (and not `A-bootstrap`) ?

cc ```@jyn514```
2023-01-21 23:21:02 -05:00
Michael Goulet 1ac117b284 Rollup merge of #107015 - cuviper:ra-riscv64, r=Mark-Simulacrum
Re-enable building rust-analyzer on riscv64

It was disabled in #75103 due to an LLVM bug, but followup comments have
confirmed that it builds fine on Fedora with LLVM 15.

r? ```@Mark-Simulacrum```
cc ```@matklad``` ```@davidlt```
2023-01-21 23:21:01 -05:00
Michael Goulet 8a830cf182 Rollup merge of #106935 - TaKO8Ki:fix-104440, r=cjgillot
Fix `SingleUseLifetime` ICE

Fixes #104440
cc: ``@matthiaskrgr``
2023-01-21 23:21:00 -05:00
Michael Goulet 5645d10f93 Rollup merge of #106749 - glandium:dwarf, r=Mark-Simulacrum
Update cc to 1.0.77

Fixes (without a test) #98746.
2023-01-21 23:21:00 -05:00
Michael Goulet 1d2c9a84fa Rollup merge of #106578 - compiler-errors:recursive-opaque-closure, r=TaKO8Ki
Label closure captures/generator locals that make opaque types recursive

cc https://github.com/rust-lang/rust/issues/46415#issuecomment-1374665828
2023-01-21 23:20:59 -05:00
Michael Goulet d1405c82b8 Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
Improve the documentation of `black_box`

There don't seem to be many great resources on how `black_box` should be used, so I added some information here
2023-01-21 23:20:59 -05:00
Michael Goulet 2504c8d1ee Rollup merge of #106113 - krasimirgg:llvm-16-ext-tyid, r=nikic
llvm-wrapper: adapt for LLVM API change

No functional changes intended.

The LLVM commit https://github.com/llvm/llvm-project/commit/e6b02214c68df2c9f826e02310c9352ac652e456 added `TargetExtTyID` to the `TypeID` enum. This adapts `RustWrapper` accordingly.
2023-01-21 23:20:58 -05:00
Michael Goulet bdcfa6c9aa Rollup merge of #103418 - Aaron1011:macro-semicolon-future-incompat, r=davidtwco
Add `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` to future-incompat report

See https://github.com/rust-lang/rust/issues/79813 for a discussion of this lint. This has been warn-by-default for over a year, so adding it to the future-incompat report should help to find libraries that haven't yet updated.
2023-01-21 23:20:58 -05:00
bors 85da15c016 Auto merge of #107133 - pnkfelix:revert-pr-84022-for-issue-106337, r=Mark-Simulacrum
Revert "Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard error"

This reverts commit 7d82cadd97 aka PR #84022

I am doing this to buy us some time with respect to issue #106337 w.r.t. the 1.67 release.
2023-01-22 03:58:52 +00:00
bors 1c394e1b9a Auto merge of #106948 - cuviper:ci-mingw-check, r=nikic
ci: upgrade mingw-check to ubuntu:22.04
2023-01-21 21:42:21 +00:00
Aaron Hill dc8876196b Add SEMICOLON_IN_EXPRESSIONS_FROM_MACROS to future-incompat report 2023-01-21 14:38:25 -06:00
bors 52372f9c71 Auto merge of #105924 - TimNN:ui-remap, r=Mark-Simulacrum
Remap paths in UI tests by default

If you think this needs further discussions / something RFC-like, please let me know the best forum for that.

This PR runs UI tests with a remapped "src base" directory by default.

Why? Because some UI tests currently depend on the length of the absolute path to the `src/test/ui` directory. Remapping makes the tests independent of the absolute path.

The path to the source file (which is absolute on CI) is part of the type name of closures. `rustc` diagnostic output depends on the length of type names (long type names are truncated). So a long absolute path leads to long closure type names, which leads to truncation and changed diagnostics.

(I initially tried just disabling type name truncation, but that made some error messages stupid long (thousands of characters, IIRC)).

Additional changes:

* All boolean `compiletest` directives now support explicit `no-` versions to disable them.
* Adapt existing tests when necessary:
  * Disable remapping for individual tests that fail with it enabled (when there's no obvious alternative fix).
  * For tests that already check something remapping related switch to the new option unless we gain something significant by keeping the manual remap.

Passed Windows CI in https://github.com/rust-lang/rust/actions/runs/3933100590
2023-01-21 17:44:20 +00:00
bors 005fc0f00f Auto merge of #106977 - michaelwoerister:unord_id_collections, r=oli-obk
Use UnordMap and UnordSet for id collections (DefIdMap, LocalDefIdMap, etc)

This PR changes the `rustc_data_structures::define_id_collections!` macro to use `UnordMap` and `UnordSet` instead of `FxHashMap` and `FxHashSet`. This should account for a large portion of hash-maps being used in places where they can cause trouble.

The changes required are moderate but non-zero:
- In some places the collections are extracted into sorted vecs.
- There are a few instances where for-loops have been changed to extends.

~~Let's see what the performance impact is. With a bit more refactoring, we might be able to get rid of some of the additional sorting -- but the change set is already big enough. Unless there's a performance impact, I'd like to do further changes in subsequent PRs.~~

Performance does not seem to be negatively affected ([perf-run here](https://github.com/rust-lang/rust/pull/106977#issuecomment-1396776699)).

Part of [MCP 533](https://github.com/rust-lang/compiler-team/issues/533).

r? `@ghost`
2023-01-21 14:18:17 +00:00
bors 21f6839352 Auto merge of #106976 - tmiasko:borrowck-lazy-dominators, r=cjgillot
Lazy dominator tree construction in borrowck

Motivated by the observation that sometimes constructed dominator tree was never queried.
2023-01-21 11:02:29 +00:00
bors b22aa57fd5 Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
Simplify `derive(Debug)` output for fieldless enums

Fixes #106875
2023-01-21 07:49:09 +00:00
Michael Goulet 8742fd9c85 Label closure captures/generator locals that make opaque types recursive 2023-01-21 05:49:36 +00:00
bors e098eb17e1 Auto merge of #107143 - compiler-errors:rollup-zabvmo5, r=compiler-errors
Rollup of 9 pull requests

Successful merges:

 - #104154 (Change `bindings_with_variant_name` to deny-by-default)
 - #104347 (diagnostics: suggest changing `s@self::{macro}`@::macro`` for exported)
 - #104672 (Unify stable and unstable sort implementations in same core module)
 - #107048 (check for x version updates)
 - #107061 (Implement some more new solver candidates and fix some bugs)
 - #107095 (rustdoc: remove redundant CSS selector `.sidebar .current`)
 - #107112 (Fix typo in opaque_types.rs)
 - #107124 (fix check macro expansion)
 - #107131 (rustdoc: use CSS inline layout for radio line instead of flexbox)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
2023-01-21 04:19:03 +00:00
Michael Goulet 34d4df5bd5 Rollup merge of #107131 - notriddle:notriddle/rustdoc-radio-display-inline-flex, r=GuillaumeGomez
rustdoc: use CSS inline layout for radio line instead of flexbox

This uses less code to lay them out the same way. Already tested here:

https://github.com/rust-lang/rust/blob/5ce39f42bd2c8bca9c570f0560ebe1fce4eddb14/tests/rustdoc-gui/settings.goml#L123
2023-01-20 21:33:24 -05:00