160808 Commits

Author SHA1 Message Date
bors
9d1b2106e2 Auto merge of #94265 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] 1.59.0 artifacts (second round)

This backports (from 1.60, landed in #93001):

*  Move return_self_not_must_use to pedantic rust-lang/rust-clippy#8302

Per a user report on the internals feedback thread, this lint is not behaving well in 1.59.

cc `@rust-lang/clippy` -- this is a stable backport of a patch, which we'll likely want to land in fairly short order to be in time for the release Thursday.

This PR also includes an adjustment to the release notes to reflect "Fix invalid special casing of the unreachable! macro #93179".

r? `@Mark-Simulacrum`
1.59.0
2022-02-23 04:06:56 +00:00
Mark Rousskov
6bd1b5f2f0 Note unreachable behavior 2022-02-22 15:35:22 -05:00
xFrednet
8cf8beff6b Move return_self_not_must_use to pedantic 2022-02-22 15:23:59 -05:00
bors
3a06854129 Auto merge of #94224 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] 1.59.0 release

This adds in a few backports:

*  Destabilise entry_insert #94105
*  Update compiler_builtins to fix duplicate symbols in armv7-linux-androideabi rlib #93436

This also includes a fresh commit replicating the 1.52.1 patch soft-disabling incremental for 1.59, in light of discussion on #94124. This hasn't yet been fully approved but I think is the likely way things will go, so preparing the first round of stable artifacts with that in mind.

r? `@Mark-Simulacrum`
2022-02-22 02:48:13 +00:00
Mark Rousskov
6af5faf792 Soft-disable incremental compilation
This disables incremental compilation by default and adds a snippet to the
compiler release notes explaining the rationale and encouraging testing.
2022-02-21 21:06:42 -05:00
Mark Rousskov
a92566a403 Bump CI channel 2022-02-21 21:06:42 -05:00
Daniel Sommermann
e17e4669e5 Update compiler_builtins to fix duplicate symbols in armv7-linux-androideabi rlib
I ran `./x.py dist --host= --target=armv7-linux-androideabi` before this diff:
```
$ nm build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/armv7-linux-androideabi/lib/libcompiler_builtins-3d9661a82c59c66a.rlib 2> /dev/null | grep __sync_fetch_and_add_4 | wc -l
2
```
And after:
```
$ nm build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/armv7-linux-androideabi/lib/libcompiler_builtins-ffd2745070943321.rlib 2> /dev/null | grep __sync_fetch_and_add_4 | wc -l
1
```
Fixes #93310
2022-02-21 21:06:39 -05:00
5225225
41048133f3 Destabilise entry_insert 2022-02-21 12:53:03 -05:00
Mark Rousskov
4982eab203 Backport release notes 2022-02-21 12:53:01 -05:00
bors
1945ce6579 Auto merge of #93922 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backports

This backports:

*  Complete removal of #[main] attribute from compiler #93753
*  Resolve lifetimes for const generic defaults #93669
*  backport llvm fix for issue 91671. #93426
*  Fix invalid special casing of the unreachable! macro #93179
*  Fix hashing for windows paths containing a CurDir component #93697

r? `@Mark-Simulacrum`
2022-02-12 19:01:00 +00:00
The 8472
0ac18e7adb ignore test on wasm32
A fix applied to std::Path::hash triggers a miscompilation/assert in LLVM in this test on wasm32.
The miscompilation appears to pre-existing. Reverting some previous changes done std::Path also trigger it
and slight modifications such as changing the test path from "a" to "ccccccccccc" also make it pass, indicating
it's very flaky.
Since the fix is for a higher-tier platform than wasm it takes precedence.
2022-02-12 13:37:44 -05:00
The 8472
d521a81f90 Fix hashing for windows paths containing a CurDir component
* the logic only checked for / but not for \
* verbatim paths shouldn't skip items at all since they don't get normalized
* the extra branches get optimized out on unix since is_sep_byte is a trivial comparison and is_verbatim is always-false
* tests lacked windows coverage for these cases

That lead to equal paths not having equal hashes and to unnecessary collisions.
2022-02-12 13:37:44 -05:00
Mark Rousskov
8b2c687274 Adjust clippy tests to account for unreachable! changes 2022-02-12 08:58:35 -05:00
Loïc BRANSTETT
22f1800b1d Take in account the unreachable! macro in the non_fmt_panic lint 2022-02-11 17:30:09 -05:00
Loïc BRANSTETT
5140d6dc50 Fix invalid special casing of the unreachable! macro 2022-02-11 17:29:22 -05:00
Felix S. Klock II
79ee164d7b backport llvm fix for issue 91671. 2022-02-11 17:26:28 -05:00
Michael Goulet
5db4705598 resolve lifetimes for const generic defaults 2022-02-11 17:26:15 -05:00
Jeremy Banks
de2f0d5349 Remove obsolete no-op #[main] attribute from compiler. 2022-02-11 17:25:58 -05:00
bors
f58f0dfd72 Auto merge of #93846 - ehuss:beta-backports, r=ehuss
[beta] Backports

Backports of:

* #92611 — Add links to the reference and rust by example for asm! docs and lints
* #92983 — Update Linux runners to Ubuntu 20.04
* #93081 — Update LLVM submodule
* #93394 — Don't allow {} to refer to implicit captures in format_args.
* Cargo:
    * https://github.com/rust-lang/cargo/pull/10377 — Remove strip = "off" (and undocumented strip = "n"/strip = "no")
2022-02-11 03:28:31 +00:00
Eric Huss
5cdec688f6 [beta] Update cargo
Update includes:
* https://github.com/rust-lang/cargo/pull/10377
2022-02-09 20:04:33 -08:00
Mara Bos
120e33fbb2 Rollup merge of #93394 - m-ou-se:fix-93378, r=estebank
Don't allow {} to refer to implicit captures in format_args.

Fixes #93378
2022-02-09 20:00:35 -08:00
bors
560b4f3807 Auto merge of #93081 - nikic:aarch64-fix, r=cuviper
Update LLVM submodule

Update LLVM to fix #92786.
2022-02-09 20:00:17 -08:00
bors
2923c84d6a Auto merge of #92983 - pietroalbini:pa-bump-runner-images, r=Mark-Simulacrum
Update Linux runners to Ubuntu 20.04

r? `@Mark-Simulacrum`
2022-02-09 20:00:01 -08:00
Matthias Krüger
2cb7b2abfc Rollup merge of #92611 - Amanieu:asm-reference, r=m-ou-se
Add links to the reference and rust by example for asm! docs and lints

These were previously removed in #91728 due to broken links.

cc ``@ehuss`` since this updates the rust-by-example submodule
2022-02-09 19:59:37 -08:00
bors
0426998f5f Auto merge of #93523 - nagisa:branch-protection-revert-beta, r=Mark-Simulacrum
beta: Revert -Zbranch-protection

This reverts commit d331cb710f0dd969d779510a49a3bafc7f78a54e, reversing
changes made to 78fd0f633faaa5b6dd254fc1456735f63a1b1238.

This fixes #92885 as discussed on Zulip[1].

[1] https://zulip-archive.rust-lang.org/stream/238009-t-compiler/meetings/topic/.5Bweekly.5D.202022-01-27.20.2354818.html#269588396

r? `@Mark-Simulacrum`
2022-02-02 06:08:34 +00:00
Simonas Kazlauskas
b9610efd5d Revert -Zbranch-protection
This reverts commit d331cb710f0dd969d779510a49a3bafc7f78a54e, reversing
changes made to 78fd0f633faaa5b6dd254fc1456735f63a1b1238.

This is a fix for #92885 as discussed on Zulip[1].

[1] https://zulip-archive.rust-lang.org/stream/238009-t-compiler/meetings/topic/.5Bweekly.5D.202022-01-27.20.2354818.html#269588396
2022-01-31 23:02:55 +02:00
bors
28c8a34e18 Auto merge of #93377 - flip1995:beta-backport, r=Mark-Simulacrum
[beta] Clippy: Handle implicit named arguments in `useless_format`

Closes #92938

This backports a Clippy fix to beta, that was already backported for 1.58.1 in https://github.com/rust-lang/rust/pull/93110
2022-01-27 14:34:59 +00:00
Jason Newcomb
b57d411ad1
Handle implicit named arguments in useless_format 2022-01-27 15:16:26 +01:00
bors
436b81f58d Auto merge of #93306 - ehuss:beta-backports, r=ehuss
[beta] Backports

* Update cargo
    * https://github.com/rust-lang/cargo/pull/10328 — remove --host flag
    * https://github.com/rust-lang/cargo/pull/10325 — Fix documenting with undocumented dependencies
* https://github.com/rust-lang/rust/pull/93128 — Add script to prevent point releases with same number as existing ones
* https://github.com/rust-lang/rust/pull/93014 — Revert "Do not hash leading zero bytes of i64 numbers in Sip128 hasher"
* https://github.com/rust-lang/rust/pull/93012 — Update pulldown-cmark version to fix markdown list issue
2022-01-26 15:12:09 +00:00
Matthias Krüger
c67845871d Rollup merge of #93012 - GuillaumeGomez:pulldown-list, r=camelid
Update pulldown-cmark version to fix markdown list issue

Fixes #92971.

r? ```@camelid```
2022-01-25 12:29:53 -08:00
bors
e5e539c0de Auto merge of #93014 - Kobzol:revert-92103-stable-hash-skip-zero-bytes, r=the8472
Revert "Do not hash leading zero bytes of i64 numbers in Sip128 hasher"

Reverts rust-lang/rust#92103. It had a (in retrospect, obvious) correctness problem where changing the order of two adjacent values would produce identical hashes, which is problematic in stable hashing (see [this comment](https://github.com/rust-lang/rust/pull/92103#issuecomment-1014625442)).

I'll try to send the PR again with a fix for this issue.

r? `@the8472`
2022-01-25 12:29:28 -08:00
Matthias Krüger
9f7c5dce21 Rollup merge of #93128 - pietroalbini:pa-verify-stable-version-number, r=Mark-Simulacrum
Add script to prevent point releases with same number as existing ones

This will hopefully prevent what happened today with #93110 and #93121, where we built point release artifacts without changing version numbers, thus requiring another PR to change the version number.

r? `@Mark-Simulacrum`
2022-01-25 12:04:23 -08:00
Eric Huss
14b8f9aa68 [beta] Update cargo 2022-01-25 12:03:33 -08:00
bors
92c92fb3c1 Auto merge of #93111 - pietroalbini:pa-cve-2022-21658-beta, r=Mark-Simulacrum
[beta] Fix CVE-2022-21658

See https://blog.rust-lang.org/2022/01/20/cve-2022-21658.html. Patches reviewed by `@m-ou-se.`

Also backports:

*  resolve rustfmt issue with generated files #92912
*  rustdoc: fix intra-link for generic trait impls #92792
*  Fix rust logo style #92764

r? `@ghost`
2022-01-20 23:48:10 +00:00
Guillaume Gomez
046f8b89cc Add GUI test for rust logo style in the sidebars 2022-01-20 10:58:30 -05:00
Guillaume Gomez
f909100a3b Fix style for rust logo 2022-01-20 10:58:30 -05:00
Mahdi Dibaiee
4dceb072c7 rustdoc: add intra-doc trait impl test for extern types 2022-01-20 10:57:48 -05:00
Mahdi Dibaiee
bf46804b7d rustdoc: fix intra-link for generic trait impls 2022-01-20 10:57:45 -05:00
Caleb Cartwright
9fc25ab809 fix(rustfmt): resolve generated file formatting issue 2022-01-20 10:56:47 -05:00
Hans Kratz
c758a75df2
Fix compilation for a few tier 2 targets 2022-01-20 16:34:39 +01:00
Pietro Albini
1e884617ff
Update std::fs::remove_dir_all documentation 2022-01-19 15:56:24 +01:00
Alex Crichton
a935222f80
Fix CVE-2022-21658 for WASI 2022-01-19 15:56:22 +01:00
Hans Kratz
4c482ad2da
Fix CVE-2022-21658 for UNIX-like 2022-01-19 15:56:21 +01:00
Chris Denton
3d52c4c012
Fix CVE-2022-21658 for Windows 2022-01-19 15:56:19 +01:00
bors
98a701b425 Auto merge of #93010 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] rollup

This rolls up the following bumps onto the beta branch; no backports in this PR.

*  [beta] Bootstrap update #92888
*  [beta] backport cargo #92839

r? `@Mark-Simulacrum`
2022-01-19 02:33:16 +00:00
Weihang Lo
f61c455453 [beta] backport cargo 2022-01-17 14:16:37 -05:00
Pietro Albini
db07b11796 update the bootstrap compiler to the latest stable 2022-01-17 14:14:22 -05:00
bors
7c0b250923 Auto merge of #92734 - pietroalbini:beta-1.59.0, r=pietroalbini
[beta] Prepare 1.59.0 beta

cc `@rust-lang/release`
r? `@ghost`
2022-01-13 11:29:38 +00:00
Pietro Albini
7df20db1cb
bump rls 2022-01-13 11:09:37 +01:00
Pietro Albini
8c4b2dad14
fix unused warnings in rustfmt 2022-01-11 13:19:32 +01:00