Commit graph

232366 commits

Author SHA1 Message Date
bors
cc66ad4689 Auto merge of #116364 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] 1.73.0 release

Still needs a clippy backport (https://github.com/rust-lang/rust-clippy/pull/11596).

r? `@Mark-Simulacrum`
2023-10-03 02:49:44 +00:00
Mark Rousskov
d3f6573c12 Backport https://github.com/rust-lang/rust-clippy/pull/11596 2023-10-02 20:12:13 -04:00
Mark Rousskov
6ad39e54c9 Add release notes & bump channel 2023-10-02 19:16:29 -04:00
bors
2ce543cc5a Auto merge of #116279 - cuviper:beta-next, r=cuviper
[beta] backports

- Only prevent field projections into opaque types, not types containing opaque types #116156
- Update LLVM submodule #116227

r? cuviper
2023-09-29 22:18:14 +00:00
Nikita Popov
a544df1529 Update LLVM submodule
(cherry picked from commit b325e9c60d)
2023-09-29 14:55:09 -07:00
Oli Scherer
4620e74fbb Only prevent field projections into opaque types, not types containing opaque types
(cherry picked from commit 17b313fb57)
2023-09-29 14:55:09 -07:00
bors
975e63fed9 Auto merge of #115819 - oli-obk:try_destructure_mir_constant_for_diagnostics_strikes_again, r=oli-obk
Expose try_destructure_mir_constant_for_diagnostics directly to clippy

Otherwise clippy tries to use the query in ways that incremental caching will inevitably cause problems with.

Hopefully gets rid of https://github.com/rust-lang/rust/issues/83085 for good
2023-09-29 17:51:53 +00:00
Oli Scherer
af9328cd8e Move to older, mirrored redox install and to newer ubuntu 2023-09-29 15:59:57 +00:00
Michael Goulet
f425b5792e Fix jq in CI 2023-09-29 15:20:29 +00:00
Oli Scherer
b76caa1a08 Expose try_destructure_mir_constant_for_diagnostics directly to clippy
Otherwise clippy tries to use the query in ways that incremental caching will inevitably cause problems with.
2023-09-28 14:12:51 +00:00
bors
7c76587edc Auto merge of #116044 - cuviper:beta-next, r=cuviper
[beta] backports

-  Fix a pthread_t handle leak #114696
-  MCP661: Move wasm32-wasi-preview1-threads target to Tier 2 #115345
-  Don't modify libstd to dump rustc ICEs #115627
-  Paper over an accidental regression #115844
-  Update to LLVM 17.0.0 #115959

r? cuviper
2023-09-22 02:36:40 +00:00
Nikita Popov
fff45e9d2b Update to LLVM 17.0.0
This rebases our LLVM fork to 17.0.0.

Fixes #115681.

(cherry picked from commit 531830cecd)
2023-09-21 16:35:54 -07:00
Oli Scherer
045efe185b Paper over an accidental regression
(cherry picked from commit 0277184977)
2023-09-21 16:18:30 -07:00
Michael Goulet
cadecc207d Make ICE backtrace actually match the panic handler
(cherry picked from commit b59480784d)
2023-09-21 16:18:16 -07:00
Michael Goulet
5d064f2b1b Don't modify libstd to dump rustc ICEs
(cherry picked from commit 8ad2379407)
2023-09-21 16:18:16 -07:00
Georgii Rylov
dba7025135 MCP661: Move wasm32-wasi-preview1-threads to Tier2
(cherry picked from commit ac76882bf3)
2023-09-21 16:17:50 -07:00
Georgii Rylov
339665e750 address comments
(cherry picked from commit 9b00e5f06f)
2023-09-21 16:11:42 -07:00
Georgii Rylov
7a2e8ddfb8 Fix a pthread_t handle leak #114610
(cherry picked from commit 42a708083a)
2023-09-21 16:11:42 -07:00
bors
9b95397915 Auto merge of #115901 - Mark-Simulacrum:beta-backport, r=Mark-Simulacrum
[beta] backport

This PR backports:

- #115785: Only suggest turbofish in patterns if we may recover
- #115527: Don't require `Drop` for `[PhantomData<T>; N]` where `N` and `T` are generic, if `T` requires `Drop`
- #115389: fix(resolve): update def if binding is warning ambiguity
- #115215: Remove assert that checks type equality

r? `@Mark-Simulacrum`
2023-09-17 03:35:18 +00:00
ouz-a
028f3407af Remove assert that checks type equality 2023-09-16 17:55:08 -04:00
bohan
82f6044d45 fix(resolve): update def if binding is warning ambiguity 2023-09-16 17:55:01 -04:00
Oli Scherer
9a545c58b4 Don't require Drop for [PhantomData<T>; N] where N and T are generic, if T requires Drop 2023-09-16 17:54:55 -04:00
León Orell Valerian Liehr
f11aa34f39 Only suggest turbofish in patterns if we may recover 2023-09-16 17:54:48 -04:00
bors
ea9959354a Auto merge of #115722 - Mark-Simulacrum:beta-backport, r=Mark-Simulacrum
[beta] backport

This PR backports:
- #115559: implied bounds: do not ICE on unconstrained region vars
- #115446: fix version for abi_thiscall to 1.73.0, which was forgotten to change when stabilized and (later) moved to beta
- #115276: rustdoc: correctly deal with self ty params when eliding default object lifetimes

r? `@Mark-Simulacrum`
2023-09-09 23:34:51 +00:00
León Orell Valerian Liehr
309468c30d rustdoc: correctly deal with self ty params when eliding default object lifetimes 2023-09-09 19:04:20 -04:00
klensy
c08cfb814b fix version for abi_thiscall to 1.73.0, which was forgotten to change when stabilized 2023-09-09 19:04:07 -04:00
lcnr
c14b2b69b9 unconstrained region vars: do not ICE ICE baby 2023-09-09 19:03:56 -04:00
bors
9f37cd4f79 Auto merge of #115442 - cuviper:beta-next, r=cuviper
[beta] backports

- Contents of reachable statics is reachable #115114
- Revert "Suggest using `Arc` on `!Send`/`!Sync` types" #115311
- Stop emitting non-power-of-two vectors in (non-portable-SIMD) codegen #115236
- Do not forget to pass DWARF fragment information to LLVM. #115139
- rustdoc: use unicode-aware checks for redundant explicit link fastpath #115070

r? cuviper
2023-09-01 17:46:33 +00:00
Michael Howell
20ddd452b8 rustdoc: use unicode-aware checks for redundant explicit link fastpath
Fixes #115064

(cherry picked from commit 3df9b4d65d)
2023-09-01 08:52:07 -07:00
Camille GILLOT
5e8dc078e4 Restrict test to x86_64.
(cherry picked from commit 5529e2f893)
2023-09-01 08:51:52 -07:00
Camille GILLOT
5d2b78ba08 Do not produce fragment for ZST.
(cherry picked from commit 930b2e72ee)
2023-09-01 08:51:52 -07:00
Camille GILLOT
b6e160eaa0 Add test with non-ZST.
(cherry picked from commit f49494ecce)
2023-09-01 08:51:52 -07:00
Camille GILLOT
85e1b4ec10 Do not forget to pass DWARF fragment information to LLVM.
(cherry picked from commit b3bbc22cb7)
2023-09-01 08:51:52 -07:00
Scott McMurray
29c9ed9bb2 Stop emitting non-power-of-two vectors in basic LLVM codegen
(cherry picked from commit 84e305dd93)
2023-09-01 08:51:29 -07:00
David Tolnay
0679b95ee6 Revert "Suggest using Arc on !Send/!Sync types"
This reverts commit 9de1a472b6.

(cherry picked from commit 823bacb6e3)
2023-08-30 14:34:04 -07:00
Tomasz Miąsko
4469dbe13a Contents of reachable statics is reachable
(cherry picked from commit 0383131f7f)
2023-08-30 14:33:15 -07:00
bors
bc28abf92e Auto merge of #115282 - weihanglo:update-beta-cargo, r=weihanglo
[beta-1.73] Update cargo

1 commits in 80eca0e58fb2ff52c1e94fc191b55b37ed73e0e4..9c4383fb55986096b414d98125421ab87b5fd642
2023-08-19 00:52:06 +0000 to 2023-08-26 16:07:09 +0000
- [beta-1.73.0] add missing `windows-sys` features back (rust-lang/cargo#12564)

r? ghost
2023-08-27 21:23:11 +00:00
Weihang Lo
b3a82e9ee8
[beta-1.73] Update cargo 2023-08-27 18:18:28 +01:00
bors
ba87e4d0cc Auto merge of #115195 - cuviper:beta-next, r=cuviper
[beta] backport and stage0 bump

- Bump to released stable compiler
- Add projection obligations when comparing impl too #115039

r? cuviper
2023-08-25 05:15:11 +00:00
Jack Huey
dc84bdedc6 Add projection obligations when comparing impl too
(cherry picked from commit 31032ecb15)
2023-08-24 18:42:29 -07:00
Josh Stone
b73a4b4b84 Bump to released stable compiler 2023-08-24 18:42:14 -07:00
bors
680cdf8168 Auto merge of #115056 - Mark-Simulacrum:beta-backport, r=Mark-Simulacrum
[beta] promote 1.73.0 to beta

* Bump version placeholder
* Bump CI channel to beta

r? `@Mark-Simulacrum`
2023-08-21 17:42:11 +00:00
Mark Rousskov
daa6ebe8b7 Bump channel to beta 2023-08-21 09:13:01 -04:00
Mark Rousskov
486dedd595 Replace version placeholders with 1.73.0 2023-08-21 09:12:15 -04:00
bors
b053db25cc Auto merge of #114563 - Mark-Simulacrum:relnotes, r=Mark-Simulacrum
Add release notes for 1.72.0

r? `@cuviper` `@rust-lang/release`
2023-08-20 18:09:59 +00:00
bors
def52ba2b8 Auto merge of #115024 - RalfJung:anyhow, r=lqd
update anyhow

This is the anyhow version of https://github.com/rust-lang/rust/pull/114944, fixing Miri builds with an existing x.py cache by including https://github.com/dtolnay/anyhow/pull/320.

r? `@lqd`
2023-08-20 16:21:23 +00:00
Ralf Jung
83283a437e update anyhow 2023-08-20 15:55:33 +02:00
bors
0510a1526d Auto merge of #114791 - Zalathar:bcb-counter, r=cjgillot
coverage: Give the instrumentor its own counter type, separate from MIR

Within the MIR representation of coverage data, `CoverageKind` is an important part of `StatementKind::Coverage`, but the `InstrumentCoverage` pass also uses it heavily as an internal data structure. This means that any change to `CoverageKind` also needs to update all of the internal parts of `InstrumentCoverage` that manipulate it directly, making the MIR representation difficult to modify.

---

This change fixes that by giving the instrumentor its own `BcbCounter` type for internal use, which is then converted to a `CoverageKind` when injecting coverage information into MIR.

The main change is mostly mechanical, because the initial `BcbCounter` is drop-in compatible with `CoverageKind`, minus the unnecessary `CoverageKind::Unreachable` variant.

I've then removed the `function_source_hash` field from `BcbCounter::Counter`, as a small example of how the two types can now usefully differ from each other. Every counter in a MIR-level function should have the same source hash, so we can supply the hash during the conversion to `CoverageKind::Counter` instead.

---

*Background:* BCB stands for “basic coverage block”, which is a node in the simplified control-flow graph used by coverage instrumentation. The instrumentor pass uses the function's actual MIR control-flow graph to build a simplified BCB graph, then assigns coverage counters and counter expressions to various nodes/edges in that simplified graph, and then finally injects corresponding coverage information into the underlying MIR.
2023-08-20 13:37:47 +00:00
bors
c0b6ffaaea Auto merge of #114990 - Zoxc:else-if-overflow, r=cjgillot
Fix a stack overflow with long else if chains

This fixes stack overflows when running the `issue-74564-if-expr-stack-overflow.rs` test with the parallel compiler.
2023-08-20 11:48:37 +00:00
bors
ff55fa3026 Auto merge of #113124 - nbdd0121:eh_frame, r=cjgillot
Add MIR validation for unwind out from nounwind functions + fixes to make validation pass

`@Nilstrieb`  This is the MIR validation you asked in https://github.com/rust-lang/rust/pull/112403#discussion_r1222739722.

Two passes need to be fixed to get the validation to pass:
* `RemoveNoopLandingPads` currently unconditionally introduce a resume block (even there is none to begin with!), changed to not do that
* Generator state transform introduces a `assert` which may unwind, and its drop elaboration also introduces many new `UnwindAction`s, so in this case run the AbortUnwindingCalls after the transformation.

I believe this PR should also fix Rust-for-Linux/linux#1016, cc `@ojeda`

r? `@Nilstrieb`
2023-08-20 09:58:52 +00:00