summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2021-03-23Auto merge of #83412 - ↵ 1.51.0bors-75/+64
pnkfelix:stable-revert-effect-of-pr-77885-for-issue-83139, r=nagisa [stable] probe-stack=call everywhere again, for now. To buy time on issue 83139, revert effect of PR 77885: We will not conditionally enable probe-stack=inline-asm on LLVM 11+ anymore on any of our targets that opted into doing so on PR #77885 (and were subsequently configured to do so in a fine grained manner on PR #80838). After we resolve 83139 (potentially by backporting a fix to LLVM, or potentially by deciding that one cannot rely on the quality of our DWARF output in the manner described in issue 83139), we can change this back. cc #83139
2021-03-23removed tests introduced or changed by PR #77885, which is reverted here.Felix S. Klock II-44/+0
2021-03-23On stable, probe-stack=call everywhere again, for now.Felix S. Klock II-31/+64
To buy time on issue 83139, revert effect of PR 77885: We will not conditionally enable probe-stack=inline-asm on LLVM 11+ anymore on any of our targets that opted into doing so on PR #77885 (and were subsequently configured to do so in a fine grained manner on PR #80838). After we resolve 83139 (potentially by backporting a fix to LLVM, or potentially by deciding that one cannot rely on the quality of our DWARF output in the manner described in issue 83139), we can change this back. (Update: fixed formatting issue.)
2021-03-22Auto merge of #83377 - Mark-Simulacrum:stable-next, r=Mark-Simulacrumbors-14/+203
[stable] 1.51.0 release Also includes backports of the release notes, as well as: * SplitInclusive is public API #83372 * std: Fix a bug on the wasm32-wasi target opening files #82804 * Fix io::copy specialization using copy_file_range when writer was opened with O_APPEND #82417 r? `@Mark-Simulacrum`
2021-03-22Set release channel to stableMark Rousskov-1/+1
2021-03-22fix io::copy specialization when writer was opened with O_APPENDThe8472-8/+10
2021-03-22add test for failing io::copy specializationThe8472-0/+18
2021-03-22std: Fix a bug on the wasm32-wasi target opening filesAlex Crichton-4/+2
This commit fixes an issue pointed out in #82758 where LTO changed the behavior of a program. It turns out that LTO was not at fault here, it simply uncovered an existing bug. The bindings to `__wasilibc_find_relpath` assumed that the relative portion of the path returned was always contained within thee input `buf` we passed in. This isn't actually the case, however, and sometimes the relative portion of the path may reference a sub-portion of the input string itself. The fix here is to use the relative path pointer coming out of `__wasilibc_find_relpath` as the source of truth. The `buf` used for local storage is discarded in this function and the relative path is copied out unconditionally. We might be able to get away with some `Cow`-like business or such to avoid the extra allocation, but for now this is probably the easiest patch to fix the original issue.
2021-03-22Expose str::SplitInclusiveMark Rousskov-1/+1
2021-03-22Pull in 1.51 release notesMark Rousskov-36/+173
2021-03-22pull release notes from masterMark Rousskov-2/+36
2021-03-18Auto merge of #83171 - pnkfelix:revert-81473-warn-write-only-fields, ↵bors-62/+0
r=Mark-Simulacrum Revert PR 81473 to resolve (on beta) issues 81626 and 81658. Revert PR #81473 to resolve (on beta) issues #81626 and #81658. Revert "Add missing brace" This reverts commit 85ad773049536d7fed9a94ae0ac74f97135c8655. Revert "Simplify base_expr" This reverts commit 899aae465eb4ef295dc1eeb2603f744568e0768c. Revert "Warn write-only fields" This reverts commit d3c69a4c0dd98af2611b7553d1a65afef6a6ccb0.
2021-03-17Auto merge of #83221 - ehuss:update-beta-cargo, r=ehussbors-0/+0
[beta] Update cargo 1 commits in 35a2a434d37e796e2f013f577b3c481f518afd97..43b129a20fbf1ede0df411396ccf0c024bf34134 2021-03-12 01:08:31 +0000 to 2021-03-16 22:05:51 +0000 - [beta] 1.51 backports (rust-lang/cargo#9277)
2021-03-16[beta] Update cargoEric Huss-0/+0
2021-03-15Revert PR 81473 to resolve (on beta) issues 81626 and 81658.Felix S. Klock II-62/+0
Revert "Add missing brace" This reverts commit 85ad773049536d7fed9a94ae0ac74f97135c8655. Revert "Simplify base_expr" This reverts commit 899aae465eb4ef295dc1eeb2603f744568e0768c. Revert "Warn write-only fields" This reverts commit d3c69a4c0dd98af2611b7553d1a65afef6a6ccb0.
2021-03-12Auto merge of #83058 - ehuss:update-beta-cargo, r=ehussbors-0/+0
[beta] Update cargo 2 commits in 9294589828ca283c690625a7fade9d264e64606d..35a2a434d37e796e2f013f577b3c481f518afd97 2021-02-22 22:05:24 +0000 to 2021-03-12 01:08:31 +0000 - [beta] Fix issue with filtering exclusive target dependencies. (rust-lang/cargo#9257) - Update split-debuginfo docs around the default. (rust-lang/cargo#9224)
2021-03-12[beta] Update cargoEric Huss-0/+0
2021-03-11Auto merge of #82996 - cuviper:beta-next, r=Mark-Simulacrumbors-28/+93
[beta] backports This backports some beta-accepted PRs and one additional LLVM fix for s390x. - rustdoc: treat edition 2021 as unstable #82207 - Fix popping singleton paths in when generating E0433 #82259 - libtest: Fix unwrap panic on duplicate TestDesc #82274 - [intra-doc links] Don't check feature gates of items re-exported across crates #82295 - rustdoc: Remove duplicate "List of all items" #82484 - Substitute erased lifetimes on bad placeholder type #82494 - Revert LLVM D81803 because it broke Windows 7 #82605 - [SystemZ] Assign the full space for promoted and split outgoing args. rust-lang/llvm-project#95 r? `@Mark-Simulacrum`
2021-03-10Fix s390x stack-split argsJosh Stone-0/+0
2021-03-10Revert LLVM D81803 because it broke Windows 7Josh Stone-0/+0
This submodule update reverts <https://reviews.llvm.org/D81803>. While that change is meant to fix a real bug, [LLVM PR42623], it caused new permission errors on Windows 7 that make it unable to build any archives. This is probably the same root cause as [LLVM PR48378]. Fixes #81051. We'll file a new Rust issue to track the LLVM resolution. [LLVM PR42623]: https://bugs.llvm.org/show_bug.cgi?id=42623 [LLVM PR48378]: https://bugs.llvm.org/show_bug.cgi?id=48378 (cherry picked from commit 31814c41aa8df26450bb3aa2dac0883d95394bca)
2021-03-10Substitute erased lifetimes on bad placeholder typeEsteban Küber-2/+44
Fix #82455. (cherry picked from commit 5ad60888275852136adea38aebc7fcce69b52474)
2021-03-10Add testDániel Buga-0/+11
(cherry picked from commit d3f75ebf609eed01b39fb7528745f2fce88e33e6)
2021-03-10Remove duplicate stringDániel Buga-1/+0
(cherry picked from commit 3be69b100f6678c42eff36e18505c2ba9419647a)
2021-03-10[intra-doc links] Don't check feature gates of items re-exported across cratesJoshua Nelson-0/+11
It should be never break another crate to re-export a public item. Note that this doesn't check the feature gate at *all* for other crates: - Feature-gates aren't currently serialized, so the only way to check the gate is with ad-hoc attribute checking. - Checking the feature gate twice (once when documenting the original crate and one when documenting the current crate) seems not great. This should still catch using the feature most of the time though, since people tend to document their own crates. (cherry picked from commit fdb32e997bef725f538f66dcfd96b1c1e51d2c56)
2021-03-10libtest: Fix unwrap panic on duplicate TestDesc.Anders Kaseorg-6/+7
It is possible for different tests to collide to the same TestDesc when macros are involved. That is a bug, but it didn’t cause a panic until #81367. For now, change the code to ignore this problem. Fixes #81852. Signed-off-by: Anders Kaseorg <andersk@mit.edu> (cherry picked from commit 1605af015c493c4800be9b56d7eb8d759f9a7d3c)
2021-03-10Fix popping singleton paths in when generating E0433Ömer Sinan Ağacan-6/+17
Fixes #82156 (cherry picked from commit 9889e44470cbc6ae3c8e2fcfb6016ed15ed8cf51)
2021-03-10rustdoc: treat edition 2021 as unstableEric Huss-13/+3
(cherry picked from commit ee0e841a2e949cba1dcf3a2fb04e9a673681e4fd)
2021-03-05Auto merge of #82476 - de-vri-es:beta-android-x86-accept4, r=joshtriplettbors-1/+1
[beta] Fix TcpListener::accept() on x86 Android on beta by disabling the use of accept4. This is the same as #82475, but for beta. In a nutshell: `TcpListener::accept` is broken on Android x86 on stable and beta because it performs a raw `accept4` syscall, which doesn't exist on that platform. This was originally reported in #82400, so you can find more details there. `@rustbot` label +O-android r? `@Mark-Simulacrum`
2021-02-24Disable use of accept4 on x86 Android.Maarten de Vries-1/+1
On x86 before Linux 4.3, accept4 is not a separate syscall. Instead, it can be called using `socketcall(SYS_ACCEPT4, ...). Rather than implementing that here, just fall back to `accept`.
2021-02-24Auto merge of #82427 - ehuss:update-beta-cargo, r=ehussbors-0/+0
[beta] Update cargo Backport of https://github.com/rust-lang/cargo/pull/9196: * Fix panic with doc collision orphan. (https://github.com/rust-lang/cargo/pull/9142) * Do not exit prematurely if anything failed installing. (https://github.com/rust-lang/cargo/pull/9185) * Add schema field to the index (https://github.com/rust-lang/cargo/pull/9161) * Fix warnings of the new non_fmt_panic lint (https://github.com/rust-lang/cargo/pull/9148)
2021-02-22[beta] Update cargoEric Huss-0/+0
2021-02-14Auto merge of #82062 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-7/+124
[beta] backports This backports some PRs and bumps to the released stable compiler: * bootstrap: fix wrong docs installation path #81968 * parser: Fix panic in 'const impl' recovery #81876 * Don't display `mut` in arguments for functions documentation #81831 r? `@Mark-Simulacrum`
2021-02-13Do not ICE on range patterns in function argumentsLeSeulArtichaut-5/+2
2021-02-13Add regression test for #81289LeSeulArtichaut-0/+18
2021-02-13Revert "Get rid of custom pretty-printing in rustdoc"LeSeulArtichaut-1/+71
This reverts commit 31375d2074aeed0c6f173aa200f0bd3bf6d36756.
2021-02-13parser: Fix panic in 'const impl' recoveryÖmer Sinan Ağacan-2/+34
The panic happens when in recovery parsing a full `impl` (`parse_item_impl`) fails and we drop the `DiagnosticBuilder` for the recovery suggestion and return the `parse_item_impl` error. We now raise the original error "expected identifier found `impl`" when parsing the `impl` fails. Note that the regression test is slightly simplified version of the original repro in #81806, to make the error output smaller and more resilient to unrelated changes in parser error messages. Fixes #81806
2021-02-13bootstrap: fix wrong docs installation pathPietro Albini-1/+1
2021-02-13Bump stage0 to released stableMark Rousskov-2/+2
2021-02-11Auto merge of #81921 - pietroalbini:beta-next, r=pietroalbinibors-462/+292
Prepare beta 1.51.0 cc `@rust-lang/release` r? `@ghost`
2021-02-11Ignore failures of RLS on aarch64 WindowsMark Rousskov-1/+7
2021-02-10update cargo.lockPietro Albini-718/+311
2021-02-10bootstrap: Locate llvm-dwp based on llvm-config bindirDavid Tolnay-2/+5
2021-02-10remove unused backtrace refsCaleb Cartwright-7/+0
2021-02-10update RLS and rustfmtCaleb Cartwright-107/+351
2021-02-09Permit unstable features during PGO benchmarksMark Rousskov-0/+2
2021-02-09Update fulldeps testMark Rousskov-29/+18
2021-02-09prepare beta 1.51.0Pietro Albini-5/+5
2021-02-06Auto merge of #81810 - m-ou-se:rollup-q3nborp, r=m-ou-sebors-126/+440
Rollup of 7 pull requests Successful merges: - #80011 (Stabilize `peekable_next_if`) - #81580 (Document how `MaybeUninit<Struct>` can be initialized.) - #81610 (BTreeMap: make Ord bound explicit, compile-test its absence) - #81664 (Avoid a hir access inside get_static) - #81675 (Make rustdoc respect `--error-format short` in doctests) - #81753 (Never MIR inline functions with a different instruction set) - #81795 (Small refactor with Iterator::reduce) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-02-06Rollup merge of #81795 - camsteffen:diagnostics-reduce, r=oli-obkMara Bos-3/+2
Small refactor with Iterator::reduce
2021-02-06Rollup merge of #81753 - tmiasko:inline-instruction-set, r=oli-obkMara Bos-1/+152
Never MIR inline functions with a different instruction set