summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2022-02-23Auto merge of #94265 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum 1.59.0bors-6/+7
[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`
2022-02-22Note unreachable behaviorMark Rousskov-0/+1
2022-02-22Move `return_self_not_must_use` to `pedantic`xFrednet-6/+6
2022-02-22Auto merge of #94224 - Mark-Simulacrum:stable-next, r=Mark-Simulacrumbors-107/+407
[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-21Soft-disable incremental compilationMark Rousskov-3/+54
This disables incremental compilation by default and adds a snippet to the compiler release notes explaining the rationale and encouraging testing.
2022-02-21Bump CI channelMark Rousskov-1/+1
2022-02-21Update compiler_builtins to fix duplicate symbols in ↵Daniel Sommermann-3/+3
`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-21Destabilise entry_insert5225225-2/+4
2022-02-21Backport release notesMark Rousskov-98/+345
2022-02-12Auto merge of #93922 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-71/+433
[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-12ignore test on wasm32The 8472-0/+1
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-12Fix hashing for windows paths containing a CurDir componentThe 8472-9/+52
* 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-12Adjust clippy tests to account for unreachable! changesMark Rousskov-6/+3
2022-02-11Take in account the unreachable! macro in the non_fmt_panic lintLoïc BRANSTETT-35/+161
2022-02-11Fix invalid special casing of the unreachable! macroLoïc BRANSTETT-19/+141
2022-02-11backport llvm fix for issue 91671.Felix S. Klock II-0/+0
2022-02-11resolve lifetimes for const generic defaultsMichael Goulet-1/+40
2022-02-11Remove obsolete no-op #[main] attribute from compiler.Jeremy Banks-1/+35
2022-02-11Auto merge of #93846 - ehuss:beta-backports, r=ehussbors-55/+165
[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-09[beta] Update cargoEric Huss-0/+0
Update includes: * https://github.com/rust-lang/cargo/pull/10377
2022-02-09Rollup merge of #93394 - m-ou-se:fix-93378, r=estebankMara Bos-11/+65
Don't allow {} to refer to implicit captures in format_args. Fixes #93378
2022-02-09Auto merge of #93081 - nikic:aarch64-fix, r=cuviperbors-0/+0
Update LLVM submodule Update LLVM to fix #92786.
2022-02-09Auto merge of #92983 - pietroalbini:pa-bump-runner-images, r=Mark-Simulacrumbors-44/+44
Update Linux runners to Ubuntu 20.04 r? `@Mark-Simulacrum`
2022-02-09Rollup merge of #92611 - Amanieu:asm-reference, r=m-ou-seMatthias Krüger-0/+56
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-02Auto merge of #93523 - nagisa:branch-protection-revert-beta, r=Mark-Simulacrumbors-202/+6
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-01-31Revert -Zbranch-protectionSimonas Kazlauskas-202/+6
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-27Auto merge of #93377 - flip1995:beta-backport, r=Mark-Simulacrumbors-3/+42
[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-27Handle implicit named arguments in `useless_format`Jason Newcomb-3/+42
2022-01-26Auto merge of #93306 - ehuss:beta-backports, r=ehussbors-36/+54
[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-25Rollup merge of #93012 - GuillaumeGomez:pulldown-list, r=camelidMatthias Krüger-18/+7
Update pulldown-cmark version to fix markdown list issue Fixes #92971. r? ```@camelid```
2022-01-25Auto merge of #93014 - Kobzol:revert-92103-stable-hash-skip-zero-bytes, ↵bors-18/+4
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-25Rollup merge of #93128 - pietroalbini:pa-verify-stable-version-number, ↵Matthias Krüger-0/+43
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[beta] Update cargoEric Huss-0/+0
2022-01-20Auto merge of #93111 - pietroalbini:pa-cve-2022-21658-beta, r=Mark-Simulacrumbors-63/+998
[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-20Add GUI test for rust logo style in the sidebarsGuillaume Gomez-0/+78
2022-01-20Fix style for rust logoGuillaume Gomez-3/+3
2022-01-20rustdoc: add intra-doc trait impl test for extern typesMahdi Dibaiee-2/+23
2022-01-20rustdoc: fix intra-link for generic trait implsMahdi Dibaiee-1/+31
2022-01-20fix(rustfmt): resolve generated file formatting issueCaleb Cartwright-5/+25
2022-01-20Fix compilation for a few tier 2 targetsHans Kratz-8/+5
2022-01-19Update std::fs::remove_dir_all documentationPietro Albini-4/+8
2022-01-19Fix CVE-2022-21658 for WASIAlex Crichton-8/+63
2022-01-19Fix CVE-2022-21658 for UNIX-likeHans Kratz-13/+351
2022-01-19Fix CVE-2022-21658 for WindowsChris Denton-27/+419
2022-01-19Auto merge of #93010 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-340/+283
[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-17[beta] backport cargoWeihang Lo-0/+0
2022-01-17update the bootstrap compiler to the latest stablePietro Albini-340/+283
2022-01-13Auto merge of #92734 - pietroalbini:beta-1.59.0, r=pietroalbinibors-10/+13
[beta] Prepare 1.59.0 beta cc `@rust-lang/release` r? `@ghost`
2022-01-13bump rlsPietro Albini-4/+4
2022-01-11fix unused warnings in rustfmtPietro Albini-5/+4