Commit graph

151955 commits

Author SHA1 Message Date
bors
c8dfcfe046 Auto merge of #88695 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] 1.55.0 stable release

r? `@Mark-Simulacrum`
2021-09-06 18:42:04 +00:00
Mark Rousskov
be3cbd2f9f 1.55.0 stable release 2021-09-06 13:22:16 -04:00
bors
e721434575 Auto merge of #88641 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backports

This PR backports:

* Concrete regions can show up in mir borrowck if the originated from there #88533 (fixes #83190)
* Fix loading large rlibs #88506 (fixes #88351)
* Display associated types of implementors #88490 (fixes #86631)
* Tracking issue for UNSUPPORTED_CALLING_CONVENTIONS #88397

r? `@Mark-Simulacrum`
2021-09-04 15:20:31 +00:00
Simonas Kazlauskas
01ab4413e1 Tracking issue for UNSUPPORTED_CALLING_CONVENTIONS 2021-09-04 08:47:10 -04:00
Guillaume Gomez
3a3bf5f1ba Remove implementors setting 2021-09-04 08:46:34 -04:00
Guillaume Gomez
42c8fbcfbf Clean render_impl arguments 2021-09-04 08:46:33 -04:00
Guillaume Gomez
61922fe789 Add tests for implementors associated types display 2021-09-04 08:46:33 -04:00
Guillaume Gomez
938bbdbb98 Put back "auto-collapse-implementors" setting 2021-09-04 08:46:33 -04:00
Guillaume Gomez
4ba1d2c096 Put back display of associated items (types and consts) 2021-09-04 08:46:31 -04:00
Mark Rousskov
cf546d6c63 Delete long-running large rlibs test
This is kept to a separate commit so that the test itself is preserved in the
commit history.
2021-09-04 08:43:09 -04:00
Mark Rousskov
bdf490bf33 Fix loading large rlibs
Bumps object crate to permit parsing archives with 64-bit table entries. These
are primarily encountered when there's more than 4GB of archive data.
2021-09-04 08:42:57 -04:00
Oli Scherer
d5290a3d5d Concrete regions can show up in mir borrowck if the originated from there.
We used to not encounter them here, because we took regions from typeck's opaque type resolution by renumbering them. We don't do that anymore.
2021-09-04 08:38:49 -04:00
bors
27e88d367c Auto merge of #88400 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backports

This PR rolls up a number of beta backports:

* Split critical edge targeting the start block #88124
* Make BuildHasher object safe #88031
* Fix Windows Command::env("PATH") #87863
* Do not ICE on HIR based WF check when involving lifetimes #87811
* Update compiler_builtins to fix i128 shift/mul on thumbv6m #87633
2021-08-28 02:28:31 +00:00
Amanieu d'Antras
88e4efd321 Update compiler_builtins to fix i128 shift/mul on thumbv6m
Fixes #86063
2021-08-27 14:21:04 -04:00
Esteban Küber
23c82af937 Do not ICE on HIR based WF check when involving lifetimes
Fix #87549.
2021-08-27 14:21:04 -04:00
Chris Denton
3fd3b42e69 Fix Windows Command::env("PATH") 2021-08-27 13:55:09 -04:00
ibraheemdev
ca18f75c1b move object safety test to library/core 2021-08-27 13:54:44 -04:00
ibraheemdev
b842f8c7ff make BuildHasher object safe 2021-08-27 13:54:38 -04:00
Tomasz Miąsko
0a128da758 Split critical edge targeting the start block 2021-08-27 13:54:10 -04:00
bors
2296b16654 Auto merge of #88279 - ehuss:update-beta-cargo, r=ehuss
[beta] Update cargo

2 commits in 1f76a218bc7f326606dda811b58c42b7e1e21168..32da73ab19417aa89686e1d85c1440b72fdf877d
2021-07-29 22:22:25 +0000 to 2021-08-23 18:16:08 +0000
- [beta] Move `tmp` test directory. (rust-lang/cargo#9819)
- [beta] Bump curl (rust-lang/cargo#9810)
2021-08-27 16:05:05 +00:00
Eric Huss
d6ef4e78f7 [beta] Update cargo 2021-08-23 18:06:48 -07:00
bors
bf16ca353c Auto merge of #88190 - pnkfelix:backport-87483, r=Mark-Simulacrum
Backport PR 87483

Backport of PR #87483: "Mir borrowck does not generate lifetime variables for 'static lifetimes during opaque type resolution"

Fix #87455: "ICE: unexpected concrete region in borrowck: ReStatic"
2021-08-21 07:01:52 +00:00
Oli Scherer
3cc658e602 Mir borrowck does not generate lifetime variables for 'static lifetimes during opaque type resolution. 2021-08-20 15:46:30 -04:00
bors
3c5e68de8a Auto merge of #87962 - flip1995:clippy_backport, r=Mark-Simulacrum
[beta] Backport renaming of lints

Backport renaming of 2 lints that were "wrongly" named. This is so that we don't have to go through the lint renaming process, if those lints would hit stable like this.
2021-08-12 16:17:12 +00:00
flip1995
c89c257898
Merge commit '74d1561353' into clippy_backport 2021-08-12 11:50:31 +02:00
bors
53fd98ca77 Auto merge of #87571 - ehuss:update-beta-cargo, r=ehuss
[beta] Update cargo

2 commits in d21c22870e58499d6c31f1bef3bf1255eb021666..1f76a218bc7f326606dda811b58c42b7e1e21168
2021-07-26 20:23:21 +0000 to 2021-07-29 22:22:25 +0000
- [beta] Backport cargo-util version fix (rust-lang/cargo#9746)
- [Beta] backport version string fix (rust-lang/cargo#9734)
2021-07-31 10:40:32 +00:00
Eric Huss
eb17931b42 [beta] Update cargo 2021-07-29 16:15:51 -07:00
bors
3c216f01c7 Auto merge of #87588 - pietroalbini:stage0-dev, r=Mark-Simulacrum
[beta] Bump bootstrap compiler

r? `@Mark-Simulacrum`
2021-07-29 18:17:53 +00:00
Pietro Albini
29ed642e48
remove dev:1 from stage0.txt 2021-07-29 16:29:04 +02:00
bors
74d1561353 Auto merge of #7505 - flip1995:beta, r=flip1995
[beta] Backport: Rename two lints to comply with our lint naming convention

self_named_constructor -> self_named_constructors
append_instead_of_extend -> extend_with_drain

changelog: none

r? `@ghost`
2021-07-29 11:34:55 +00:00
flip1995
c0e0171880
Rename two lints to comply with our lint naming convention
self_named_constructor -> self_named_constructors
append_instead_of_extend -> extend_with_drain
2021-07-29 13:28:41 +02:00
bors
739f8f0a8d Auto merge of #87508 - pietroalbini:beta-next, r=Mark-Simulacrum
Prepare beta 1.55.0

Included backports:

* https://github.com/rust-lang/rust/pull/86696
* https://github.com/rust-lang/rust/pull/87390 (squashed)

Reverted:

* #86623

cc `@rust-lang/release` `@Mark-Simulacrum`
2021-07-28 14:09:45 +00:00
Pietro Albini
87d2c5934d
add CI_ONLY_WHEN_CHANNEL and run x86_64-gnu-stable only on nightly 2021-07-28 15:20:33 +02:00
Pietro Albini
8ebc97f7a3
Revert "Add check to ensure error code explanations are not removed anymore even if not emitted"
This reverts commit 13bdc5c2be.
2021-07-28 09:18:31 +02:00
Pietro Albini
2b2bf6c88a
Revert "Only run error code explanation removal check if on CI"
This reverts commit d6962ffb31.
2021-07-28 09:18:20 +02:00
bors
9e299abf05
Rustdoc accessibility: use real headers for doc items
Part of #87059

Partially reverts #84703

Preview at: https://notriddle.com/notriddle-rustdoc-test/real-headers/std/index.html
2021-07-27 12:22:47 +02:00
Erin Power
b212f7961c
backport release notes 2021-07-27 12:21:39 +02:00
Pietro Albini
56397e90e1
this is now 1.55 beta 2021-07-27 12:14:04 +02:00
bors
d03456db5c Auto merge of #87338 - SparrowLii:MaybeTrait, r=wesleywiser
Simplify the collecting of `? Trait` bounds in where clause

This PR fixes the FIXME about using less rightward drift and only one error reporting when collecting of `?Trait` bounds in where clause.
Checking whether the path length of `bound_ty` is 1 can be replaced by whether `unresolved_segments` in the partial_res is 0.
Checking whether the `param.kind` is `Type{...}` can also be omitted. One Fx hash calculation will be done for Const or Lifetime param, but the impact on efficiency should be small IMO
2021-07-24 02:30:35 +00:00
bors
3b4a0dfc13 Auto merge of #86429 - JohnTitor:get-by-key-enum-part-2, r=oli-obk
Improve `get_by_key_enumerated` more

Follow-up of #86392, this applies the suggestions by `@m-ou-se.`

r? `@m-ou-se`
2021-07-23 23:17:38 +00:00
bors
67b03007cf Auto merge of #87413 - JohnTitor:rollup-dht22jk, r=JohnTitor
Rollup of 14 pull requests

Successful merges:

 - #86410 (VecMap::get_value_matching should return just one element)
 - #86790 (Document iteration order of `retain` functions)
 - #87171 (Remove Option from BufWriter)
 - #87175 (Stabilize `into_parts()` and `into_error()`)
 - #87185 (Fix panics on Windows when the build was cancelled)
 - #87191 (Package LLVM libs for the target rather than the build host)
 - #87255 (better support for running libcore tests with Miri)
 - #87266 (Add testcase for 87076)
 - #87283 (Add `--codegen-backends=foo,bar` configure flag)
 - #87322 (fix: clarify suggestion that `&T` must refer to `T: Sync` for `&T: Send`)
 - #87358 (Fix `--dry-run` when download-ci-llvm is set)
 - #87380 (Don't default to `submodules = true` unless the rust repo has a .git directory)
 - #87398 (Add test for fonts used for module items)
 - #87412 (Add missing article)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
2021-07-23 20:26:33 +00:00
Yuki Okushi
a6515816a6
Rollup merge of #87412 - r00ster91:patch-13, r=Mark-Simulacrum
Add missing article

Redo of #87305. I messed up in that PR and wasn't sure how to fix it.
2021-07-24 04:31:15 +09:00
Yuki Okushi
57ea2d8bb1
Rollup merge of #87398 - GuillaumeGomez:test-font-module-items, r=notriddle
Add test for fonts used for module items

Fixes #85632.

r? `@notriddle`
2021-07-24 04:31:14 +09:00
Yuki Okushi
f709999161
Rollup merge of #87380 - jyn514:smarter-submodule-defaults, r=Mark-Simulacrum
Don't default to `submodules = true` unless the rust repo has a .git directory

Should hopefully fix https://github.com/rust-lang/rust/pull/82653#issuecomment-885093033 - `@semarie` can you confirm?

r? `@Mark-Simulacrum`
2021-07-24 04:31:13 +09:00
Yuki Okushi
1b9cd8bbb8
Rollup merge of #87358 - jyn514:dry-run, r=Mark-Simulacrum
Fix `--dry-run` when download-ci-llvm is set

Previously it would error out:

```
$ x check --dry-run
thread 'main' panicked at 'std::fs::read_to_string(ci_llvm.join("link-type.txt")) failed with No such file or directory (os error 2) ("CI llvm missing: /home/joshua/rustc3/build/tmp-dry-run/x86_64-unknown-linux-gnu/ci-llvm")', src/bootstrap/config.rs:795:33
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Build completed unsuccessfully in 0:00:10
```
2021-07-24 04:31:12 +09:00
Yuki Okushi
3fc79fde63
Rollup merge of #87322 - chazkiker2:fix/suggestion-ref-sync-send, r=estebank
fix: clarify suggestion that `&T` must refer to `T: Sync` for `&T: Send`

### Description

- [x] fix #86507
- [x] add UI test for relevant code from issue
- [x] change `rustc_trait_selection/src/traits/error_reporting/suggestions.rs` to include a more clear suggestion when `&T` fails to satisfy `Send` bounds due to the fact that `T` fails to implement `Sync`
- [x] update UI test in Clippy: `src/tools/tests/ui/future_not_send.stderr`
2021-07-24 04:31:11 +09:00
Yuki Okushi
82a14e57e7
Rollup merge of #87283 - pietroalbini:configure-codegen-backends, r=Mark-Simulacrum
Add `--codegen-backends=foo,bar` configure flag

Unfortunately this requires a proper `./configure` flag, as the codegen backends config entry is a list, not a string (breaking `--set`).
2021-07-24 04:31:10 +09:00
Yuki Okushi
8b89c3240b
Rollup merge of #87266 - hellow554:issue87076, r=Mark-Simulacrum
Add testcase for 87076

Closes #87076

I also moved the issue tests into the issues subfolder, nothing changed there.
2021-07-24 04:31:09 +09:00
Yuki Okushi
1a2b90bc91
Rollup merge of #87255 - RalfJung:miri-test-libcore, r=Mark-Simulacrum
better support for running libcore tests with Miri

See https://github.com/rust-lang/miri-test-libstd/issues/4 for a description of the problem that this fixes.
Thanks to `@hyd-dev` for suggesting this patch!
2021-07-24 04:31:07 +09:00
Yuki Okushi
aca83f1ab8
Rollup merge of #87191 - adamgemmell:dev/llvm-lib-package, r=Mark-Simulacrum
Package LLVM libs for the target rather than the build host

Fixes https://github.com/rust-lang/rust/issues/85250

`dist.rs` uses, in the `rust-dev` stage, `llvm-config --libfiles` to get a list of the LLVM library files built but of course only for the build host. If the target differs we want to package lib files from the target's build tree instead. This is done by splitting/rejoining the paths on their build directories.

At the moment `tree` on the LLVM build directories seems to give almost identical output, but of course this might not be the case in the future. If a file is missing in the target's build tree then this stage will error in the `builder.install()` call. If the target build tree has an extra file then it silently won't be copied and we'll get a linker error when building using this artifact (via `download-ci-llvm = "if-available"`), though we would have received a linker error anyway without this change.

There was also a typo in the example config around this option.
2021-07-24 04:31:06 +09:00