summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2021-11-29Auto merge of #91361 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum 1.57.0bors-49/+172
[stable] 1.57.0 artifacts This is the standard beta->stable promotion, and includes a last-minute backports of: * #90044 via inclusion of #91220. * [beta] Don't treat unnormalized function arguments as well-formed #91242 r? `@Mark-Simulacrum`
2021-11-29Don't treat unnormalized function arguments as well-formedjackh726-46/+52
2021-11-29Disable outline atomics to aarch64-unknown-linux-musl.Hans Kratz-1/+4
This is a functionally equivalent, minimally invasive backport of #90044, which fixes the problem that compiling any binary with the target aarch64-unknown-linux-musl fails unless lld is used for linking (#89626). I have tested this backport by building aarch64-unknown-linux-gnu, installing the std libraries for the -musl and -gnu variants in rustc-beta-aarch64-unknown-linux-gnu/rustc/lib/rustlib and running helloworld successfully for both targets on arm64 hardware.
2021-11-29Bump to stable channelMark Rousskov-1/+1
2021-11-29Cherry-pick release notesMark Rousskov-1/+115
2021-11-27Auto merge of #91263 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-10/+40
[beta] backports * relate lifetime in TypeOutlives bounds on drop impls #90840 * [beta] [1.57] Disable LLVM newPM by default #91189 r? `@Mark-Simulacrum`
2021-11-26[1.57] Disable LLVM newPM by defaultSimonas Kazlauskas-8/+4
2021-11-26oops...Ellen-2/+36
2021-11-19Auto merge of #90561 - flip1995:clippy_backport, r=Mark-Simulacrumbors-89/+95
[beta] Backport Clippy lint renaming / regrouping This backports PR rust-lang/rust-clippy#7810 to beta, where a lint added in the 1.57 (current beta) release cycle was renamed shortly after the beta cutoff. We want to backport this, so we don't have unnecessary `lint_store.registered_renamed` calls in the Clippy codebase forever. (The formatting changes were necessary to pass this backport in the Clippy CI, removing it in a subtree sync would be a bit painful...) cc `@camsteffen`
2021-11-19Auto merge of #90938 - cuviper:beta-next, r=Mark-Simulacrumbors-743/+1458
[beta] backports - Fix assertion failures in OwnedHandle with windows_subsystem. #88798 - Ensure that pushing empty path works as before on verbatim paths #89665 - Feature gate + make must_not_suspend allow-by-default #89826 - Only use clone3 when needed for pidfd #89930 - Fix documentation header sizes #90186 - Fixes incorrect handling of ADT's drop requirements #90218 - Fix ICE when forgetting to Box a parameter to a Self::func call #90221 - Prevent duplicate caller bounds candidates by exposing default substs in Unevaluated #90266 - Update odht crate to 0.3.1 (big-endian bugfix) #90403 - rustdoc: Go back to loading all external crates unconditionally #90489 - Split doc_cfg and doc_auto_cfg features #90502 - Apply adjustments for field expression even if inaccessible #90508 - Warn for variables that are no longer captured #90597 - Properly register text_direction_codepoint_in_comment lint. #90626 - CI: Use ubuntu image to download openssl, curl sources, cacert.pem for x86 dist builds #90457 - Android is not GNU #90834 - Update llvm submodule #90954 Additionally, this bumps the stage 0 compiler from beta to stable 1.56.1. r? `@Mark-Simulacrum`
2021-11-18Update llvm submoduleAmanieu d'Antras-0/+0
(cherry picked from commit 530cd5b61f5bdddea17aa3f38befa1e66d3d1a92)
2021-11-18Android is not GNUJosh Stone-1/+1
(cherry picked from commit a24e2eddb1f5b1fca76eb1a3a6079188f9d54fd7)
2021-11-16Ignore files copied from previous stage when generating hash.Hans Kratz-1/+2
(cherry picked from commit aef51a0697b6906b0545b323426db05d189049fc)
2021-11-16Use ubuntu image to download openssl, curl sources, cacert.pemHans Kratz-67/+54
(cherry picked from commit 3a687e7510b9f4c716f3ad7cc3a86492979a266d)
2021-11-16Bump stage0 to stable 1.56.1Josh Stone-340/+283
2021-11-16Properly register text_direction_codepoint_in_comment lint.Hans Kratz-0/+10
(cherry picked from commit 9db9811ddf96dab53f4cd5b4b406d34572259f3c)
2021-11-16apply suggestions from code reviewNiko Matsakis-61/+63
(cherry picked from commit 4154e8acf045a13bf57bc9b3c487f838f17230c8)
2021-11-16handle case of a variable not capturedNiko Matsakis-8/+117
(cherry picked from commit fc8113d04e5ea4ae5c053388b503eb7013006e26)
2021-11-16rework diagnostic reporting to be more structuredNiko Matsakis-122/+164
(cherry picked from commit 76bc02715e3495f66860e1d470d224d2607336a6)
2021-11-16introduce an enum for tracking the 2229 migration causesNiko Matsakis-15/+43
(cherry picked from commit 9c84ac86d1325816c25531e95777adf467cf31e4)
2021-11-16Apply adjustments for field expression even if inaccessibleGary Guo-3/+34
The adjustments are used later by ExprUseVisitor to build Place projections and without adjustments it can produce invalid result. (cherry picked from commit f5560754591532d7cde4c9f5dd51dfbd7670e98f)
2021-11-16Also check for feature gates in "src/test/rustdoc"Guillaume Gomez-0/+1
(cherry picked from commit d7afbf61d87bf345597624cccdfb1036439697b9)
2021-11-16Split doc_cfg and doc_auto_cfg featuresGuillaume Gomez-5/+28
(cherry picked from commit d50a4753b8cffdb17e2d83282d95b61e266521fb)
2021-11-16Go back to loading all external crates unconditionallyJoshua Nelson-3/+36
This *continues* to cause regressions. This code will be unnecessary once access to the resolver happens fully before creating the tyctxt (#83761), so load all crates unconditionally for now. (cherry picked from commit 51345a83aaa99d1ec1a64e09c4e3280051e9cfa2)
2021-11-16Add more missing methods to `IntraLinkCrateLoader`Joshua Nelson-4/+57
This helps with (but does not fix) https://github.com/rust-lang/rust/issues/84738. I tested on https://github.com/jyn514/objr/commit/edcee7b8124abf0e4c63873e8422ff81beb11ebb and still hit ICEs. (cherry picked from commit cdafe9953938150b8ad296a472a8416d64d1b5ec)
2021-11-16Update odht crate to 0.3.1 (big-endian bugfix)Michael Woerister-4/+4
(cherry picked from commit 6771ac3f19171ba9fa5b9c8d652d8fd7ad131444)
2021-11-16add testsb-naber-0/+25
(cherry picked from commit 0199a81304fe7cf07f0d2c718a4243f47c1620ea)
2021-11-16expose default substs in param_envb-naber-0/+12
(cherry picked from commit c6b69017e21610b1ef491c028697728fbd3f581a)
2021-11-16Fix ICE when forgetting to `Box` a parameter to a `Self::func` callJakob Degen-1/+31
(cherry picked from commit 4b970231fd1254580fbddabab74a125404fea0de)
2021-11-16Clean up debug statements in needs_dropJakob Degen-7/+5
(cherry picked from commit aff37f8f7b0a14493e17bc9fd7844f4392d08241)
2021-11-16Add regresstion test for #90024.Jakob Degen-0/+37
Uses 2 MCVEs from the issue tracker that test opposite sides of the problem. (cherry picked from commit eae42fd9d0d6e568282a4c782405058b64f1ef0b)
2021-11-16Fixes incorrect handling of ADT's drop requirementsJakob Degen-41/+54
See https://github.com/rust-lang/rust/issues/90024#issuecomment-950105433 (cherry picked from commit 9158fc2071d8b6424ca56bcebc1cf21d264e9d7d)
2021-11-16Fix documentation header sizesJacob Hoffman-Andrews-11/+238
And add a rustdoc-gui test confirming various header sizes. (cherry picked from commit 89276ff7ede22f82ca3dd88305a41028e4ee62a2)
2021-11-15Revert "Do not call getpid wrapper after fork in tests"Josh Stone-35/+7
This reverts commit 12fbabd27f700a59d0e7031f0839b220c3514bcb. It was only needed because of using raw `clone3` instead of `fork`, but we only do that now when a pidfd is requested. (cherry picked from commit e96a0a8681998caf78093b65e746bfd967cb87e9)
2021-11-15Also note tool expectations of fork vs clone3Josh Stone-0/+2
Co-authored-by: Josh Triplett <josh@joshtriplett.org> (cherry picked from commit 6edaaa6db80a1d35a9ecb48a3a9b32551b91dc5d)
2021-11-15Update another comment on fork vs. clone3Josh Stone-2/+2
(cherry picked from commit fa2eee7bf2bcf03f64aa40a25f885b0301a9eb4a)
2021-11-15Only use `clone3` when needed for pidfdJosh Stone-7/+6
In #89522 we learned that `clone3` is interacting poorly with Gentoo's `sandbox` tool. We only need that for the unstable pidfd extensions, so otherwise avoid that and use a normal `fork`. (cherry picked from commit 85b55ce00df3766db2b617bda4b2457f6d76e542)
2021-11-15Feature gate and make must_not_suspend allow-by-defaultGus Wynn-16/+114
This lint is not yet ready for stable use, primarily due to false positives in edge cases; we want to test it out more before stabilizing. (cherry picked from commit 185fa5625656c5a5cb979397b131d1c8bbadeba9)
2021-11-15Ensure that pushing empty path works as beforeSean Young-1/+5
Fixes: https://github.com/rust-lang/rust/issues/89658 (cherry picked from commit 1bb399c3420038d54a1eda799a941e77ccd61a05)
2021-11-15Document the valid values for `HandleOrNull` and `HandleOrInvalid`.Dan Gohman-0/+8
(cherry picked from commit 5d79870aec85d2a2e15b9cac808cae21b5bcbce9)
2021-11-15Fix Windows compilation errors.Dan Gohman-11/+6
(cherry picked from commit e102c2a3f2d25fdee6793b45b1d12e14f0c16f93)
2021-11-15Fix assertion failures in `OwnedHandle` with `windows_subsystem`.Dan Gohman-40/+72
As discussed in #88576, raw handle values in Windows can be null, such as in `windows_subsystem` mode, or when consoles are detached from a process. So, don't use `NonNull` to hold them, don't assert that they're not null, and remove `OwnedHandle`'s `repr(transparent)`. Introduce a new `HandleOrNull` type, similar to `HandleOrInvalid`, to cover the FFI use case. (cherry picked from commit 3b974813871a4dee6cac3128a4e3fa5e81125464)
2021-11-04Merge commit '00e31fa5af1895bf8ff1e2b1e25b041362cdc33e' into clippy_backportflip1995-89/+95
2021-11-03Auto merge of #7925 - flip1995:backport, r=flip1995bors-89/+95
[beta] Backport: Move if_then_panic to pedantic and rename to manual_assert Backport of #7810 cc `@camsteffen` r? `@ghost` changelog: none (same release)
2021-11-03Format backport to pass CIflip1995-41/+54
2021-11-03Auto merge of #7810 - camsteffen:if-then-panic-pedantic, r=flip1995bors-48/+41
Move if_then_panic to pedantic and rename to manual_assert
2021-11-01Auto merge of #90461 - pietroalbini:bidi-beta, r=nikomatsakisbors-10/+543
[beta] Fix CVE-2021-42574 This PR implements new lints to mitigate the impact of [CVE-2021-42574], caused by the presence of bidirectional-override Unicode codepoints in the compiled source code. [See the advisory][advisory] for more information about the vulnerability. The changes in this PR will be released in tomorrow's beta release. [CVE-2021-42574]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42574 [advisory]: https://blog.rust-lang.org/2021/11/01/cve-2021-42574.html
2021-10-31add 1.56.1 to the release notesPietro Albini-0/+8
2021-10-31Lint against RTL unicode codepoints in literals and commentsEsteban Küber-10/+535
Address CVE-2021-42574.
2021-10-22Auto merge of #90151 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-83/+166
[beta] backports * Don't emit a warning for empty rmeta files. #90072 * Erase late-bound regions before computing vtable debuginfo name. #90050 * Fix wrong niche calculation when 2+ niches are placed at the start #90040 * Revert #86011 to fix an incorrect bound check #90025 * Fix macro_rules! duplication when reexported in the same module #89867 * Bump cargo to include rust-lang/cargo#9979 - Fix fetching git repos after a force push. r? `@Mark-Simulacrum`