235093 Commits

Author SHA1 Message Date
Michael Goulet
0e1fac191c Make sure that predicates with unmentioned bound vars are still considered global in the old solver
(cherry picked from commit 32294fc0ed1810a16fcea649955a9b21ea061734)
2023-11-09 11:47:06 -08:00
lcnr
819dd0feb2 review + add tests
(cherry picked from commit dda5e32ab0756642a5541678f5f42a3fe207eb6f)
2023-11-09 11:40:16 -08:00
lcnr
25ca102fde only erase param env regions where needed
(cherry picked from commit a582e9638b1653c269a4cba0ed00f78eb138b7e7)
2023-11-09 11:40:16 -08:00
lcnr
67d8dc8ccd dropck_outlives check generator witness needs_drop
(cherry picked from commit 57253552de475856a1f3bddedcd76e775892f770)
2023-11-09 11:40:12 -08:00
lcnr
ad3e9cfeb4 remove outdated comment
(cherry picked from commit f0df3d2dfbdab3567520366c979df4e20b2796f9)
2023-11-09 11:28:15 -08:00
bors
efc300e546 Auto merge of #117644 - cuviper:beta-next, r=cuviper
[beta] backports

- ensure the parent path's existence on `x install` #116349
- Remove `cfg_match` from the prelude #117162
- improve and fix `x install` #117383
- Update to LLVM 17.0.4 #117436

r? cuviper
2023-11-07 04:03:52 +00:00
Nikita Popov
efb81ca657 Update to LLVM 17.0.4
(cherry picked from commit 9df857f658ad3acfdf45268952911d51ad58123a)
2023-11-06 13:07:55 -08:00
onur-ozkan
2f1eb0ccb4 improve and fix x install
Fix: Write access check of `prefix` and `sysconfdir`
when DESTDIR is present.

Improvement: Instead of repeatedly reading `DESTDIR` within
each `fn prepare_dir` usage, read it once and pass it to
the `fn prepare_dir`.

Signed-off-by: onur-ozkan <work@onurozkan.dev>
(cherry picked from commit 4b14048d6037a2da5601952a2dd36fe67d04218b)
2023-11-06 13:07:44 -08:00
Caio
b125c10779 Remove cfg_match from the prelude
(cherry picked from commit 0b96e479ca11daf3bdc5a1a6f002e8bbe516f487)
2023-11-06 13:07:29 -08:00
onur-ozkan
f3b1b8742c ensure the parent path's existence on x install
Signed-off-by: onur-ozkan <work@onurozkan.dev>
(cherry picked from commit 2c8759ef8a91b70b567a7459694635ed70c19248)
2023-11-06 13:07:16 -08:00
bors
489647f984 Auto merge of #117005 - cuviper:beta-next, r=cuviper
[beta] backports and stage0 bump

- Bump stage0 to released stable compiler
- Hide host effect params from docs #116670
- Fix a performance regression in obligation deduplication. #116826
- Make `#[repr(Rust)]` and `#[repr(C)]` incompatible with one another #116829
- Update to LLVM 17.0.3 #116840
- Disable effects in libcore again #116856
- revert rust-lang/rust#114586 #116879

r? cuviper
2023-10-21 05:27:47 +00:00
bors
ae8769d766 Auto merge of #116997 - weihanglo:update-beta-cargo, r=weihanglo
[beta-1.74] Update cargo

1 commits in 22a976c6fb1bef45abcf182b4c7def87ad8b4a4d..ecb9851afd3095e988daaa35a48bc7f3cb748e04
2023-10-12 00:06:40 +0000 to 2023-10-18 20:42:16 +0000
- [beta-1.74.0] Partial-version spec support (rust-lang/cargo#12847)

r? ghost
2023-10-21 03:36:40 +00:00
Ali MJ Al-Nasrawy
eec25d6ec0 revert rust-lang/rust#114586
(cherry picked from commit a1e274f1721f6be4a36afe10e57a6825eeeaf848)
2023-10-20 17:45:16 -07:00
Oli Scherer
dfe9af535a Disable effects in libcore again
(cherry picked from commit bcdd3d77397295f1e20cd257c306d25c3a32dde2)
2023-10-20 17:45:16 -07:00
Nikita Popov
d598bb630f Update to LLVM 17.0.3
(cherry picked from commit ab22470eb3592f41634e411ffe98343f70053e57)
2023-10-20 17:45:16 -07:00
León Orell Valerian Liehr
457db5b061 Make #[repr(Rust)] and #[repr(C)] incompatible with one another
(cherry picked from commit d0b99e3efe62b5acc107da9c84331eae6cbe5a0d)
2023-10-20 17:45:16 -07:00
Nicholas Nethercote
e45b2ab5c5 Fix a performance regression in obligation deduplication.
Commit 8378487 from #114611 changed the location of an obligation
deduplication step in `opt_normalize_projection_type`. This meant that
deduplication stopped happening on one path where it was still
necessary, causing a couple of drastic performance regressions.

This commit moves the deduplication back to the old location. The good
news is that #114611 had four commits and 8378487 was of minimal
importance, so the perf benefits from that PR remain.

Fixes #116780, #116797.

(cherry picked from commit 91f2fbc867bfc31f2e103b09e605c61f1a450b33)
2023-10-20 17:45:16 -07:00
Oli Scherer
1bab7646e9 Add some FIXMEs for remaining issues that we need to fix before using more const trait things in libcore
(cherry picked from commit 16f8396f6df6902eeef580396785ab8888c3718b)
2023-10-20 17:45:16 -07:00
Oli Scherer
e9abb39210 hide host param from generic parameter list of ~const bounds
(cherry picked from commit 6724f9926c9e8c2d37e3e68e44238897bd89fddf)
2023-10-20 17:45:16 -07:00
Oli Scherer
0570067539 Add regression test for generic args showing host param
(cherry picked from commit cfb6afa2965a1504f366eb258193219c4a820141)
2023-10-20 17:45:16 -07:00
Oli Scherer
beb80d4e07 Test cross crate
(cherry picked from commit 8f2af7e010945e6d57e839db2673e276e8bf6532)
2023-10-20 17:45:16 -07:00
Oli Scherer
059621db90 Hide host effect params from docs
(cherry picked from commit c4e61faf2e078dc30b62488326404137600e5e11)
2023-10-20 17:45:16 -07:00
Oli Scherer
dbbf377368 Add regression tests
(cherry picked from commit 20363f40a938d05df68a775bacc9ca52c7490c7c)
2023-10-20 17:45:16 -07:00
Josh Stone
a881bd0c00 Bump stage0 to released stable compiler 2023-10-20 17:45:16 -07:00
Weihang Lo
4520fd50f1
[beta-1.74] Update cargo 2023-10-20 18:20:42 -04:00
bors
9326de8faf Auto merge of #116648 - weihanglo:update-beta-cargo, r=ehuss
[beta-1.74] Update cargo

1 commits in 59596f0f31a94fde48b5aa7e945cd0b7ceca9620..22a976c6fb1bef45abcf182b4c7def87ad8b4a4d
2023-09-29 19:29:17 +0000 to 2023-10-12 00:06:40 +0000
- [beta 1.74] Update curl-sys to pull in curl 8.4.0 (rust-lang/cargo#12809)

r? `@ehuss`
2023-10-13 01:58:04 +00:00
Weihang Lo
95cdd2e0f7
[beta-1.74] Update cargo 2023-10-11 22:40:59 -04:00
bors
b5c050febf Auto merge of #116362 - Mark-Simulacrum:beta-backport, r=Mark-Simulacrum
[beta] promote release

r? `@Mark-Simulacrum`
2023-10-03 14:02:01 +00:00
Mark Rousskov
2c34a58004 Override wasm32 release channel to nightly
This should fix running tests on the emscripten target. In the future
it's expected we'll want to entirely remove this builder since it's a
tier 2 target, but for this initially beta-targeted patch keeping the
changes minimal is preferred.
2023-10-03 09:21:52 -04:00
Mark Rousskov
9b40b3bc48 Bump to beta 2023-10-02 19:14:15 -04:00
Mark Rousskov
5cfaf68d1d Bump version placeholders 2023-10-02 19:12:46 -04:00
bors
b11431edc1 Auto merge of #116108 - onur-ozkan:support-make-jobs-flag, r=Mark-Simulacrum
Pass `-jN` from Make to `BOOTSTRAP_ARGS`

Enables the same functionality as `x -jN` in Make by passing the `-jN` arg from Make to the `BOOTSTRAP_ARGS` if it is specified.
2023-10-01 00:25:26 +00:00
bors
ca62d2c445 Auto merge of #116160 - MaxHearnden:quote-syntax-check, r=Mark-Simulacrum
quote argument to sh -n

This prevents glob expansion (*.py) and field splitting
2023-09-30 21:38:54 +00:00
bors
2f89c414f2 Auto merge of #116157 - the8472:doc-monotonoic-suspend, r=Mark-Simulacrum
Document that Instant may or may not include system-suspend time

Since people are still occasionally surprised by this let's make it more explicit. This doesn't add any new guarantees, only documents the status quo.

Related issues: #87906 #79462
2023-09-30 19:49:34 +00:00
bors
bb6c66be37 Auto merge of #116127 - onur-ozkan:sanity-checks-on-install, r=Mark-Simulacrum
add sanity checks for user write access on `x install`

Resolves #113580
2023-09-30 18:00:23 +00:00
bors
05c622138c Auto merge of #116286 - ouz-a:merge_my_commits, r=Mark-Simulacrum
Add Oğuz Ağcayazı to .mailmap

this will merge my commits under one name (hopefully)
2023-09-30 16:05:49 +00:00
bors
75d731eee9 Auto merge of #116254 - WaffleLapkin:nicen-traversal, r=cjgillot
Assorted improvements for `rustc_middle::mir::traversal`

r? `@cjgillot`

I'm not _entirely_ sure about all changes, although I do like all of them. If you'd like I can drop some commits. Best reviewed on a commit-by-commit basis, I think, since they are fairly isolated.
2023-09-30 12:38:12 +00:00
ouz-a
1008c98405 Add Oğuz Ağcayazı to .mailmap 2023-09-30 14:16:12 +03:00
bors
5282e5e120 Auto merge of #116195 - fmease:rustdoc-investigate-perf-regression, r=GuillaumeGomez
rustdoc: speed up processing of cross-crate fns to fix a perf regression

* The first commit doesn't affect perf but get's rid of a `.clone()` and a bunch of lines of code. I can drop it if you'd like me to
* The second commit, *“reduce the amount of `asyncness` query executions”*, addresses the perf regression introduced in #116084

r? `@ghost`
2023-09-30 09:18:06 +00:00
bors
177091258c Auto merge of #116280 - weihanglo:update-cargo, r=weihanglo
Update cargo

4 commits in e6aabe8b3fcf639be3a5bf68e77853bd7b3fa27d..59596f0f31a94fde48b5aa7e945cd0b7ceca9620
2023-09-26 16:31:53 +0000 to 2023-09-29 19:29:17 +0000
- refactor: Switch from termcolor to anstream (rust-lang/cargo#12751)
- Add missing `strip` entries in `dev` and `release` profiles. (rust-lang/cargo#12748)
- Add better suggestion for the unsupported silent flag (rust-lang/cargo#12723)
- docs(ref): Establish publish best practices (rust-lang/cargo#12745)

r? ghost
2023-09-30 05:53:30 +00:00
bors
9136560d32 Auto merge of #115933 - oli-obk:simd_shuffle_const, r=workingjubilee
Prototype using const generic for simd_shuffle IDX array

cc https://github.com/rust-lang/rust/issues/85229

r? `@workingjubilee` on the design

TLDR: there is now a `fn simd_shuffle_generic<T, U, const IDX: &'static [u32]>(x: T, y: T) -> U;` intrinsic that allows replacing

```rust
simd_shuffle(a, b, const { stuff })
```

with

```rust
simd_shuffle_generic::<_, _, {&stuff}>(a, b)
```

which makes the compiler implementations much simpler, if we manage to at some point eliminate `simd_shuffle`.

There are some issues with this today though (can't do math without bubbling it up in the generic arguments). With this change, we can start porting the simple cases and get better data on the others.
2023-09-30 04:05:26 +00:00
bors
4efd65571e Auto merge of #115546 - SUPERCILEX:patch-2, r=Amanieu
Weaken needlessly restrictive orderings on Arc::*_count

Follow up to https://github.com/rust-lang/rust/pull/95183 from this zulip: https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Why.20does.20Arc.3A.3Astrong_count.20use.20Acquire.20instead.20of.20Relaxed.3F/near/386213850

I'd like to use the strong_count for a lockless algorithm I'm writing, but I don't need acquire semantics so that's pointlessly restrictive on arm/risc-v.
2023-09-30 02:15:19 +00:00
Weihang Lo
1ad3bb971b
Update cargo 2023-09-30 09:06:06 +08:00
bors
b8b376a287 Auto merge of #115368 - loongarch-rs:none-tier2, r=pietroalbini
Promote loongarch64-unknown-none* to Tier 2

MCP: https://github.com/rust-lang/compiler-team/issues/664
2023-09-30 00:33:43 +00:00
León Orell Valerian Liehr
841bff2e29
rustdoc: reduce the amount of asyncness query executions 2023-09-30 01:38:02 +02:00
León Orell Valerian Liehr
854cdff972
rustdoc: simplify sugared_async_return_type 2023-09-29 23:04:33 +02:00
bors
8ce4540bd6 Auto merge of #116275 - matthiaskrgr:rollup-prx5fto, r=matthiaskrgr
Rollup of 6 pull requests

Successful merges:

 - #112123 (fix(suggestion): insert projection to associated types)
 - #116024 (Implement Region for smir)
 - #116030 (run abi/compatibility test against a whole bunch of targets)
 - #116216 (ci: upgrade to crosstool-ng 1.26.0)
 - #116241 (Add Exclusive forwarding impls (FnOnce, FnMut, Generator))
 - #116263 (More fixes for running the test suite on a bare metal target)

r? `@ghost`
`@rustbot` modify labels: rollup
2023-09-29 20:31:52 +00:00
Matthias Krüger
3ee2c526df
Rollup merge of #116263 - ferrocene:pa-more-bare-metal-fixes, r=oli-obk
More fixes for running the test suite on a bare metal target

This PR adds more fixes needed to run the test suite on bare metal targets (in this case, without unwinding and with static relocations). There is no CI job exercising tests without unwinds, but I can confirm this worked in Ferrocene's CI.
2023-09-29 22:27:52 +02:00
Matthias Krüger
4db2b741c8
Rollup merge of #116241 - dtolnay:exclusivefwd, r=Amanieu
Add Exclusive forwarding impls (FnOnce, FnMut, Generator)

This is adapted from #104057.
2023-09-29 22:27:51 +02:00
Matthias Krüger
60ba6b494a
Rollup merge of #116216 - heiher:crosstool, r=Kobzol
ci: upgrade to crosstool-ng 1.26.0

This PR upgrades our builders from crosstool-ng 1.25.0 to 1.26.0. Except for LoongArch64 and RISC-V 64, which have minor version upgrades, other architectures have not changed.
2023-09-29 22:27:51 +02:00