Commit graph

137841 commits

Author SHA1 Message Date
bors
2fd73fabe4 Auto merge of #83412 - 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-23 16:14:31 +00:00
Felix S. Klock II
b75894e9bb removed tests introduced or changed by PR #77885, which is reverted here. 2021-03-23 11:40:26 -04:00
Felix S. Klock II
1aa1785092 On 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.

(Update: fixed formatting issue.)
2021-03-23 11:36:50 -04:00
bors
9bb6d54577 Auto merge of #83377 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[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-22 22:56:37 +00:00
Mark Rousskov
f9dd96d576 Set release channel to stable 2021-03-22 10:35:02 -04:00
The8472
f623a406dd fix io::copy specialization when writer was opened with O_APPEND 2021-03-22 10:34:21 -04:00
The8472
af7cfb4fef add test for failing io::copy specialization 2021-03-22 10:34:21 -04:00
Alex Crichton
b9438e0905 std: Fix a bug on the wasm32-wasi target opening files
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-22 10:33:58 -04:00
Mark Rousskov
3313a14888 Expose str::SplitInclusive 2021-03-22 10:33:43 -04:00
Mark Rousskov
b6fb8dcdf8 Pull in 1.51 release notes 2021-03-22 10:31:27 -04:00
Mark Rousskov
6580c4bb19 pull release notes from master 2021-03-22 10:31:15 -04:00
bors
73f48e5f6f Auto merge of #83171 - pnkfelix:revert-81473-warn-write-only-fields, 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 85ad773049.

Revert "Simplify base_expr"

This reverts commit 899aae465e.

Revert "Warn write-only fields"

This reverts commit d3c69a4c0d.
2021-03-18 20:24:11 +00:00
bors
80eddb9355 Auto merge of #83221 - ehuss:update-beta-cargo, r=ehuss
[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-17 01:38:55 +00:00
Eric Huss
123b94d40d [beta] Update cargo 2021-03-16 16:37:12 -07:00
Felix S. Klock II
71e57ad0d9 Revert PR 81473 to resolve (on beta) issues 81626 and 81658.
Revert "Add missing brace"

This reverts commit 85ad773049.

Revert "Simplify base_expr"

This reverts commit 899aae465e.

Revert "Warn write-only fields"

This reverts commit d3c69a4c0d.
2021-03-15 16:59:49 -04:00
bors
6a1835ad74 Auto merge of #83058 - ehuss:update-beta-cargo, r=ehuss
[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 19:27:06 +00:00
Eric Huss
d28dd7c5f1 [beta] Update cargo 2021-03-12 10:35:08 -08:00
bors
50b9553c15 Auto merge of #82996 - cuviper:beta-next, r=Mark-Simulacrum
[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-11 00:38:21 +00:00
Josh Stone
ee7176150c Fix s390x stack-split args 2021-03-10 15:55:14 -08:00
Josh Stone
5317d2fc77 Revert LLVM D81803 because it broke Windows 7
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 31814c41aa)
2021-03-10 15:44:16 -08:00
Esteban Küber
3fee12f83f Substitute erased lifetimes on bad placeholder type
Fix #82455.

(cherry picked from commit 5ad6088827)
2021-03-10 15:43:13 -08:00
Dániel Buga
3ad36d242a Add test
(cherry picked from commit d3f75ebf60)
2021-03-10 15:42:59 -08:00
Dániel Buga
0e214cab66 Remove duplicate string
(cherry picked from commit 3be69b100f)
2021-03-10 15:42:59 -08:00
Joshua Nelson
93586af7a5 [intra-doc links] Don't check feature gates of items re-exported across crates
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 fdb32e997b)
2021-03-10 15:42:38 -08:00
Anders Kaseorg
03fe394e93 libtest: Fix unwrap panic on duplicate TestDesc.
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 1605af015c)
2021-03-10 15:42:28 -08:00
Ömer Sinan Ağacan
c10902e619 Fix popping singleton paths in when generating E0433
Fixes #82156

(cherry picked from commit 9889e44470)
2021-03-10 15:42:17 -08:00
Eric Huss
4cd8cae1fd rustdoc: treat edition 2021 as unstable
(cherry picked from commit ee0e841a2e)
2021-03-10 15:41:43 -08:00
bors
4d25f46070 Auto merge of #82476 - de-vri-es:beta-android-x86-accept4, r=joshtriplett
[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-03-05 16:31:43 +00:00
Maarten de Vries
695b048aec Disable use of accept4 on x86 Android.
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-24 13:37:27 +01:00
bors
b631c914cd Auto merge of #82427 - ehuss:update-beta-cargo, r=ehuss
[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-24 00:30:17 +00:00
Eric Huss
7e093ed28d [beta] Update cargo 2021-02-22 16:49:46 -08:00
bors
14b27555a0 Auto merge of #82062 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[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-14 12:07:17 +00:00
LeSeulArtichaut
b016024f53 Do not ICE on range patterns in function arguments 2021-02-13 10:43:07 -05:00
LeSeulArtichaut
2d6c4b3c9c Add regression test for #81289 2021-02-13 10:43:07 -05:00
LeSeulArtichaut
af18bf8a6f Revert "Get rid of custom pretty-printing in rustdoc"
This reverts commit 31375d2074.
2021-02-13 10:43:07 -05:00
Ömer Sinan Ağacan
853f7875a2 parser: Fix panic in 'const impl' recovery
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-13 10:43:07 -05:00
Pietro Albini
6a98a3111d bootstrap: fix wrong docs installation path 2021-02-13 10:43:06 -05:00
Mark Rousskov
a21d90ab99 Bump stage0 to released stable 2021-02-13 10:41:50 -05:00
bors
a5a775e3f9 Auto merge of #81921 - pietroalbini:beta-next, r=pietroalbini
Prepare beta 1.51.0

cc `@rust-lang/release`
r? `@ghost`
2021-02-11 10:54:46 +00:00
Mark Rousskov
b2d32209a9
Ignore failures of RLS on aarch64 Windows 2021-02-11 11:36:37 +01:00
Pietro Albini
e15d61cbdb
update cargo.lock 2021-02-10 15:42:12 +01:00
David Tolnay
9e98dfe5cc
bootstrap: Locate llvm-dwp based on llvm-config bindir 2021-02-10 15:35:14 +01:00
Caleb Cartwright
0a6c6cc510
remove unused backtrace refs 2021-02-10 15:33:39 +01:00
Caleb Cartwright
d1f5fbaa4b
update RLS and rustfmt 2021-02-10 15:33:33 +01:00
Mark Rousskov
e708e2a9cb
Permit unstable features during PGO benchmarks 2021-02-09 15:54:33 +01:00
Mark Rousskov
4745585fc9
Update fulldeps test 2021-02-09 15:05:29 +01:00
Pietro Albini
bae1a0aab2
prepare beta 1.51.0 2021-02-09 13:36:51 +01:00
bors
cfba499271 Auto merge of #81810 - m-ou-se:rollup-q3nborp, r=m-ou-se
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-06 04:55:09 +00:00
Mara Bos
51c68034b9
Rollup merge of #81795 - camsteffen:diagnostics-reduce, r=oli-obk
Small refactor with Iterator::reduce
2021-02-06 00:14:17 +01:00
Mara Bos
728c955ac0
Rollup merge of #81753 - tmiasko:inline-instruction-set, r=oli-obk
Never MIR inline functions with a different instruction set
2021-02-06 00:14:16 +01:00