Commit graph

218668 commits

Author SHA1 Message Date
bors
84c898d65a Auto merge of #110413 - pietroalbini:pa-1.69.0-stable, r=pietroalbini
[stable] Prepare Rust 1.69.0

Last minute backports:

*  #109643
* #110135
* #109938
* #109937
* #109266

This PR also bumps the channel to stable, and backports the release notes from master.

r? `@ghost`
cc `@rust-lang/release`
2023-04-16 21:37:51 +00:00
Pietro Albini
c2c413f56e
backport release notes 2023-04-16 16:27:57 +02:00
Pietro Albini
bf08baf303
bump to stable 2023-04-16 16:27:37 +02:00
Vadim Petrochenkov
71144f9308
rustdoc: Correctly merge import's and its target's docs in one more case 2023-04-16 16:27:21 +02:00
Michael Goulet
e54276fed0
Don't collect return-position impl traits for documentation 2023-04-16 16:27:06 +02:00
Oli Scherer
7894a90331
Move a const-prop-lint specific hack from mir interpret to const-prop-lint and make it fallible 2023-04-16 16:26:46 +02:00
Michael Goulet
6ed03e8924
Revert "Don't recover lifetimes/labels containing emojis as character literals"
Reverts PR #108031
Fixes (doesnt close until beta backported) #109746

This reverts commit e3f9db5fc3.
This reverts commit 98b82aedba.
This reverts commit 380fa26413.
2023-04-16 16:26:35 +02:00
Nikita Popov
b524c6277f
Limit to one job on mingw builders
This is another attempt to work around
https://github.com/rust-lang/rust/issues/108227.

By limiting to one link job, we should be able to avoid file name
clashes in mkstemp().
2023-04-16 16:26:20 +02:00
bors
f18236dcd3 Auto merge of #110273 - flip1995:beta-backport, r=Manishearth
[beta] Clippy: backport optimization and ICE fixes

The first commit optimizes a lint, that runs noticeably slow and is a perf issue. See https://github.com/rust-lang/rust-clippy/pull/10533

The second commit fixes an ICE that occurred when running Clippy on `gitoxide` besides others. Since this is a rather popular crate, we want to fix this rather sooner than later. See https://github.com/rust-lang/rust-clippy/pull/10403

---

Both commits are already on `master` and deployed on `nightly`.
2023-04-13 16:42:42 +00:00
Samuel Moelius
a615440643
Handle ambiguous projections 2023-04-13 11:18:44 +02:00
Nilstrieb
d0ae7cf62d
Cache has_sig_drop_attr for significant_drop_tightening
The lint is very slow as it doesn't cache the deeply nested check for
the attribute. If we cache it, we can reduce the time spent on checking
`rustc_borrowck` from 28s to 9s, which is a nice improvement. In the
profile, the time inside `has_sig_drop_attr` goes from 66% to 0.2%,
which is a lot more reasonable.

See the PR for nice graphs.
2023-04-13 10:29:05 +02:00
bors
831d7c99d8 Auto merge of #110236 - weihanglo:update-beta-cargo, r=weihanglo
[beta-1.69] cargo backport

1 commits in 713164a40962a0a76c7f3ad8aafb6f03410e21d2..6e9a83356b70586d4b77613a6b33f9ea067b9cdf
2023-03-26 20:05:25 +0000 to 2023-04-12 10:18:25 +0000
- [beta 1.69] Change -C to be unstable (rust-lang/cargo#11961)

r? `@ghost`
2023-04-12 15:03:54 +00:00
Weihang Lo
9d6834e625
[beta-1.69] cargo backport 2023-04-12 14:22:19 +01:00
bors
6a97551bcb Auto merge of #109741 - Mark-Simulacrum:beta-backport, r=Mark-Simulacrum
[beta] backport

This PR backports:

- #109332: Move us to the new large runners pool
- #109156: Fix linker detection for clang with prefix
- #109111: Create dirs for build_triple
- #109094: Revert "enable ThinLTO for rustc on x86_64-pc-windows-msvc dist builds"

Also bumps us to the latest released stable, 1.68.2.

r? `@Mark-Simulacrum`
2023-04-02 18:46:16 +00:00
bors
734f69d95f Auto merge of #109817 - oli-obk:revert_102245, r=pnkfelix
Revert 102245

reverts #102245, but only on beta, as that caused #109543 which has since been fixed on nightly.

This needed an additional partial revert of 5b08c9f397 for changes that happened due to later cleanups.

I also added a test from the issue to make sure this actually fixes it 😆

r? `@wesleywiser` `@pnkfelix`
2023-03-31 14:15:35 +00:00
Oli Scherer
7d891166f9 Add regression test 2023-03-31 14:01:48 +00:00
Oli Scherer
de08218f24 Partially revert 5b08c9f397 2023-03-31 13:51:17 +00:00
Oli Scherer
d02cab1e18 Revert "Constify cmp_min_max_by"
This reverts commit 2e7a201d2e.
2023-03-31 13:16:58 +00:00
Mark Rousskov
765ee79408 Bump bootstrap to 1.68.2 2023-03-29 17:59:58 -06:00
Nilstrieb
0566f06b93 Revert "enable ThinLTO for rustc on x86_64-pc-windows-msvc dist builds"
This lead to a miscompilation in at least `char::is_whitespace` and
probably in more unknown places.....

This reverts commit 684663ed38.
2023-03-29 17:58:15 -06:00
Mu001999
fed7de4b37 Create dir for build_triple 2023-03-29 17:57:58 -06:00
Taiki Endo
4558c70844 Fix linker detection for clang with prefix 2023-03-29 17:57:45 -06:00
Mark Rousskov
1ecd9ad05a Move us to the new large runners pool
For now this keeps all the configuration identical (AFAICT) but we'll
likely want to play with the specifics to move some of the slower
builders to larger machines and the faster builders to smaller machines,
likely reducing overall usage and improving CI times.
2023-03-29 17:56:53 -06:00
bors
6664087f2d Auto merge of #109653 - weihanglo:beta-1.69-backport, r=weihanglo
[beta-1.69-cargo] Backport GitHub RSA key revocation

1 commits in 7b18c85808a6b45ec8364bf730617b6f13e0f9f8..713164a40962a0a76c7f3ad8aafb6f03410e21d2
2023-03-17 12:29:33 +0000 to 2023-03-26 20:05:25 +0000
- [beta] Backport GitHub RSA key revocation (rust-lang/cargo#11892)
2023-03-27 16:44:24 +00:00
Weihang Lo
a4ca7208bc
[beta-1.69] Backport GitHub RSA key revocation 2023-03-27 10:36:15 +08:00
bors
bdd077d5d7 Auto merge of #109265 - weihanglo:update-beta-cargo, r=weihanglo
[beta-1.69] cargo beta backports

3 commits in 9880b408a3af50c08fab3dbf4aa2a972df71e951..7b18c85808a6b45ec8364bf730617b6f13e0f9f8
2023-02-28 19:39:39 +0000 to 2023-03-17 12:29:33 +0000
- [beta-1.69] backport rust-lang/cargo#11824 (rust-lang/cargo#11863)
- [beta-1.69] backport rust-lang/cargo#11820 (rust-lang/cargo#11823)
- chore: Backport rust-lang/cargo#11630 to `1.69.0` (rust-lang/cargo#11806)

r? `@ghost`
2023-03-19 07:16:42 +00:00
Weihang Lo
5749c835f3
[beta] Update cargo 2023-03-17 14:08:46 +00:00
bors
2602aa81a8 Auto merge of #109033 - Mark-Simulacrum:beta-backport, r=Mark-Simulacrum
[beta] backport

This PR backports:

- #108901: fix: evaluate with wrong obligation stack
- #108754: Retry `pred_known_to_hold_modulo_regions` with fulfillment if ambiguous
- #108691: fix multiple issues when promoting type-test subject

It also bumps to the released stable.

r? `@Mark-Simulacrum`
2023-03-17 04:40:43 +00:00
Josh Stone
a9f609f5fe ci: use apt install --download-only for solaris debs 2023-03-16 11:31:16 -04:00
Ali MJ Al-Nasrawy
7bb904b39a tweak debug output and bless tests 2023-03-11 18:10:26 -05:00
Ali MJ Al-Nasrawy
fa860984ba tweak ClosureOutlivesSubjectTy 2023-03-11 18:10:26 -05:00
Ali MJ Al-Nasrawy
8aa48af662 ignore bivariant regions in opaque types 2023-03-11 18:10:26 -05:00
Ali MJ Al-Nasrawy
7dae2cb10f smarter algorithm for finding an equal region
Smarter and simpler!
2023-03-11 18:10:26 -05:00
Ali MJ Al-Nasrawy
668ae05cd4 promote subject even if it has unnamed regions
Don't require a region to have an `external_name` in order to be
promoted.
2023-03-11 18:10:26 -05:00
Ali MJ Al-Nasrawy
c44042d396 add known-bug tests 2023-03-11 18:10:26 -05:00
Michael Goulet
47f222f08a Retry pred_known_to_hold_modulo_regions with fulfillment if ambiguous 2023-03-11 18:10:07 -05:00
yifei
42cebe2df5 fix: evaluate with wrong obligation stack 2023-03-11 18:09:31 -05:00
Mark Rousskov
31a9380e9e Bump to released stable 2023-03-11 13:46:17 -05:00
bors
b955c8271d Auto merge of #108817 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] Promote 1.69.0 nightly to beta

This bumps version placeholders and switches the CI channel.

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

r? `@Mark-Simulacrum`
2023-03-06 18:57:27 +00:00
Mark Rousskov
fa55a46366 Bump channel to beta 2023-03-06 09:38:44 -05:00
Mark Rousskov
da74c7da21 Bump version placeholders 2023-03-06 09:38:31 -05:00
bors
b1719530f4 Auto merge of #108692 - nnethercote:dont-call-temporary_scope-twice, r=cjgillot
Don't call `temporary_scope` twice.

`mirror_expr_inner` calls `temporary_scope`. It then calls `make_mirror_unadjusted` which makes an identical call to `temporary_scope`.

This commit changes the `mirror_expr_inner` to get the `temp_lifetime` out of the expression produced by `make_mirror_unadjusted`, similar to how it currently gets the type.

r? `@cjgillot`
2023-03-04 15:10:04 +00:00
bors
276b75a843 Auto merge of #108732 - Dylan-DPC:rollup-dy1l8sx, r=Dylan-DPC
Rollup of 6 pull requests

Successful merges:

 - #108298 (Fix ICE: check if snippet is `)`)
 - #108405 (Lazily compute crate name for consider_optimizing)
 - #108656 (Rustdoc search: Emit an error for unclosed generic)
 - #108660 (Remove ne implementations from strings)
 - #108669 (Allow checking whether a type allows being uninitialized)
 - #108727 (rustc_expand: make proc-macro derive error translatable)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
2023-03-04 11:44:02 +00:00
Dylan DPC
0965c7e0a9
Rollup merge of #108727 - tshepang:example-translatable-diagnostic, r=Nilstrieb
rustc_expand: make proc-macro derive error translatable

kept this tiny so as to point to it as an example in rustc-dev-guide

`@rustbot` label +A-translation
2023-03-04 15:24:40 +05:30
Dylan DPC
6ce78a31d8
Rollup merge of #108669 - Nilstrieb:query-my-uninitness, r=compiler-errors
Allow checking whether a type allows being uninitialized

This is useful for clippy ([rust-lang/clippy#10407](https://github.com/rust-lang/rust-clippy/issues/10407)) and for the future `MaybeUninit::assume_init` panics (#100423).
2023-03-04 15:24:39 +05:30
Dylan DPC
e700d02374
Rollup merge of #108660 - xfix:remove-ne-method-from-str, r=thomcc
Remove ne implementations from strings

As far as I can tell, there isn't really a reason for those.
2023-03-04 15:24:39 +05:30
Dylan DPC
2fc4935cdb
Rollup merge of #108656 - GuillaumeGomez:rustdoc-search-unclosed-generic, r=notriddle
Rustdoc search: Emit an error for unclosed generic

Now, search like `a<` will error as it should (and as written in the eBNF).

r? `@notriddle`
2023-03-04 15:24:38 +05:30
Dylan DPC
832dab3798
Rollup merge of #108405 - Nilstrieb:lazy-crate-name-optimization-fuel, r=WaffleLapkin
Lazily compute crate name for consider_optimizing

The extra query is unnecessary in the common case of not having fuel.
2023-03-04 15:24:37 +05:30
Dylan DPC
035aa2816a
Rollup merge of #108298 - TaKO8Ki:fix-104440, r=cjgillot
Fix ICE: check if snippet is `)`

Fixes #107705
2023-03-04 15:24:37 +05:30
bors
01b7a6a9ea Auto merge of #108689 - compiler-errors:normalization-error-smaller, r=lcnr
Remove `NormalizationError::ConstantKind`

No longer in use by `TryNormalizeAfterErasingRegionsFolder` (as of #102355 / e8150fa60c it seems). It's making `LayoutError`, etc. kinda large -- that was noticed by `@zoxc.`
2023-03-04 09:03:23 +00:00