summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2021-06-17Auto merge of #86390 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum 1.53.0bors-2/+2
[stable] 1.53.0 release - backport This hopefully fixes a Clippy ICE on rustc std and the crates.io codebase (and potentially others). r? `@Mark-Simulacrum`
2021-06-16Backport 572c405da063d2628378b74a8f659ce90e0e7779 to 1.53Mark Rousskov-2/+2
This fixes a Clippy ICE on rustc std and the crates.io codebase (and potentially others).
2021-06-15Auto merge of #86317 - Mark-Simulacrum:stable-next, r=Mark-Simulacrumbors-173/+349
[stable] 1.53.0 release This includes a backport of: * Revert "implement TrustedRandomAccess for Take iterator adapter" #85975 And includes patches to: * Update release notes to reflect #85541 * Require RUSTC_FORCE_INCREMENTAL to truly enable incremental, fixing #86004 * This reverts alignment-related commits to address issue #85713 on beta. r? `@Mark-Simulacrum`
2021-06-14regression test for issue 85713.Felix S. Klock II-0/+21
2021-06-14Revert "Allow specifying alignment for functions"Felix S. Klock II-137/+83
This reverts commit 448d07683a6defd567996114793a09c9a8aef5df to address issue 85713 on beta.
2021-06-14Pass RUSTC_FORCE_INCREMENTAL to auxiliary testsMark Rousskov-1/+3
This won't enable incremental if -Cincremental is not already passed, but is seemingly necessary in the presence of -Zincremental-verify-ich which does not check for incremental being enabled before accessing incremental data structures, leading to an ICE.
2021-06-14Add link to issueMark Rousskov-0/+1
2021-06-14Show nicer error when an 'unstable fingerprints' error occursAaron Hill-7/+12
2021-06-14Soft disable incrementalMark Rousskov-3/+23
This disables incremental (i.e., -Cincremental) taking effect unless an environment variable, RUSTC_FORCE_INCREMENTAL, is set to 1 in the environment of the running rustc. Currently incremental causes errors for many users, and we do not have an expectation of being able to quickly fix these errors in a backportable way - so, for now, disable incremental entirely. The user can still opt-in, but this way the majority of users merely get slower builds, not broken builds.
2021-06-14bump to stable channelMark Rousskov-1/+1
2021-06-14Revert "implement TrustedRandomAccess for Take iterator adapter"The8472-22/+1
This reverts commit 37a5b515e9c36ee3f57d9e0d7db7efce2fb02195.
2021-06-14Cherry-pick release notes for 1.53Mark Rousskov-2/+204
2021-06-12Auto merge of #86229 - cjgillot:crate-hash-beta, r=Mark-Simulacrumbors-6/+31
Integrate attributes as part of the crate hash Backport of #83901 r? `@Mark-Simulacrum`
2021-06-11Auto merge of #86225 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-117/+279
[beta] backports * Disable the machine outliner by default #86020 * Fix incorrect gating of nonterminals in key-value attributes #85445 * Build crtbegin.o/crtend.o from source code #85395 * Bring back x86_64-sun-solaris target to rustup #85252 * Preserve SyntaxContext for invalid/dummy spans in crate metadata #85211 * [beta] backport: Remove unsound TrustedRandomAccess implementations #86222 r? `@Mark-Simulacrum`
2021-06-11Hash attributes for crate_hash.Camille GILLOT-6/+31
2021-06-11Remove unsound TrustedRandomAccess implementationsFrank Steffahn-52/+2
Removes the implementations that depend on the user-definable trait `Copy`. Beta backport: Does not modify `vec::IntoIter`.
2021-06-11Preserve `SyntaxContext` for invalid/dummy spans in crate metadataAaron Hill-45/+113
Fixes #85197 We already preserved the `SyntaxContext` for invalid/dummy spans in the incremental cache, but we weren't doing the same for crate metadata. If an invalid (lo/hi from different files) span is written to the incremental cache, we will decode it with a 'dummy' location, but keep the original `SyntaxContext`. Since the crate metadata encoder was only checking for `DUMMY_SP` (dummy location + root `SyntaxContext`), the metadata encoder would treat it as a normal span, encoding the `SyntaxContext`. As a result, the final span encoded to the metadata would change across sessions, even if the crate itself was unchanged. This PR updates our encoding of spans in the crate metadata to mirror the encoding of spans into the incremental cache. We now always encode a `SyntaxContext`, and encode location information for spans with a non-dummy location.
2021-06-11Improve commentJakub Kulik-1/+1
2021-06-11Update Docker to build the deprecated target alongside the new oneJakub Kulik-14/+10
2021-06-11Build crtbengin.o/crtend.o from source code12101111-3/+107
2021-06-11Fix incorrect gating of nonterminals in key-value attributesAaron Hill-2/+35
Fixes #85432 When processing a `#[derive]` or `#[cfg_eval]` attribute, we need to re-parse our attribute target, which requires flattenting all `Nonterminals`. However, this caused us to incorrectly gate on a (flattented) nonterminal in a key-value attribute, which is supposed to be allowed. Since we already perform this gating during the initial parse, we suppress it in `capture_cfg` mode.
2021-06-11Disable the machine outliner by defaultSimonas Kazlauskas-1/+12
This addresses a codegen-issue that needs to be fixed upstream in LLVM. While we wait for the fix, we can disable it. Verified manually that the outliner is no longer run when `-Copt-level=z` is specified, and also that you can override this with `-Cllvm-args=-enable-machine-outliner` if you need it anyway. A regression test is not really feasible in this instance, given that we do not have any minimal reproducers. Fixes #85351
2021-06-11Auto merge of #86203 - pnkfelix:beta-targetted-issue-84297, r=dtolnaybors-412/+216
Beta targetted Make copy/copy_nonoverlapping fn's again beta backport of PR #86003 to address issue #84297
2021-06-10Regression test for issue 84297.Felix S. Klock II-0/+9
2021-06-10Change test to use `likely`/`unlikely` instead of `copy`/`copy_overlapping`.Felix S. Klock II-7/+7
Test was added in PR #84404. The intent here is: The `copy`/`copy_overlapping` intrinsics are going through some flip-flopping now of "are they intrinsics or not". We can achieve the same effect that the test intended by using `likely`/`unlikely`.
2021-06-10Remove tests that were also added in PR 79684.Felix S. Klock II-75/+0
2021-06-10Revert clippy's path to the copy intrinsics (part of reverting PR 81238).Felix S. Klock II-2/+2
2021-06-10Revert PRs 81238 and 82967 (which made copy and copy_nonoverlapping intrinsics).Felix S. Klock II-266/+192
This is to address issue 84297.
2021-06-10Revert tests added by PR 81167.Felix S. Klock II-50/+0
2021-06-10Revert effects of PRs 81167 and 83091.Felix S. Klock II-12/+6
This is preparation for reverting 81238 for short-term resolution of issue 84297.
2021-06-09Auto merge of #86036 - nikic:disable-mutable-noalias, r=Mark-Simulacrumbors-13/+6
[beta] Disable mutable noalias for Rust 1.53 Disable mutable noalias for the upcoming release to give this change more time to bake. I believe that was the consensus, and I wanted to make sure we don't forget :) r? `@Mark-Simulacrum`
2021-06-08Auto merge of #85893 - pnkfelix:beta-backport-85564, r=simulacrumbors-14/+45
[beta] backport of readd capture disjoint fields gate Beta backport of "readd capture disjoint fields gate", PR #85564 Fix issue #85435
2021-06-08Auto merge of #85740 - flip1995:clippy_backport, r=Mark-Simulacrumbors-4/+31
[Beta] Backport ICE fix in Clippy This backports an ICE / stack overflow fix from rust-lang/rust-clippy#7170. cc https://github.com/rust-lang/rust-clippy/issues/7169 cc `@llogiq` `@camsteffen` r? `@Mark-Simulacrum`
2021-06-08Auto merge of #86092 - JohnTitor:clang-12-beta, r=Mark-Simulacrumbors-16/+7
[beta] Backport #84894 to fix beta CI Currently, beta backports fail with this failure: https://github.com/rust-lang/rust/pull/86036#issuecomment-855318336 ``` STL1000: Unexpected compiler version, expected Clang 11.0.0 or newer. ``` The previous beta backport was successful because it uses a Visual Studio tool v14.28.29910 but now CI uses v14.29.30037. #84894 updated clang to 12 so master didn't catch this change, I guess. Hopefully, it fixes CI failures on beta.
2021-06-07Update clang to 12.0.0 on Windows and macOSJosh Triplett-1/+1
Needed for https://github.com/rust-lang/rust/pull/84764 . Tarballs already uploaded to the CI mirror bucket.
2021-06-07CI: Extract LLVM win64 installer directly, using 7zJosh Triplett-15/+6
Currently, we have LLVM tarballs for win64, generated by someone running the installer via wine and tarring up the result. 7z knows how to extract NSIS installers directly, and the result is identical to our tarball, except that it doesn't include `Uninstall.exe` (which we don't care about) and it includes the NSIS plugin directory (which we also don't care about). This simplifies the process of upgrading CI, and allows us to just mirror the upstream release .exe directly. This also improves our supply chain.
2021-06-05Disable mutable noalias for Rust 1.53Nikita Popov-13/+6
2021-06-01no thir-unsafeck in betaFelix S Klock II-2/+0
remove testing via `-Z thir-unsafeck`, since it is not appropriate for beta branch.
2021-06-01Regression test for issue 85435.Felix S. Klock II-0/+27
Apply suggestions from code review: 1. (removing confusing comment from my test, since the comment reflects the bad undesirable behavior that is being fixed here.) 2. test THIR unsafeck too. Co-authored-by: Léo Lanteri Thauvin <leseulartichaut@gmail.com>
2021-06-01Revert portion of PR #83521 that injected issue #85435 (and thus exposed ↵Felix S. Klock II-14/+20
underlying issue #85561).
2021-05-27Merge commit 'c64b3ffbb53a177e59876a6b7cc5eaff44d93913' into betaflip1995-4/+31
2021-05-22Auto merge of #85588 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-111/+293
[beta] backports * Backport 1.52.1 release notes #85404 * remove InPlaceIterable marker from Peekable due to unsoundness #85340 * rustdoc: Call initSidebarItems in root module of crate #85304 * Update LLVM submodule #85236 * Do not ICE on invalid const param #84913 * Disallows #![feature(no_coverage)] on stable and beta (using standard crate-level gating) #84871 * Ensure TLS destructors run before thread joins in SGX #84409
2021-05-22join_orders_after_tls_destructors: ensure thread 2 is launched before thread ↵Mohsen Zohrevandi-8/+9
1 enters TLS destructors
2021-05-22Use atomics in join_orders_after_tls_destructors testMohsen Zohrevandi-34/+88
std::sync::mpsc uses thread locals and depending on the order TLS dtors are run `rx.recv()` can panic when used in a TLS dtor.
2021-05-22Ensure TLS destructors run before thread joins in SGXMohsen Zohrevandi-11/+119
2021-05-22Disallows `#![feature(no_coverage)]` on stable and betaRich Kadel-91/+18
using allow_internal_unstable (as recommended) Fixes: #84836 ```shell $ ./build/x86_64-unknown-linux-gnu/stage1/bin/rustc src/test/run-make-fulldeps/coverage/no_cov_crate.rs error[E0554]: `#![feature]` may not be used on the dev release channel --> src/test/run-make-fulldeps/coverage/no_cov_crate.rs:2:1 | 2 | #![feature(no_coverage)] | ^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error For more information about this error, try `rustc --explain E0554`. ```
2021-05-22Do not ICE on invalid const paramEsteban Küber-1/+54
When encountering a path that can't have generics, do not call `generics_of`. This would happen when writing something like `path::this_is_a_mod<const_val>`. Fix #84831.
2021-05-22Synchronize llvm to master commitMark Rousskov-0/+0
2021-05-22Call `initSidebarItems` in root module of crateJustus K-3/+14
2021-05-22from review: more robust testthe8472-2/+2
This also checks the contents and not only the capacity in case IntoIter's clone implementation is changed to add capacity at the end. Extra capacity at the beginning would be needed to make InPlaceIterable work. Co-authored-by: Giacomo Stevanato <giaco.stevanato@gmail.com>