Commit Graph

303456 Commits

Author SHA1 Message Date
Laurențiu Nicola
bec452fac1 Merge pull request #19078 from lnicola/no-ci-forks
minor: Stop running some release workflows on forks and update old URLs
2025-02-01 18:15:53 +00:00
Jakub Beránek
ff2cd0fb63 Remove duplicated CI triggers
There shouldn't be a need to run all CI jobs on all pushes.
2025-02-01 19:13:41 +01:00
Ralf Jung
da5e2d7fc6 Merge pull request #4170 from eduardosm/update-rand
Update rand and getrandom dependencies
2025-02-01 18:05:23 +00:00
Ben Kimock
eea88f5dcb Clean up MonoItem::instantiation_mode 2025-02-01 12:57:04 -05:00
bjorn3
cf5521b5a3 Enable x87 target feature on x86_64 2025-02-01 17:17:37 +00:00
antoyo
b825dbcc5b Merge pull request #616 from rust-lang/success-job
Add success job for all CI workflows
2025-02-01 12:12:42 -05:00
bjorn3
c8f0f36d66 Rustfmt 2025-02-01 16:47:02 +00:00
bjorn3
42271d452c Fix rustc test suite 2025-02-01 16:39:07 +00:00
Antoni Boucher
adee0849a2 Add success job for all CI workflows 2025-02-01 11:18:12 -05:00
bjorn3
3228d5ee62 Rustup to rustc 1.86.0-nightly (854f22563 2025-01-31) 2025-02-01 16:02:06 +00:00
bjorn3
77009e9924 Sync from rust 854f22563c 2025-02-01 15:54:08 +00:00
Jakub Beránek
48c7202b02 Reword submodule handling 2025-02-01 16:42:28 +01:00
Matthias Krüger
2a82ebdcb7 Rollup merge of #136374 - saethlin:enzyme-linkage, r=oli-obk
Add link attribute for Enzyme's LLVMRust FFI

Since https://github.com/rust-lang/rust/pull/133429 landed, the compiler doesn't build with `-Zcross-crate-inline-threshold=always`. I don't expect anyone else to test or fix issues with that goofy configuration, so I'm fixing it.

This PR adds a link attribute just like https://github.com/rust-lang/rust/pull/118142 for all the new LLVMRust functions. They were actually added in https://github.com/rust-lang/rust/pull/130060 but weren't used until just now.
2025-02-01 16:41:05 +01:00
Matthias Krüger
15a5f5f5e0 Rollup merge of #136364 - hkBst:ptr_cmp_docs, r=tgross35
document that ptr cmp is unsigned

Fixes #77497
2025-02-01 16:41:05 +01:00
Matthias Krüger
cbcb695f9e Rollup merge of #136360 - slanterns:once_wait, r=tgross35
Stabilize `once_wait`

Closes: https://github.com/rust-lang/rust/issues/127527.

`@rustbot` label: +T-libs-api

r? libs-api
2025-02-01 16:41:04 +01:00
Matthias Krüger
a56e85a827 Rollup merge of #136307 - WaffleLapkin:minminmin, r=scottmcm
Implement all mix/max functions in a (hopefully) more optimization amendable way

Previously the graph was like this:

```
min -> Ord::min -> min_by -> match on compare() (in these cases compare = Ord::cmp)
                                      ^
                                      |
                                 min_by_key
```
now it looks like this:
```
min -> Ord::min -> `<=` <- min_by_key

min_by -> `Ordering::is_le` of `compare()`
```
(`max*` and `minmax*` are the exact same, i.e. they also use `<=` and `is_le`)

I'm not sure how to test this, but it should probably be easier for the backend to optimize.

r? `@scottmcm`
cc https://github.com/rust-lang/rust/issues/115939#issuecomment-2622161134
2025-02-01 16:41:04 +01:00
Matthias Krüger
984cc68c1c Rollup merge of #130514 - compiler-errors:unsafe-binders, r=oli-obk
Implement MIR lowering for unsafe binders

This is the final bit of the unsafe binders puzzle. It implements MIR, CTFE, and codegen for unsafe binders, and enforces that (for now) they are `Copy`. Later on, I'll introduce a new trait that relaxes this requirement to being "is `Copy` or `ManuallyDrop<T>`" which more closely models how we treat union fields.

Namely, wrapping unsafe binders is now `Rvalue::WrapUnsafeBinder`, which acts much like an `Rvalue::Aggregate`. Unwrapping unsafe binders are implemented as a MIR projection `ProjectionElem::UnwrapUnsafeBinder`, which acts much like `ProjectionElem::Field`.

Tracking:
- https://github.com/rust-lang/rust/issues/130516
2025-02-01 16:41:03 +01:00
Matthias Krüger
bbb8733515 Rollup merge of #130514 - compiler-errors:unsafe-binders, r=oli-obk
Implement MIR lowering for unsafe binders

This is the final bit of the unsafe binders puzzle. It implements MIR, CTFE, and codegen for unsafe binders, and enforces that (for now) they are `Copy`. Later on, I'll introduce a new trait that relaxes this requirement to being "is `Copy` or `ManuallyDrop<T>`" which more closely models how we treat union fields.

Namely, wrapping unsafe binders is now `Rvalue::WrapUnsafeBinder`, which acts much like an `Rvalue::Aggregate`. Unwrapping unsafe binders are implemented as a MIR projection `ProjectionElem::UnwrapUnsafeBinder`, which acts much like `ProjectionElem::Field`.

Tracking:
- https://github.com/rust-lang/rust/issues/130516
2025-02-01 16:41:03 +01:00
Matthias Krüger
9dfdef618c Rollup merge of #135684 - ranger-ross:mutex-docs, r=joboet
docs: Documented Send and Sync requirements for Mutex + MutexGuard

This an attempt to continue where #123225 left off.

I did some light clean up from the work done in that PR.
I also documented the `!Send` + `Sync` implementations for `MutexGuard` to the best of my knowledge.
Let me know if I got anything wrong 😄

fixes #122856

cc: ``@IoaNNUwU``

r? ``@joboet``
2025-02-01 16:41:03 +01:00
Matthias Krüger
2fd3007cbc Rollup merge of #130514 - compiler-errors:unsafe-binders, r=oli-obk
Implement MIR lowering for unsafe binders

This is the final bit of the unsafe binders puzzle. It implements MIR, CTFE, and codegen for unsafe binders, and enforces that (for now) they are `Copy`. Later on, I'll introduce a new trait that relaxes this requirement to being "is `Copy` or `ManuallyDrop<T>`" which more closely models how we treat union fields.

Namely, wrapping unsafe binders is now `Rvalue::WrapUnsafeBinder`, which acts much like an `Rvalue::Aggregate`. Unwrapping unsafe binders are implemented as a MIR projection `ProjectionElem::UnwrapUnsafeBinder`, which acts much like `ProjectionElem::Field`.

Tracking:
- https://github.com/rust-lang/rust/issues/130516
2025-02-01 16:41:03 +01:00
Eduardo Sánchez Muñoz
eab3528b07 Test getrandom 0.3 2025-02-01 16:26:13 +01:00
Eduardo Sánchez Muñoz
13f3132aed Bump rand to 0.9 and getrandom to 0.3 2025-02-01 16:22:35 +01:00
Jakub Beránek
50fadea081 Merge pull request #2239 from Kobzol/ci-fix-2
Checkout repository sources in rustc-pull CI action
2025-02-01 15:52:25 +01:00
Jakub Beránek
97edb7a7c2 Checkout repository sources in rustc-pull CI action
This is needed for the `gh` command to work.
2025-02-01 15:50:00 +01:00
Marijn Schouten
55dc6dbcf0 document ptr comparison being by address 2025-02-01 15:28:44 +01:00
Manish Goregaokar
7e5cfbe373 Use a better message for toplevel_ref_arg lint (#14132)
A `ref` pattern applied to an argument is not ignored. It creates a
reference as expected, but still requires the function to take ownership
of the argument given to it.

Fix #14131

changelog: [`toplevel_ref_arg`]: use a clearer lint message
2025-02-01 14:13:06 +00:00
Samuel Tardieu
7848488e26 Use a better message for toplevel_ref_arg lint
A `ref` pattern applied to an argument is not ignored. It creates a
reference as expected, but still requires the function to take ownership
of the argument given to it.
2025-02-01 14:23:31 +01:00
Marijn Schouten
06171066d2 Fix sentence in process::abort 2025-02-01 13:32:01 +01:00
bors
e08cd3cf05 Auto merge of #136136 - marcoieni:ubuntu-24, r=Kobzol
ci: use ubuntu 24 on free runners

try-job: aarch64-gnu
try-job: aarch64-gnu-debug
2025-02-01 11:46:40 +00:00
许杰友 Jieyou Xu (Joe)
58c4b3ce4a tests: port split-debuginfo to rmake.rs
Co-authored-by: Oneirical <manchot@videotron.ca>
2025-02-01 16:14:58 +08:00
许杰友 Jieyou Xu (Joe)
1e87d00e11 run-make-support: add some stable rustc flag helpers 2025-02-01 16:14:36 +08:00
许杰友 Jieyou Xu (Joe)
68b6f92a56 run-make-support: add shallow_find_directories helper 2025-02-01 16:14:36 +08:00
许杰友 Jieyou Xu (Joe)
223e0f1ce1 tests: fix incorrect comment 2025-02-01 16:14:36 +08:00
许杰友 Jieyou Xu (Joe)
16e5ea4ec4 tests: fix incorrect comment for wrong path remap scope 2025-02-01 16:14:36 +08:00
许杰友 Jieyou Xu (Joe)
b06066341b tests: fix -Zunstable-options bug in split-debuginfo 2025-02-01 16:14:36 +08:00
许杰友 Jieyou Xu (Joe)
95ba76b3c5 tests: remove redundant -C debuginfo=2 when -g is already specified
`-g` is an alias for `-C debuginfo=2`.
2025-02-01 16:14:36 +08:00
许杰友 Jieyou Xu (Joe)
97ae7a0b8a tests: use an illustrative else-if branch in split-debuginfo Makefile
This does not work with GNU Make 3.80, but this is just to make it
easier to follow during review.
2025-02-01 16:14:36 +08:00
许杰友 Jieyou Xu (Joe)
d440ea0c8e tests: reformat split-debuginfo's Makefile
To make it easier to tell the conditional branching.
2025-02-01 16:14:36 +08:00
Scott McMurray
5e6ae8bb5c More PR feedback 2025-01-31 22:31:43 -08:00
Scott McMurray
61150a80f5 PR feedback 2025-01-31 22:29:09 -08:00
Scott McMurray
4ee1602eab Override disjoint_or in the LLVM backend 2025-01-31 22:29:08 -08:00
Scott McMurray
f23025305f Add unchecked_disjoint_bitor with fallback intrinsic implementation 2025-01-31 22:29:08 -08:00
Laurențiu Nicola
e70b589982 Stop running some release workflows on forks and update old URLs 2025-02-01 08:21:14 +02:00
lapla-cogito
f9669e4caf add MSRV check for lines_filter_map_ok 2025-02-01 15:20:34 +09:00
Ben Kimock
b82463fcbf Merge pull request #4169 from rust-lang/rustup-2025-02-01
Automatic Rustup
2025-02-01 05:39:41 +00:00
Ross Sullivan
3d84a49c37 docs: Documented Send and Sync requirements for Mutex + MutexGuard 2025-02-01 14:20:03 +09:00
The Miri Cronjob Bot
c925c826bf fmt 2025-02-01 05:14:23 +00:00
The Miri Cronjob Bot
aa74d61665 Merge from rustc 2025-02-01 05:13:09 +00:00
The Miri Cronjob Bot
027ce394ca Preparing for merge from rustc 2025-02-01 05:06:21 +00:00
lapla-cogito
2a52fbe5da add MSRV check for repeat_vec_with_capacity 2025-02-01 12:42:39 +09:00