| Age | Commit message (Collapse) | Author | Lines |
|
[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`
|
|
|
|
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.
|
|
|
|
|
|
[beta] backports
* relate lifetime in TypeOutlives bounds on drop impls #90840
* [beta] [1.57] Disable LLVM newPM by default #91189
r? `@Mark-Simulacrum`
|
|
|
|
|
|
[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`
|
|
[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`
|
|
(cherry picked from commit 530cd5b61f5bdddea17aa3f38befa1e66d3d1a92)
|
|
(cherry picked from commit a24e2eddb1f5b1fca76eb1a3a6079188f9d54fd7)
|
|
(cherry picked from commit aef51a0697b6906b0545b323426db05d189049fc)
|
|
(cherry picked from commit 3a687e7510b9f4c716f3ad7cc3a86492979a266d)
|
|
|
|
(cherry picked from commit 9db9811ddf96dab53f4cd5b4b406d34572259f3c)
|
|
(cherry picked from commit 4154e8acf045a13bf57bc9b3c487f838f17230c8)
|
|
(cherry picked from commit fc8113d04e5ea4ae5c053388b503eb7013006e26)
|
|
(cherry picked from commit 76bc02715e3495f66860e1d470d224d2607336a6)
|
|
(cherry picked from commit 9c84ac86d1325816c25531e95777adf467cf31e4)
|
|
The adjustments are used later by ExprUseVisitor to build Place projections
and without adjustments it can produce invalid result.
(cherry picked from commit f5560754591532d7cde4c9f5dd51dfbd7670e98f)
|
|
(cherry picked from commit d7afbf61d87bf345597624cccdfb1036439697b9)
|
|
(cherry picked from commit d50a4753b8cffdb17e2d83282d95b61e266521fb)
|
|
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)
|
|
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)
|
|
(cherry picked from commit 6771ac3f19171ba9fa5b9c8d652d8fd7ad131444)
|
|
(cherry picked from commit 0199a81304fe7cf07f0d2c718a4243f47c1620ea)
|
|
(cherry picked from commit c6b69017e21610b1ef491c028697728fbd3f581a)
|
|
(cherry picked from commit 4b970231fd1254580fbddabab74a125404fea0de)
|
|
(cherry picked from commit aff37f8f7b0a14493e17bc9fd7844f4392d08241)
|
|
Uses 2 MCVEs from the issue tracker that test opposite sides of the problem.
(cherry picked from commit eae42fd9d0d6e568282a4c782405058b64f1ef0b)
|
|
See https://github.com/rust-lang/rust/issues/90024#issuecomment-950105433
(cherry picked from commit 9158fc2071d8b6424ca56bcebc1cf21d264e9d7d)
|
|
And add a rustdoc-gui test confirming various header sizes.
(cherry picked from commit 89276ff7ede22f82ca3dd88305a41028e4ee62a2)
|
|
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)
|
|
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
(cherry picked from commit 6edaaa6db80a1d35a9ecb48a3a9b32551b91dc5d)
|
|
(cherry picked from commit fa2eee7bf2bcf03f64aa40a25f885b0301a9eb4a)
|
|
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)
|
|
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)
|
|
Fixes: https://github.com/rust-lang/rust/issues/89658
(cherry picked from commit 1bb399c3420038d54a1eda799a941e77ccd61a05)
|
|
(cherry picked from commit 5d79870aec85d2a2e15b9cac808cae21b5bcbce9)
|
|
(cherry picked from commit e102c2a3f2d25fdee6793b45b1d12e14f0c16f93)
|
|
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)
|
|
|
|
[beta] Backport: Move if_then_panic to pedantic and rename to manual_assert
Backport of #7810
cc `@camsteffen`
r? `@ghost`
changelog: none (same release)
|
|
|
|
Move if_then_panic to pedantic and rename to manual_assert
|
|
[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
|
|
|
|
Address CVE-2021-42574.
|
|
[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`
|