Commit graph

156378 commits

Author SHA1 Message Date
bors
f1edd04295 Auto merge of #91361 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[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-29 19:26:50 +00:00
jackh726
a9174cf94e Don't treat unnormalized function arguments as well-formed 2021-11-29 14:26:12 -05:00
Hans Kratz
7f56b9a509 Disable outline atomics to aarch64-unknown-linux-musl.
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-29 12:09:35 -05:00
Mark Rousskov
fd046c334c Bump to stable channel 2021-11-29 12:08:55 -05:00
Mark Rousskov
1fc8068ed1 Cherry-pick release notes 2021-11-29 12:08:36 -05:00
bors
7e15b235f6 Auto merge of #91263 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[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-27 17:36:00 +00:00
Simonas Kazlauskas
150bd8ba76 [1.57] Disable LLVM newPM by default 2021-11-26 15:15:36 -05:00
Ellen
e618cbab2d oops... 2021-11-26 15:15:18 -05:00
bors
ef1a3b9349 Auto merge of #90561 - flip1995:clippy_backport, 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`
2021-11-19 14:53:09 +00:00
bors
7611e648be Auto merge of #90938 - cuviper:beta-next, r=Mark-Simulacrum
[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-19 09:02:52 +00:00
Amanieu d'Antras
a4a72e72f4 Update llvm submodule
(cherry picked from commit 530cd5b61f)
2021-11-18 10:39:13 -08:00
Josh Stone
4d156c37fc Android is not GNU
(cherry picked from commit a24e2eddb1)
2021-11-18 10:38:29 -08:00
Hans Kratz
69b4a8578c Ignore files copied from previous stage when generating hash.
(cherry picked from commit aef51a0697)
2021-11-16 15:39:59 -08:00
Hans Kratz
236bc611b9 Use ubuntu image to download openssl, curl sources, cacert.pem
(cherry picked from commit 3a687e7510)
2021-11-16 15:39:59 -08:00
Josh Stone
cba254631d Bump stage0 to stable 1.56.1 2021-11-16 12:05:12 -08:00
Hans Kratz
e63c3b5d60 Properly register text_direction_codepoint_in_comment lint.
(cherry picked from commit 9db9811ddf)
2021-11-16 12:05:12 -08:00
Niko Matsakis
d9ddee4b1d apply suggestions from code review
(cherry picked from commit 4154e8acf0)
2021-11-16 12:05:12 -08:00
Niko Matsakis
34cd4ef074 handle case of a variable not captured
(cherry picked from commit fc8113d04e)
2021-11-16 12:05:12 -08:00
Niko Matsakis
042c83716d rework diagnostic reporting to be more structured
(cherry picked from commit 76bc02715e)
2021-11-16 12:05:12 -08:00
Niko Matsakis
5de0c84f06 introduce an enum for tracking the 2229 migration causes
(cherry picked from commit 9c84ac86d1)
2021-11-16 12:05:12 -08:00
Gary Guo
fed62b2069 Apply adjustments for field expression even if inaccessible
The adjustments are used later by ExprUseVisitor to build Place projections
and without adjustments it can produce invalid result.

(cherry picked from commit f556075459)
2021-11-16 12:05:12 -08:00
Guillaume Gomez
fb40f1772b Also check for feature gates in "src/test/rustdoc"
(cherry picked from commit d7afbf61d8)
2021-11-16 12:05:12 -08:00
Guillaume Gomez
082accd313 Split doc_cfg and doc_auto_cfg features
(cherry picked from commit d50a4753b8)
2021-11-16 12:05:12 -08:00
Joshua Nelson
5fd4bb4707 Go back to loading all external crates unconditionally
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 51345a83aa)
2021-11-16 12:05:12 -08:00
Joshua Nelson
640bfaf3c5 Add more missing methods to IntraLinkCrateLoader
This helps with (but does not fix)
https://github.com/rust-lang/rust/issues/84738. I tested on
edcee7b812
and still hit ICEs.

(cherry picked from commit cdafe99539)
2021-11-16 12:05:12 -08:00
Michael Woerister
dc73bdc15b Update odht crate to 0.3.1 (big-endian bugfix)
(cherry picked from commit 6771ac3f19)
2021-11-16 12:05:12 -08:00
b-naber
96fd370881 add tests
(cherry picked from commit 0199a81304)
2021-11-16 12:05:12 -08:00
b-naber
7a83694a86 expose default substs in param_env
(cherry picked from commit c6b69017e2)
2021-11-16 12:05:12 -08:00
Jakob Degen
2039a92d4b Fix ICE when forgetting to Box a parameter to a Self::func call
(cherry picked from commit 4b970231fd)
2021-11-16 12:05:12 -08:00
Jakob Degen
d0922364bf Clean up debug statements in needs_drop
(cherry picked from commit aff37f8f7b)
2021-11-16 12:05:12 -08:00
Jakob Degen
4f9474c6f1 Add regresstion test for #90024.
Uses 2 MCVEs from the issue tracker that test opposite sides of the problem.

(cherry picked from commit eae42fd9d0)
2021-11-16 12:05:12 -08:00
Jakob Degen
3374d0d0b3 Fixes incorrect handling of ADT's drop requirements
See https://github.com/rust-lang/rust/issues/90024#issuecomment-950105433

(cherry picked from commit 9158fc2071)
2021-11-16 12:05:12 -08:00
Jacob Hoffman-Andrews
d19aeb23cc Fix documentation header sizes
And add a rustdoc-gui test confirming various header sizes.

(cherry picked from commit 89276ff7ed)
2021-11-16 12:05:12 -08:00
Josh Stone
d658d6d49c Revert "Do not call getpid wrapper after fork in tests"
This reverts commit 12fbabd27f.

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 e96a0a8681)
2021-11-15 16:30:30 -08:00
Josh Stone
462002b325 Also note tool expectations of fork vs clone3
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
(cherry picked from commit 6edaaa6db8)
2021-11-15 16:30:29 -08:00
Josh Stone
aaa8f4efe1 Update another comment on fork vs. clone3
(cherry picked from commit fa2eee7bf2)
2021-11-15 16:30:29 -08:00
Josh Stone
4b4b56d2fa Only use clone3 when needed for pidfd
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 85b55ce00d)
2021-11-15 16:30:29 -08:00
Gus Wynn
427b6a7b40 Feature gate and make must_not_suspend allow-by-default
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 185fa56256)
2021-11-15 16:30:01 -08:00
Sean Young
9654d52ea6 Ensure that pushing empty path works as before
Fixes: https://github.com/rust-lang/rust/issues/89658
(cherry picked from commit 1bb399c342)
2021-11-15 16:27:26 -08:00
Dan Gohman
0693aa1d6a Document the valid values for HandleOrNull and HandleOrInvalid.
(cherry picked from commit 5d79870aec)
2021-11-15 16:25:34 -08:00
Dan Gohman
2df9cc5128 Fix Windows compilation errors.
(cherry picked from commit e102c2a3f2)
2021-11-15 16:25:34 -08:00
Dan Gohman
f7acd9ff2f Fix assertion failures in OwnedHandle with windows_subsystem.
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 3b97481387)
2021-11-15 16:25:34 -08:00
flip1995
4cd7ad0163
Merge commit '00e31fa5af' into clippy_backport 2021-11-04 09:45:29 +00:00
bors
00e31fa5af Auto merge of #7925 - flip1995:backport, r=flip1995
[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-03 17:46:15 +00:00
flip1995
d23a338543
Format backport to pass CI 2021-11-03 17:37:04 +00:00
bors
e1225bf9a2
Auto merge of #7810 - camsteffen:if-then-panic-pedantic, r=flip1995
Move if_then_panic to pedantic and rename to manual_assert
2021-11-03 17:21:38 +00:00
bors
708d57e288 Auto merge of #90461 - pietroalbini:bidi-beta, r=nikomatsakis
[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-11-01 03:51:06 +00:00
Pietro Albini
a59d96ecf2
add 1.56.1 to the release notes 2021-10-31 13:13:27 +01:00
Esteban Küber
20c6049a55
Lint against RTL unicode codepoints in literals and comments
Address CVE-2021-42574.
2021-10-31 13:12:54 +01:00
bors
7e4c9eebd8 Auto merge of #90151 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[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`
2021-10-22 07:21:53 +00:00