Commit graph

222058 commits

Author SHA1 Message Date
bors
90c541806f Auto merge of #112145 - wesleywiser:backport_112070, r=Mark-Simulacrum
Backport of #112070

Backports #112070 to stable

r? `@Mark-Simulacrum`
2023-05-31 19:26:05 +00:00
lcnr
4930c02c00 add FIXME 2023-05-31 12:41:45 -04:00
lcnr
c30ed50fe6 add tests 2023-05-31 12:41:44 -04:00
lcnr
09571d448a unique borrows are mutating uses 2023-05-31 12:41:44 -04:00
bors
d332def19c Auto merge of #112107 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] 1.70.0 (backport)

Backport https://github.com/rust-lang/rust/pull/112026 into 1.70.0 stable. Will rebuild dev-static artifacts after this gets built.

r? `@Mark-Simulacrum`
2023-05-30 16:04:40 +00:00
Ben Kimock
8fc89a21d0 Exclude Rvalue::AddressOf for raw pointer deref alignment checks 2023-05-30 11:15:16 -04:00
Ben Kimock
655516b5a4 Add a test for misaligned pointer derefs inside addr_of! 2023-05-30 11:15:16 -04:00
bors
8b07c8821b Auto merge of #112067 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] Prepare 1.70.0 release

r? `@Mark-Simulacrum`
2023-05-29 17:12:17 +00:00
Ryan Levick
7cfea71beb Use the standard macOS CI runner 2023-05-29 13:11:12 -04:00
Mark Rousskov
ebe9af7c7a Prepare 1.70.0 release 2023-05-29 10:38:03 -04:00
bors
2687f47c4e Auto merge of #111971 - cuviper:beta-next, r=cuviper
[beta] backport

- Dont check `must_use` on nested `impl Future` from fn #111491
- fix recursion depth handling after confirmation #111754

r? cuviper
2023-05-26 00:49:44 +00:00
lcnr
f2e37f7bcd add test
(cherry picked from commit c5ec1b8bc5)
2023-05-25 17:18:46 -07:00
lcnr
a365f58bf6 update recursion depth in confirm_candidate
(cherry picked from commit 1708ad65a4)
2023-05-25 17:14:15 -07:00
Michael Goulet
1a42cb7fff Dont check must_use on nested impl Future from fn
(cherry picked from commit 926e874fd1)
2023-05-25 17:14:11 -07:00
bors
16ec1c0a80 Auto merge of #111776 - cuviper:beta-next, r=cuviper
[beta] backport

- debuginfo: split method declaration and definition #111167
- Encode VariantIdx so we can decode ADT variants in the right order #111494
- Simplify find_width_of_character_at_span. #111560

r? cuviper
2023-05-20 02:00:26 +00:00
Mara Bos
7a0af0973c Simplify find_width_of_character_at_span.
(cherry picked from commit 6289c57dc0)
2023-05-19 17:14:44 -07:00
Michael Goulet
8b7deda58d Encode VariantIdx so we can decode variants in the right order
(cherry picked from commit ff54c801f0)
2023-05-19 17:14:22 -07:00
Josh Stone
ec1d458777 debuginfo: split method declaration and definition
When we're adding a method to a type DIE, we only want a DW_AT_declaration
there, because LLVM LTO can't unify type definitions when a child DIE is a
full subprogram definition. Now the subprogram definition gets added at the
CU level with a specification link back to the abstract declaration.

(cherry picked from commit 10b69dde3f)
2023-05-19 17:01:39 -07:00
bors
2013813b65 Auto merge of #111290 - Mark-Simulacrum:beta-backport, r=Mark-Simulacrum
[beta] backport

This PR backports:

- #111015: Remove wrong assertion in match checking.
- #110917: only error combining +whole-archive and +bundle for rlibs
- #111201: bootstrap: add .gitmodules to the sources

r? `@Mark-Simulacrum`
2023-05-07 20:10:35 +00:00
Krasimir Georgiev
c11cc10558 bootstrap: add .gitmodules to the sources
The bootstrap builder now expects this file to exist:
6f8c0557e0/src/bootstrap/builder.rs (L494)
2023-05-06 11:14:42 -04:00
Be Wilson
428ac2a66e only error with +whole-archive,+bundle for rlibs
Fixes https://github.com/rust-lang/rust/issues/110912

Checking `flavor == RlibFlavor::Normal` was accidentally lost in
601fc8b36b
https://github.com/rust-lang/rust/pull/105601

That caused combining +whole-archive and +bundle link modifiers on
non-rlib crates to fail with a confusing error message saying that
combination is unstable for rlibs. In particular, this caused the
build to fail when +whole-archive was used on staticlib crates, even
though +whole-archive effectively does nothing on non-bin crates because
the final linker invocation is left to an external build system.
2023-05-06 11:12:53 -04:00
Camille GILLOT
7fc63a62ee Remove wrong assertion. 2023-05-06 11:12:48 -04:00
bors
cc38d9fe09 Auto merge of #111180 - weihanglo:update-beta-cargo, r=weihanglo
[beta] Update cargo

2 commits in 84b7041fd2745ee6b3b4a150314f81aabb78e6b2..ec8a8a0cabb0e0cadef58902470f6c7ee7868bdc
2023-04-13 20:08:40 +0000 to 2023-04-25 19:46:25 +0000
- [beta-1.70] backport add the Win32_System_Console feature (rust-lang/cargo#12038)
- [beta-1.70] Backport not_found_permutations test fix. (rust-lang/cargo#11983)

r? `@ghost`
2023-05-05 02:00:31 +00:00
Weihang Lo
dd253c0be1
[beta] Update cargo 2023-05-04 09:22:28 +01:00
bors
071f14baae Auto merge of #110871 - cuviper:beta-next, r=cuviper
[beta] backport

This PR backports:

- Encode def span for ConstParam #110425
- Update to LLVM 16.0.2 #110535
- Encode lifetime param spans too #110469
- make sysroot finding compatible with multiarch systems #110281
- Update awscli #110952
- Temporarily disable the jobserver-error test #110361

Also bumps us to the latest released stable, 1.69.0.

r? `@cuviper`
2023-04-30 03:45:19 +00:00
Eric Huss
4e2f52c516 Temporarily disable the jobserver-error test
(cherry picked from commit 79b3af3f62)
2023-04-29 09:53:08 -07:00
Eric Huss
12fcfa089c Update awscli
(cherry picked from commit dd6314f96c)
2023-04-28 13:40:07 -07:00
ozkanonur
b93f9e56ae make sysroot finding compatible with multiarch systems
Signed-off-by: ozkanonur <work@onurozkan.dev>
(cherry picked from commit 2e98368c2f)
2023-04-27 08:49:55 -07:00
Michael Goulet
53e5649ae4 Encode lifetime param spans too
(cherry picked from commit 24c2c075cc)
2023-04-27 08:49:27 -07:00
Josh Stone
b50332ccfb Bump bootstrap to 1.69.0 2023-04-26 16:24:47 -07:00
Nikita Popov
828d9471bd Update to LLVM 16.0.2
(cherry picked from commit 935b95630a)
2023-04-26 16:19:36 -07:00
Michael Goulet
d580176d4d Encode def span for ConstParam
(cherry picked from commit 1ee189cde5)
2023-04-26 16:19:23 -07:00
bors
1b7dd2252b Auto merge of #110414 - pietroalbini:pa-1.70.0-beta, r=Mark-Simulacrum
[beta] Prepare Rust 1.70.0

This PR replaces the version placeholders, and changes the channel to `beta`.

r? `@ghost`
cc `@rust-lang/release`
2023-04-19 10:39:35 +00:00
Pietro Albini
988610a083
update tests for the test harness's json formatting 2023-04-17 11:16:16 +02:00
Pietro Albini
86dfb0d0d1
add support for // unset-exec-env in compiletest 2023-04-17 11:16:13 +02:00
Pietro Albini
58cfc1c97f
treat the dev channel as nightly in compiletest 2023-04-17 11:16:12 +02:00
Pietro Albini
a27ea2b497
bump the channel to beta 2023-04-16 16:34:03 +02:00
Pietro Albini
8df541968f
replace version placeholders 2023-04-16 16:33:38 +02:00
bors
ce1073ba9d Auto merge of #110323 - lcnr:dropck-uwu, r=compiler-errors
explicit `adt_dtorck_constraint` for `ManuallyDrop`

the only reason we didn't add outlives requirements when dropping `ManuallyDrop` was a fast-path in `trivial_dropck_outlives`. Explicitly acknowledge that fast-path in `adt_dtorck_constraint`
2023-04-15 10:21:55 +00:00
bors
67e273ba0e Auto merge of #109900 - cjgillot:disable-const-prop, r=oli-obk
Only enable ConstProp at mir-opt-level >= 2.

That pass is not responsible for lints any more, so we can restrict it to optimized builds.

This reduces the amount of duplicated const-eval messages.
2023-04-15 07:58:57 +00:00
Camille GILLOT
483525eed3 Remove obsolete test. 2023-04-15 07:46:47 +00:00
Camille GILLOT
c9409136c7 Bless run-make. 2023-04-15 07:46:47 +00:00
Camille GILLOT
4a1ff5e04d Bless codegen test. 2023-04-15 07:46:46 +00:00
Camille GILLOT
9ec086709e Remove outdated comment. 2023-04-15 07:46:46 +00:00
Camille GILLOT
22bf5fd848 Remove useless methods in visit. 2023-04-15 07:46:46 +00:00
Camille GILLOT
8a515aab76 Only enable ConstProp at mir-opt-level >= 2. 2023-04-15 07:46:46 +00:00
bors
825c70658e Auto merge of #110335 - asomers:rust-gdb-freebsd, r=jyn514
Fix rust-gdb on FreeBSD

"\w" is a GNU-specific extension to sed.  Avoid it.

Fixes #110334
Signed-off-by: Alan Somers <asomers@gmail.com>
2023-04-15 05:48:36 +00:00
bors
3312a3053b Auto merge of #109802 - notriddle:notriddle/rustdoc-search-generics-nested, r=GuillaumeGomez
rustdoc-search: add support for nested generics

This change allows `search.js` to parse nested generics (which look `Like<This<Example>>`) and match them. It maintains the existing "bag semantics", so that the order of type parameters is ignored but the number is required to be greater than or equal to what's in the query.

For example, a function with the signature `fn read_all(&mut self: impl Read) -> Result<Vec<u8>, Error>` will match these queries:

* `Read -> Result<Vec<u8>, Error>`
* `Read -> Result<Error, Vec>`
* `Read -> Result<Vec<u8>>`

But it *does not* match `Result<Vec, u8>` or `Result<u8<Vec>>`.
2023-04-15 02:23:32 +00:00
Alan Somers
c6b1f31449
Typo fix in src/etc/rust-gdb
Co-authored-by: SNCPlay42 <SNCPlay42@gmail.com>
2023-04-14 19:07:13 -07:00
bors
fef27e038e Auto merge of #110142 - Mark-Simulacrum:reduce-core-counts, r=pietroalbini
Reduce core counts for a number of builders

Best reviewed by-commit; first commit renames all builder names to include core counts.

Applied changes for these builders (only on the auto branch, haven't touched PR CI):

- arm-android -> 8 core (currently at 39 minutes; 25.58% CPU)
- armhf-gnu -> 8 core (currently at 31 minutes; 30.97% CPU)
- dist-aarch64-linux -> 8 core (currently at 35 minutes; 55.38% CPU)
- dist-android -> 8 core (currently at 18 minutes; 43.03% CPU)
- dist-armhf-linux -> 8 core (currently at 27 minutes; 54.71% CPU)
- dist-armv7-linux -> 8 core (currently at 29 minutes; 50.33% CPU)
- dist-i586-gnu-i586-i686-musl -> 8 core (currently at 27 minutes; 48.31% CPU)
- dist-i686-linux -> 8 core (currently at 32 minutes; 52.39% CPU)
- dist-mips-linux -> 8 core (currently at 25 minutes; 55.09% CPU)
- dist-mips64-linux -> 8 core (currently at 25 minutes; 55.33% CPU)
- dist-mips64el-linux -> 8 core (currently at 26 minutes; 54.93% CPU)
- dist-mipsel-linux -> 8 core (currently at 25 minutes; 55.38% CPU)
- dist-powerpc-linux -> 8 core (currently at 26 minutes; 55.77% CPU)
- dist-powerpc64-linux -> 8 core (currently at 27 minutes; 55.03% CPU)
- dist-powerpc64le-linux -> 8 core (currently at 27 minutes; 54.95% CPU)
- dist-riscv64-linux -> 8 core (currently at 26 minutes; 54.43% CPU)
- dist-s390x-linux -> 8 core (currently at 30 minutes; 55.97% CPU)
- dist-various-1 -> 8 core (currently at 36 minutes; 29.16% CPU)
- dist-various-2 -> 8 core (currently at 27 minutes; 32.69% CPU)
- dist-x86_64-freebsd -> 8 core (currently at 27 minutes; 51.69% CPU)
- dist-x86_64-illumos -> 8 core (currently at 30 minutes; 54.88% CPU)
- dist-x86_64-musl -> 8 core (currently at 39 minutes; 57.56% CPU)
- dist-x86_64-netbsd -> 8 core (currently at 26 minutes; 55.82% CPU)
- mingw-check -> 8 core (currently at 17 minutes; 35.00% CPU)
- test-various -> 8 core (currently at 22 minutes; 44.84% CPU)
- wasm32 -> 8 core (currently at 19 minutes; 62.94% CPU)
- x86_64-gnu -> 8 core (currently at 32 minutes; 50.31% CPU)
- x86_64-gnu-stable -> 8 core (currently at 32 minutes; 51.23% CPU)
- x86_64-gnu-aux -> 8 core (currently at 22 minutes; 46.39% CPU)
- x86_64-gnu-debug -> 8 core (currently at 21 minutes; 53.93% CPU)
- x86_64-gnu-distcheck -> 8 core (currently at 38 minutes; 55.93% CPU)
- x86_64-gnu-llvm-15 -> 8 core (currently at 34 minutes; 52.99% CPU)
- x86_64-gnu-llvm-14 -> 8 core (currently at 34 minutes; 52.09% CPU)
- x86_64-gnu-llvm-14-stage1 -> 8 core (currently at 33 minutes; 51.13% CPU)
- x86_64-gnu-nopt -> 8 core (currently at 29 minutes; 53.36% CPU)
- x86_64-gnu-tools -> 8 core (currently at 22 minutes; 40.56% CPU)

We may also want to look at merging some of these builders in the future (to deduplicate stage0 builds and such) but that can happen separately - and is more work than just adjusting core counts.

r? `@pietroalbini`
2023-04-15 00:08:07 +00:00