summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2021-11-01Auto merge of #90460 - pietroalbini:bidi-stable, r=nikomatsakis,pietroalbini 1.56.1bors-11/+545
[stable] Fix CVE-2021-42574 and prepare Rust 1.56.1 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 later today as part of Rust 1.56.1. [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-01ignore prim-methods-external-core rustdoc test on macOSPietro Albini-0/+1
The test is for an unstable feature that doesn't affect the stable release (no_core), and it's causing CI issues for macOS.
2021-10-31change version number to 1.56.1Pietro Albini-1/+1
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-18Auto merge of #90004 - pietroalbini:stable-next, r=pietroalbini 1.56.0bors-7/+228
Rust 1.56.0 stable release This PR bumps 1.56.0 to the stable channel. This also includes a backport for: * Latest changes to the release notes * #89867 r? `@ghost` cc `@rust-lang/release`
2021-10-18Rework the equivalent test to work with sidebar-items.jsLoïc BRANSTETT-3/+3
2021-10-18Add equivalent test in src/test/rustdocLoïc BRANSTETT-0/+14
2021-10-18Apply documentation suggestions from code reviewUrgau-3/+3
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
2021-10-18Oops, inverted condition, fix thatLoïc BRANSTETT-1/+1
2021-10-18Add regression test for #89852Loïc BRANSTETT-0/+17
2021-10-18Deduplicate macro_rules! from module_exports when documenting themLoïc BRANSTETT-3/+11
This can append if within the same module a `#[macro_export] macro_rules!` is declared but also a reexport of itself producing two export of the same macro in the same module. In that case we only want to document it once.
2021-10-18bring updated release notes from masterPietro Albini-3/+185
2021-10-18switch release channel to stablePietro Albini-1/+1
2021-10-16Auto merge of #89924 - cuviper:beta-clone3, r=Mark-Simulacrumbors-3/+9
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`. r? `@Mark-Simulacrum`
2021-10-15Also note tool expectations of fork vs clone3Josh Stone-0/+2
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
2021-10-15Update another comment on fork vs. clone3Josh Stone-2/+2
2021-10-15Only use `clone3` when needed for pidfdJosh Stone-1/+5
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`.
2021-10-14Auto merge of #89854 - cuviper:beta-next, r=Mark-Simulacrumbors-199/+932
[beta] backports - 2229: Consume IfLet expr #89282 - Wrapper for -Z gcc-ld=lld to invoke rust-lld with the correct flavor #89288 - Fix unsound optimization with explicit variant discriminants #89489 - Fix stabilization version for bindings_after_at #89605 - Turn vtable_allocation() into a query #89619 - Revert "Stabilize Iterator::intersperse()" #89638 - Ignore type of projections for upvar capturing #89648 - ~~Add Poll::ready and~~ revert stabilization of task::ready! #89651 - CI: Use mirror for libisl downloads for more docker dist builds #89661 - Use correct edition for panic in [debug_]assert!(). #89622 - Switch to our own mirror of libisl plus ct-ng oldconfig fixes #89599 - Emit item no type error even if type inference fails #89585 - Revert enum discriminants #89884
2021-10-14Revert "Stabilize `arbitrary_enum_discriminant`"Mark Rousskov-13/+221
This reverts commit 7a62f29f3171767090949778ce0f161e930706b9.
2021-10-14Add regression test for ice 89574Gary Guo-10/+41
2021-10-14Emit item no type error even if type inference failsGary Guo-21/+23
2021-10-14Get rid of broken `ct-ng oldconfig` everywhere and directly provide a ↵Hans Kratz-20/+8
suitable .config file.
2021-10-14Switch to our own mirror of libislMark Rousskov-4/+4
2021-10-14Add tests for panic and [debug_]assert in Rust 2021.Mara Bos-0/+125
2021-10-14Use correct edition for panic in [debug_]assert!() etc.Mara Bos-4/+23
2021-10-14CI: Use mirror for downloads.Hans Kratz-4/+8
Crosstool-ng 1.22 used by those docker dist builds only allows one mirror for all downloads.
2021-10-13revert stabilization of `core::task::ready!`Ibraheem Ahmed-2/+5
(cherry picked from commit 5f7e7d2e93afd9478856d3dc026c6923a0f21641)
2021-10-13Explicit `PlaceAncestryRelation::SamePlace` and handle like `Descendant`Gary Guo-5/+8
(cherry picked from commit 7275cfa47cf3fdbf41c2ad859ac937bffe5923a4)
2021-10-13Add regression testGary Guo-0/+40
(cherry picked from commit d7f8a0678012f8a0fa24609345b777af4a6a4c04)
2021-10-13Ignore projection type when determining upvar ancestoryGary Guo-1/+1
(cherry picked from commit 54812011600a2c19f7076c438e6eabe6a8063774)
2021-10-13Revert "Stabilize `Iterator::intersperse()`"Jane Lusby-12/+20
(cherry picked from commit 8965b5884af5ce22a6b4f263f19f262052d818a5)
2021-10-13Turn tcx.vtable_allocation() into a query.Michael Woerister-69/+98
(cherry picked from commit b7cc99142ad0cfe47e2fe9f7a82eaf5b672c0573)
2021-10-13Remove untracked vtable-const-allocation cache from tcxMichael Woerister-14/+29
(cherry picked from commit a1e2c0f0ad9e787b5ff2844112fc2324511adf34)
2021-10-13Fix stabilization version for `bindings_after_at`Noah Lev-1/+1
According to the release notes and its PR milestone, it was stabilized in 1.56.0. (cherry picked from commit 6189d0a116c599804656d7befc3d4d35a49a8681)
2021-10-13Disable `SimplifyBranchSame` optimization for nowFabian Wolff-0/+6
(cherry picked from commit dd9b4763a4805e508cafd9aa49eebda27e5298c0)
2021-10-13Update commentsFabian Wolff-8/+18
(cherry picked from commit 20489eaca2ad541a35059d38e2b064c46d3bcc9f)
2021-10-13Fix unsound optimization with explicit variant discriminantsFabian Wolff-4/+32
(cherry picked from commit 529c35331bb3817e90b5099c33d97aa55ad2713d)
2021-10-13Downgrade lld-wrapper to 2018 editionJosh Stone-2/+2
2021-10-13Add wrapper for -Z gcc-ld=lld to invoke rust-lld with the correct flavorHans Kratz-13/+189
The wrapper is installed as `ld` and `ld64` in the `lib\rustlib\<host_target>\bin\gcc-ld` directory and its sole purpose is to invoke `rust-lld` in the parent directory with the correct flavor. (cherry picked from commit 6162fc0c809477529875b294a8ce37ff8737356c)
2021-10-13Fix testRoxane-9/+5
(cherry picked from commit d0e2b607de9b3b4e7e6495206a21847201248144)
2021-10-132229: Consume IfLet exprRoxane-0/+42
(cherry picked from commit 87010206adc0123277d7e355893e83551a28814f)
2021-10-04Auto merge of #89527 - ehuss:beta-backports, r=ehussbors-639/+1086
[beta] Beta rollup * Fix WinUWP std compilation errors due to I/O safety #88587 * Disable RemoveZsts in generators to avoid query cycles #88979 * Disable the evaluation cache when in intercrate mode #88994 * Fix linting when trailing macro expands to a trailing semi #88996 * Don't use projection cache or candidate cache in intercrate mode #89125 * 2229: Mark insignificant dtor in stdlib #89144 * Temporarily rename int_roundings functions to avoid conflicts #89184 * [rfc 2229] Drop fully captured upvars in the same order as the regular drop code #89208 * Use the correct edition for syntax highlighting doctests #89277 * Don't normalize opaque types with escaping late-bound regions #89285 * Update Let's Encrypt ROOT CA certificate in dist-(i686|x86_64)-linux docker images #89486 Cargo update: * - [beta] 1.56 backports (rust-lang/cargo#9958) * - [beta] Revert "When a dependency does not have a version, git or path… (rust-lang/cargo#9912) * - [beta] Fix rustc --profile=dev unstable check. (rust-lang/cargo#9901)
2021-10-04Auto merge of #89380 - ehuss:fix-windows-llvm, r=Mark-Simulacrumbors-0/+6
Fix Windows LLVM issue. GitHub image 20210928.2 added LLVM 12.0.1 to the stock image. However, the `lldb` executable doesn't work, it fails with: > C:/Program Files/LLVM/bin/lldb.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory We probably don't want to start testing LLDB on windows anyways (at least not without intent). The hacky solution for now is to just delete the system LLVM.
2021-10-04Bless src/test/rustdoc-ui/doctest-edition.stderrEric Huss-1/+1
The backport of #89277 needed adjustment due to another PR (#87915 - Use smaller spans for some structured suggestions) causing the test to have a slightly different span.
2021-10-04Auto merge of #89486 - rusticstuff:docker_letsencrypt_ca_update, ↵bors-0/+41
r=Mark-Simulacrum Update Let's Encrypt ROOT CA certificate in dist-(i686|x86_64)-linux docker images The DST Root CA X3 used by Let's Encrypt has expired ([Let's Encrypt announcement](https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/)). This patch installs the new root certificate (ISRG Root X1) and disables the old one. Disabling the old one is necessary because otherwise curl still fails to download from servers with Let's Encrypt certs even though they are cross-signed. Fixes #89484.
2021-10-04Auto merge of #89285 - jackh726:issue-88862, r=nikomatsakisbors-8/+8
Don't normalize opaque types with escaping late-bound regions Fixes #88862 Turns out, this has some really bad perf implications in large types (issue #88862). While we technically can handle them fine, it doesn't change test output either way. For now, revert with an added benchmark. Future attempts to change this back will have to consider perf. Needs a perf run once https://github.com/rust-lang/rustc-perf/pull/1033 is merged r? `@nikomatsakis`
2021-10-04Auto merge of #89277 - jyn514:codeblock-edition, r=GuillaumeGomezbors-19/+60
Use the correct edition for syntax highlighting doctests Previously it would unconditionally use edition 2015, which was incorrect. Helps with https://github.com/rust-lang/rust/issues/89135 in that you can now override the doctest to be 2018 edition instead of being forced to fix the error. This doesn't resolve any of the deeper problems that rustdoc disagrees with most rust users on what a code block is. cc `@Mark-Simulacrum`
2021-10-04Rollup merge of #89208 - wesleywiser:rfc_2229_droporder, r=nikomatsakisJubilee-1/+485
[rfc 2229] Drop fully captured upvars in the same order as the regular drop code Currently, with the new 2021 edition, if a closure captures all of the fields of an upvar, we'll drop those fields in the order they are used within the closure instead of the normal drop order (the definition order of the fields in the type). This changes that so we sort the captured fields by the definition order which causes them to drop in that same order as well. Fixes rust-lang/project-rfc-2229#42 r? `@nikomatsakis`
2021-10-04Rollup merge of #89184 - joshtriplett:master, r=estebankJubilee-48/+48
Temporarily rename int_roundings functions to avoid conflicts These functions are unstable, but because they're inherent they still introduce conflicts with stable trait functions in crates. Temporarily rename them to fix these conflicts, until we can resolve those conflicts in a better way.