212288 Commits

Author SHA1 Message Date
bors fc594f1566 Auto merge of #107260 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] 1.67.0 release

No end of cycle backports this time.

r? `@Mark-Simulacrum`
1.67.0
2023-01-24 23:11:13 +00:00
Mark Rousskov 336198867c 1.67.0 release 2023-01-24 08:46:46 -05:00
bors 2276448926 Auto merge of #107164 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backport

*  Don't wf-check non-local RPITs #107038
* Revert "Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard error" #107133
* bump bootstrap 1.66.1

r? `@Mark-Simulacrum`
2023-01-22 01:12:59 +00:00
Mark Rousskov e9de5a67a7 Bump bootstrap to 1.66.1 2023-01-21 14:20:34 -05:00
Mark Rousskov 31fda7d083 Revert "Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard error"
This reverts commit 7d82cadd97.
2023-01-21 14:20:34 -05:00
Michael Goulet a0f0a5f411 Conditionally encode boolean 2023-01-21 14:20:34 -05:00
Michael Goulet 4432930f23 Add test 2023-01-21 14:20:34 -05:00
Michael Goulet 62ed577fd9 Encode whether foreign opaques are TAITs or not 2023-01-21 14:20:34 -05:00
bors b7a6d74d7a Auto merge of #107071 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backport rollup

* Revert "Make nested RPITIT inherit the parent opaque's generics." #106759
*  Fix mpsc::SyncSender spinning behavior #106701
*  rustdoc: fix outdated lint section of the book #106605
*  Do not filter substs in remap_generic_params_to_declaration_params. #106503
*  Correct detection of elided lifetimes in impl-trait. #106501
*  Bump rust-installer #106196
*  Don't panic on stable since miri is not available there #105901
2023-01-20 09:39:31 +00:00
Oli Scherer 8669f7efaf Don't panic on stable since miri is not available there 2023-01-19 09:14:43 -05:00
Mark Rousskov d2f7d92d1d Bump rust-installer
* `--without=component-a,component-b` now requires full component names.
  This fixes rust-lang/rust#105755 (rust-lang/rust-installer#119).
2023-01-19 09:14:11 -05:00
Camille GILLOT 5fdce899ed Correct detection of elided lifetimes in impl-trait. 2023-01-19 09:13:52 -05:00
Camille GILLOT f0998711d9 Do not filter substs in remap_generic_params_to_declaration_params.
The relevant filtering should have been performed by borrowck.
2023-01-19 09:13:30 -05:00
Michael Howell 26c3226fbc rustdoc: fix outdated lint section of the book 2023-01-19 09:12:29 -05:00
Ibraheem Ahmed 68da67307b rework and document backoff behavior of sync::mpsc 2023-01-19 09:12:07 -05:00
Ibraheem Ahmed 56fc5ff4b4 add SyncSender::send_timeout test 2023-01-19 09:11:41 -05:00
Ibraheem Ahmed 2081de9684 fix SyncSender spinning behavior 2023-01-19 09:11:41 -05:00
Michael Goulet 62173f97b2 Revert "Make nested RPITIT inherit the parent opaque's generics." and adjust test
This reverts commit e2d41f4c97.
2023-01-19 09:11:08 -05:00
bors 7a9ae0ce66 Auto merge of #106731 - flip1995:clippy_backport, r=Mark-Simulacrum
[beta] Clippy: Move manual_clamp to nursery

There was a lot of discussion about this lint in https://github.com/rust-lang/rust-clippy/pull/9484#issuecomment-1278922613

We decided to move the lint to `nursery`. But since this lint broke code of many popular projects, we don't want to wait another release cycle until this move gets into stable. So we'd like to backport this commit to `beta`.

cc `@rust-lang/clippy` for approval from the Clippy side.
2023-01-14 11:35:12 +00:00
Philipp Krones e74700cd3e Move manual_clamp to nursery 2023-01-11 17:31:42 +01:00
bors 275123cf60 Auto merge of #106686 - pietroalbini:pa-cve-beta, r=pietroalbini
[beta] Fix CVE-2022-46176

See https://blog.rust-lang.org/2023/01/10/cve-2022-46176.html

r? `@ghost`
2023-01-11 01:41:43 +00:00
Pietro Albini 7c58986bbe add subtle dependency 2023-01-10 18:24:58 +01:00
Pietro Albini ebf230fb62 bump Cargo submodule to fix CVE-2022-46176 2023-01-10 17:27:36 +01:00
Pietro Albini c9e9dd21f7 disable fast submodule checkout due to spurious ci failures 2023-01-10 16:31:25 +01:00
bors 51b03459a4 Auto merge of #106326 - matthiaskrgr:beta_clippy, r=Mark-Simulacrum
[beta] backport clippy stack overflow fix

Backports https://github.com/rust-lang/rust-clippy/pull/10086 to the beta branch where the bug is still present.

I just cherry-picked the commit.

cc `@rust-lang/clippy`
2022-12-31 14:29:21 +00:00
Gary Guo 67745d4949 Fix new_return_no_self with recursive bounds 2022-12-31 09:17:42 +01:00
bors 6b1892c280 Auto merge of #106163 - compiler-errors:🅱-IMPLIED_BOUNDS_ENTAILMENT, r=Mark-Simulacrum
Backport `IMPLIED_BOUNDS_ENTAILMENT` lint

r? `@Mark-Simulacrum` as requested https://github.com/rust-lang/rust/pull/105575#issuecomment-1365490589
2022-12-28 19:46:17 +00:00
bors 6711f7ab4c Auto merge of #106188 - bryangarza:bug-104588-async-track-caller_beta-backport, r=compiler-errors
Backport: Switch `#[track_caller]` back to a no-op unless feature gate is enabled

Backport of #104741

r? `@compiler-errors` since you reviewed the original PR
requested by `@Mark-Simulacrum` https://github.com/rust-lang/rust/pull/104741#issuecomment-1365492142
2022-12-28 00:07:43 +00:00
Bryan Garza 8b768717f2 Switch #[track_caller] back to a no-op unless feature gate is enabled
This patch fixes a regression, in which `#[track_caller]`, which was
previously a no-op, was changed to actually turn on the behavior. This
should instead only happen behind the `closure_track_caller` feature
gate.

Also, add a warning for the user to understand how their code will
compile depending on the feature gate being turned on or not.

Fixes #104588
2022-12-27 18:00:12 +00:00
bors b364405cc3 Auto merge of #106162 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backport rollup

* Revert "Replace usage of ResumeTy in async lowering with Context" #105915
*  Don't copy symbols from dylibs with -Zdylib-lto #105800
*  rustdoc: Only hide lines starting with # in rust code blocks #105539
*  Mangle "main" as "__main_void" on wasm32-wasi #105468

r? `@ghost`
2022-12-27 00:56:28 +00:00
Michael Goulet dc442c5717 Make fast-path for implied wf lint better 2022-12-26 22:49:04 +00:00
Michael Goulet 70d081e13f Downgrade IMPLIED_BOUNDS_ENTAILMENT to warn by default, add it to builtin lint list 2022-12-26 22:48:41 +00:00
Michael Goulet 600b027510 Make Clippy test no longer unsound 2022-12-26 22:48:41 +00:00
Michael Goulet 8bfda7aafd Add IMPLIED_BOUNDS_ENTAILMENT lint 2022-12-26 22:48:39 +00:00
Dan Gohman dbc1048dc9 Mangle "main" as "__main_void" on wasm32-wasi
On wasm, the age-old C trick of having a main function which can either have
no arguments or argc+argv doesn't work, because wasm requires caller and
callee signatures to match. WASI's current strategy is to have compilers
mangle main's name to indicate which signature they're using. Rust uses the
no-argument form, which should be mangled as `__main_void`.

This is needed on wasm32-wasi as of #105395.
2022-12-26 17:31:05 -05:00
Guillaume Gomez d4bafb6aa5 Add test for non-rust code block hashtag prepended lines 2022-12-26 17:30:41 -05:00
Guillaume Gomez 4b988c9f11 Don't take into account hashtag prepended lines if not in rust code block 2022-12-26 17:30:35 -05:00
Rémy Rakic 95887f270a add simulated non-regression test for issue 105637 2022-12-26 17:28:25 -05:00
Rémy Rakic 0645c3df57 don't copy symbols from dylibs with -Zdylib-lto 2022-12-26 17:28:25 -05:00
Andrew Pollack ff4ca95691 Revert "Replace usage of ResumeTy in async lowering with Context" 2022-12-26 17:28:02 -05:00
bors 352eb59a4c Auto merge of #105607 - pietroalbini:pa-beta-1.67.0, r=pietroalbini
[beta] Prepare beta 1.67.0

This PR changes the branch to beta and updates the stabilization version numbers.

r? `@ghost`
2022-12-13 10:29:06 +00:00
Pietro Albini cfccd7e845 Merge pull request #3 from lukas-code/beta-next
[beta] Adjust miri to still be optional
2022-12-13 09:23:25 +01:00
Mark Rousskov 565b8ecaac Adjust miri to still be optional
We don't distribute a miri build for beta/stable so it needs to be kept
optional. In the future it likely makes sense to switch the miri
*artifacts* to always be built, but the rustup component to not be
included -- this will avoid some of this pain.
2022-12-13 00:06:21 +01:00
Pietro Albini c8f3406652 update stabilization version numbers 2022-12-12 13:50:00 +01:00
Pietro Albini 36e5ea48a5 change channel to beta 2022-12-12 13:46:18 +01:00
bors f058493307 Auto merge of #105262 - eduardosm:more-inline-always, r=thomcc
Make some trivial functions `#[inline(always)]`

This is some kind of follow-up of PRs like https://github.com/rust-lang/rust/pull/85218, https://github.com/rust-lang/rust/pull/84061, https://github.com/rust-lang/rust/pull/87150. Functions that do very basic operations are made `#[inline(always)]` to avoid pessimizing them in debug builds when compared to using built-in operations directly.
2022-12-09 15:42:18 +00:00
bors e10201c9bb Auto merge of #104572 - pkubaj:patch-1, r=cuviper
Fix build on powerpc-unknown-freebsd

Probably also fixes build on arm and mips*. Related to https://github.com/rust-lang/rust/issues/104220
2022-12-09 12:00:58 +00:00
bors 14ca83a04b Auto merge of #105486 - matthiaskrgr:rollup-o7c4l1c, r=matthiaskrgr
Rollup of 10 pull requests

Successful merges:

 - #105216 (Remove unused GUI test)
 - #105245 (attempt to clarify align_to docs)
 - #105387 (Improve Rustdoc scrape-examples UI)
 - #105389 (Enable profiler in dist-powerpc64le-linux)
 - #105427 (Dont silently ignore rustdoc errors)
 - #105442 (rustdoc: clean up docblock table CSS)
 - #105443 (Move some queries and methods)
 - #105455 (use the correct `Reveal` during validation)
 - #105470 (Clippy: backport ICE fix before beta branch)
 - #105474 (lib docs: fix typo)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
2022-12-09 09:19:26 +00:00
Matthias Krüger 3d727315c5 Rollup merge of #105474 - RalfJung:typo, r=dtolnay
lib docs: fix typo

r? `@thomcc`
2022-12-09 07:25:48 +01:00
Matthias Krüger 3e7aadc009 Rollup merge of #105470 - flip1995:clippy_backport, r=Manishearth
Clippy: backport ICE fix before beta branch

r? `@Manishearth`

Before beta is branched tomorrow we should backport the fix from https://github.com/rust-lang/rust-clippy/pull/10027 for an ICE. That way we'll get this into stable one release sooner.

This only cherry-picks the fix, not the tests for it. The proper sync of this will be done next week Thursday.
2022-12-09 07:25:47 +01:00