Commit graph

196690 commits

Author SHA1 Message Date
bors
a55dd71d5f Auto merge of #102018 - pietroalbini:pa-1.64.0, r=pietroalbini
[stable] Prepare 1.64.0 release

This PR prepares the 1.64.0 stable release builds.

In addition to bumping the channel and including the latest release notes changes, this PR also backports the following PRs:

*  #100852
*  #101366
*  #101468
*  #101922

This PR also reverts the following PRs, as decided in https://github.com/rust-lang/rust/issues/101899#issuecomment-1250996783:

* https://github.com/rust-lang/rust/pull/95295
* https://github.com/rust-lang/rust/pull/99136 (followup to the previous PR)

r? `@ghost`
cc `@rust-lang/release`
2022-09-19 14:06:23 +00:00
Pietro Albini
7358a9b03e
remove reverted change from the release notes 2022-09-19 15:18:31 +02:00
Pietro Albini
2ae81ac79c
Revert "Auto merge of #95295 - CAD97:layout-isize, r=scottmcm"
This reverts commit 4ec97d991b, reversing
changes made to 95e77648e4.
2022-09-19 15:18:05 +02:00
Pietro Albini
1d0597c103
Revert "Auto merge of #99136 - CAD97:layout-faster, r=scottmcm"
This reverts commit 87588a2afd, reversing
changes made to c80dde43f9.
2022-09-19 15:17:51 +02:00
Weihang Lo
eaab930aab
[beta] Update cargo
3 commits in 4bcb3c65e440a12044092b85ffea8fac6cb96f42..387270bc7f446d17869c7f208207c73231d6a252
2022-08-17 21:01:34 +0000 to 2022-09-16 20:18:27 +0000

- Beta backport rust-lang/cargo#11082 (rust-lang/cargo#11097)
- [Beta] Run `reach_max_unpack_size` test only on debug build (rust-lang/cargo#11090)
- [beta] Fix for CVE-2022-36113 and CVE-2022-36114 (rust-lang/cargo#11088)
2022-09-19 14:43:41 +02:00
Santiago Pastorino
ef8abd54b6
fix RPIT ICE for implicit HRTB when missing dyn 2022-09-19 14:39:20 +02:00
Chris Denton
c8b25292fa
Restore old behaviour on broken UNC paths 2022-09-19 14:38:40 +02:00
Samyak Sarnayak
f446c4451b
Use getuid to check instead of USER env var in rustbuild
This makes it consistent with `x.py` as changed in #95671

Fixes #100459
2022-09-19 14:35:59 +02:00
Pietro Albini
8e80c0ac7c
backport latest release notes 2022-09-19 14:34:52 +02:00
Pietro Albini
5f543d1866
bump channel to stable 2022-09-19 14:29:04 +02:00
bors
b31188e88b Auto merge of #101808 - flip1995:clippy_backport, r=Mark-Simulacrum
[Beta] Clippy: Fix hang in `vec_init_then_push`

Small Clippy ICE/hang fix backport before beta gets branched. We'd like to get this into stable ASAP. This fix is already in `master` as 15859323ea.
2022-09-16 22:59:31 +00:00
Jason Newcomb
0b3a19a510
Fix hang in vec_init_then_push 2022-09-14 17:04:30 +02:00
bors
25912c0971 Auto merge of #101320 - RalfJung:beta-ctfe-ptr-provenance, r=pnkfelix
beta-backport of provenance-related CTFE changes

This is all part of dealing with https://github.com/rust-lang/rust/issues/99923.

The first commit backports the effects of https://github.com/rust-lang/rust/pull/101101. `@pnkfelix` asked for this and it turned out to be easy, so I think this is uncontroversial.

The second commit effectively repeats https://github.com/rust-lang/rust/pull/99965, which un-does the effects of https://github.com/rust-lang/rust/pull/97684 and therefore means https://github.com/rust-lang/rust/issues/99923 does not apply to the beta branch. I honestly don't think we should do this; the sentiment in https://github.com/rust-lang/rust/issues/99923 was that we should go ahead with the change but improve diagnostics. But `@pnkfelix` seemed to request such a change so I figured I would offer the option.

I'll be on vacation soon, so if you all decide to take the first commit only, then someone please just force-push to this branch and remove the 2nd commit.
2022-09-09 11:58:09 +00:00
Ralf Jung
c7f8e68194 CTFE: more informative error message on ReadPointerAsBytes trouble 2022-09-02 12:47:45 +02:00
bors
1ec9b66a12 Auto merge of #101050 - pnkfelix:revert-mir-inline-policy-for-beta-1.64, r=compiler-errors
revert mir inlining policy for beta-1.64

revert mir inlining policy for beta-1.64

Fix #101004
2022-08-31 15:25:57 +00:00
bors
4497ac937c Auto merge of #101221 - ehuss:update-beta-cargo, r=ehuss
[BETA] Beta 1.64 backports

* Cargo:
    * remove missed reference to workspace inheritance in unstable.md (rust-lang/cargo#11002)
* Delay formatting trimmed path until lint/error is emitted #99893
* Use `node_type_opt` to skip over generics that were not expected #100155
* Revert "Remove a back-compat hack on lazy TAIT #97346" #99860
2022-08-31 05:06:04 +00:00
bors
cff90fee12 Auto merge of #99860 - oli-obk:revert_97346, r=pnkfelix
Revert "Rollup merge of #97346 - JohnTitor:remove-back-compat-hacks, …

…r=oli-obk"

This reverts commit c703d11dcc, reversing
changes made to 64eb9ab869.

it didn't apply cleanly, so now it works the same for RPIT and for TAIT instead of just working for RPIT, but we should keep those in sync anyway. It also exposed a TAIT bug (see the feature gated test that now ICEs).

r? `@pnkfelix`

fixes #99536
2022-08-30 17:03:59 -07:00
Dylan DPC
116e19f863 Rollup merge of #100155 - compiler-errors:issue-100154, r=jackh726
Use `node_type_opt` to skip over generics that were not expected

Fixes #100154
2022-08-30 17:02:49 -07:00
bors
b4b39cd970 Auto merge of #99893 - compiler-errors:issue-99387, r=davidtwco
Delay formatting trimmed path until lint/error is emitted

Fixes #99387

r? `@davidtwco`
2022-08-30 17:02:19 -07:00
Eric Huss
3b1c95d207 [beta] Update cargo 2022-08-30 16:51:29 -07:00
Felix S. Klock II
2f9670349d regression tests for problems that are exposed by mir-inlining policy that we are reverting for 1.64-beta. 2022-08-29 17:45:02 -04:00
Felix S. Klock II
2741dd81ad ignore std/test/codegen/mem-replace-direct-memcpy.rs in the 1.64-beta. 2022-08-26 14:20:38 -04:00
Felix S. Klock II
63bb951914 revert mir inlining policy for beta-1.64 to resolve issue #101004. 2022-08-26 12:18:26 -04:00
bors
82bf34178f Auto merge of #100538 - Nilstrieb:revert-let-chains-beta, r=compiler-errors
Revert let_chains stabilization

This reverts commit 3266460749.

It was discovered in #100513 that they are not implemented correctly, which does not make them ready for stabilization.

The merge in the let parsing had a few conflicts, cc `@compiler-errors` and `@c410-f3r` to make sure I did it correctly (alternatively I could also revert `@compiler-errors'` let diagnostic improvement PR as well if a simpler revert is desired).

r? `@Mark-Simulacrum`
2022-08-18 18:24:33 +00:00
Nilstrieb
11a367a7c0 Revert let_chains stabilization
This reverts commit 3266460749.

It was discovered that they are not implemented correctly, which
does not make them ready for stabilization.
2022-08-15 09:05:24 +02:00
bors
fb2194acc4 Auto merge of #100412 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
Rollup of beta backports

This rolls up bumping stage0 to released stable and:

* Iterate generics_def_id_map in reverse order to fix P-critical issue #100340
*  [BETA 1.64] Only override published resolver when the workspace is different rust-lang/cargo#10970

r? `@Mark-Simulacrum`
2022-08-14 09:26:02 +00:00
Mark Rousskov
8ae6300824 Update cargo to include rust-lang/cargo#10970 2022-08-11 18:40:33 -04:00
Santiago Pastorino
c8da3d4fc7 Add docs for get_remapped_def_id 2022-08-11 11:06:25 -04:00
Santiago Pastorino
babe5a0c67 Iterate def_ids map backwards to try first the latest mappings (it's a stack) 2022-08-11 11:06:25 -04:00
Santiago Pastorino
7a51fa4d2f Add regression test for issue 100187 2022-08-11 11:06:25 -04:00
Mark Rousskov
444156e2d0 Bump to released stable 2022-08-11 11:05:18 -04:00
bors
56714e5332 Auto merge of #100274 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] 1.64.0 branching

Includes cherry picks of:

* https://github.com/rust-lang/rust/pull/100207
* https://github.com/rust-lang/rust-clippy/pull/9302
* rust-lang/rust@49b190466c (explicit_auto_deref into nursery)
*  Avoid ICE in rustdoc when using Fn bounds #100205

r? `@Mark-Simulacrum`
2022-08-09 01:34:32 +00:00
Noah Lev
275ad6bef7 Add regression test comment 2022-08-08 17:50:31 -04:00
Camille GILLOT
f4fb94ab02 Synthetize a trait ref when none is available. 2022-08-08 17:50:31 -04:00
Camille GILLOT
7c45c50719 Avoid ICE in rustdoc. 2022-08-08 17:50:31 -04:00
Philipp Krones
903561fc7a Put explicit_auto_deref into nursery 2022-08-08 15:11:24 -04:00
Mark Rousskov
cbf9902845 Enable RUSTC_BOOTSTRAP for a few steps 2022-08-08 10:27:12 -04:00
Michael Howell
e59768898c rustdoc: do not mark the contents of a skipped module as inlined 2022-08-08 08:32:15 -04:00
Jason Newcomb
0281ea48ec Move significant_drop_in_scrutinee into nursey 2022-08-08 08:32:12 -04:00
Mark Rousskov
1d09f2c9dc Switch channel to beta 2022-08-08 08:32:07 -04:00
bors
9bbbf60b04 Auto merge of #95977 - FabianWolff:issue-92790-dead-tuple, r=estebank
Warn about dead tuple struct fields

Continuation of #92972. Fixes #92790.

The language team has already commented on this in https://github.com/rust-lang/rust/pull/92972#issuecomment-1021511970; I have incorporated their requests here. Specifically, there is now a new allow-by-default `unused_tuple_struct_fields` lint (name bikesheddable), and fields of unit type are ignored (https://github.com/rust-lang/rust/pull/92972#issuecomment-1021815408), so error messages look like this:
```
error: field is never read: `1`
  --> $DIR/tuple-struct-field.rs:6:21
   |
LL | struct Wrapper(i32, [u8; LEN], String);
   |                     ^^^^^^^^^
   |
help: change the field to unit type to suppress this warning while preserving the field numbering
   |
LL | struct Wrapper(i32, (), String);
   |                     ~~
```
r? `@joshtriplett`
2022-08-05 09:32:26 +00:00
bors
cdfd675a63 Auto merge of #99867 - spastorino:refactor-remap-lifetimes, r=nikomatsakis
Split create_def and lowering of lifetimes for opaque types and bare async fns

r? `@cjgillot`

This work is kind of half-way, but I think it could be merged anyway.
I think we should be able to remove all the vacant arms in `new_named_lifetime_with_res`, if I'm not wrong that requires visiting more nodes. We can do that as a follow up.
In follow-up PRs, besides the thing mentioned previously, I'll be trying to remove `LifetimeCaptureContext`, `captured_lifetimes` as a global data structure, global `binders_to_ignore` and all their friends :).

Also try to remap in a more general way based on def-ids.
2022-08-05 06:35:12 +00:00
bors
6bcf01afdb Auto merge of #97085 - rylev:test-issue-33172, r=wesleywiser
Add a test for issue #33172

Adds a test confirming that #33172 has been fixed.

CDB has some surprising results as it looks like the supposedly unmangled static's symbol name is prefixed when it shouldn't be.

r? `@wesleywiser`

Closes #33172
2022-08-05 03:26:47 +00:00
bors
2da8820470 Auto merge of #95026 - cuviper:bump-linux-min, r=Mark-Simulacrum
Increase the minimum linux-gnu versions

This is implementing the MCP from rust-lang/compiler-team#493. It is
increasing the minimum requirements of a couple Tier 1 targets, and
others at lower tiers, so this should go through FCP sign-offs for both
`T-compiler` and `T-release`.

The new `linux-gnu` baseline is kernel 3.2 and glibc 2.17. We will also
take that kernel as the minimum floor for _all_ `*-linux-*` targets, so
it may be broadly assumed in the implementation of the standard library.
That does not preclude specific targets from having greater requirements
where it makes sense, like a new arch needing something newer, or a
platform like `linux-android` choosing a newer baseline.
2022-08-04 23:56:07 +00:00
Josh Stone
a8c12c7458 Link /rustroot/lib stuff for clang -m32 to see 2022-08-04 16:25:01 -07:00
bors
f6f9d5e73d Auto merge of #100151 - matthiaskrgr:rollup-irqwvj2, r=matthiaskrgr
Rollup of 7 pull requests

Successful merges:

 - #98796 (Do not exclusively suggest `;` when `,` is also a choice)
 - #99772 (Re-enable submodule archive downloads.)
 - #100058 (Suggest a positional formatting argument instead of a captured argument)
 - #100093 (Enable unused_parens for match arms)
 - #100095 (More EarlyBinder cleanups)
 - #100138 (Remove more Clean trait implementations)
 - #100148 (RustWrapper: update for TypedPointerType in LLVM)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
2022-08-04 21:03:48 +00:00
Matthias Krüger
c2d7321a2d
Rollup merge of #100148 - durin42:llvm-16-pointertype, r=nikic
RustWrapper: update for TypedPointerType in LLVM

This is a result of https://reviews.llvm.org/D130592.

r? `@nikic`
2022-08-04 22:25:06 +02:00
Matthias Krüger
60d83e732b
Rollup merge of #100138 - GuillaumeGomez:rm-clean-impls, r=notriddle
Remove more Clean trait implementations

Follow-up of https://github.com/rust-lang/rust/pull/99638.

r? `@notriddle`
2022-08-04 22:25:05 +02:00
Matthias Krüger
01ccde5ec8
Rollup merge of #100095 - jackh726:early-binder, r=lcnr
More EarlyBinder cleanups

Each commit is independent

r? types
2022-08-04 22:25:04 +02:00
Matthias Krüger
6b938c8491
Rollup merge of #100093 - wcampbell0x2a:unused-parens-for-match-arms, r=petrochenkov
Enable unused_parens for match arms

Fixes: https://github.com/rust-lang/rust/issues/92751

Currently I can't get the `stderr` to work with `./x.py test`, but this should fix the issue. Help would be appreciated!
2022-08-04 22:25:02 +02:00