Commit Graph

303456 Commits

Author SHA1 Message Date
bors
cf38b8e663 Auto merge of #143157 - matthiaskrgr:rollup-90rtm3a, r=matthiaskrgr
Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#123476 (std::net: adding `unix_socket_exclbind` feature for solaris/illumos.)
 - rust-lang/rust#142708 (Do not include NUL-terminator in computed length)
 - rust-lang/rust#142963 (Skip unnecessary components in x64 try builds)
 - rust-lang/rust#142987 (rustdoc: show attributes on enum variants)
 - rust-lang/rust#143031 (Add windows-gnullvm hosts to the manifest)
 - rust-lang/rust#143082 (update internal `send_signal` comment)
 - rust-lang/rust#143110 (Use tidy to sort `sym::*` items)
 - rust-lang/rust#143111 (BTreeSet: remove duplicated code by reusing `from_sorted_iter`)
 - rust-lang/rust#143114 (Minor Documentation Improvements)

r? `@ghost`
`@rustbot` modify labels: rollup

try-job: dist-i586-gnu-i586-i686-musl
2025-06-28 22:13:42 +00:00
Antoni Boucher
38fa4a4861 Fix sysroot Cargo.toml for compiler-builtins 2025-06-28 18:08:26 -04:00
Guillaume Gomez
2359b6bd91 Fix signature of filter_landing_pad 2025-06-29 00:00:58 +02:00
Guillaume Gomez
a420d39afb Fix signature of filter_landing_pad 2025-06-29 00:00:58 +02:00
Ralf Jung
40ec14702b Merge pull request #4415 from YohDeadfall/sync-ra-configs
Synced rust-analyzer configs
2025-06-28 21:56:32 +00:00
Guillaume Gomez
5a29dddfdd Remove unwanted semi-colon in rustc_codegen_gcc 2025-06-28 23:50:00 +02:00
Guillaume Gomez
13d0ef30c9 Remove unwanted semi-colon in rustc_codegen_gcc 2025-06-28 23:50:00 +02:00
Guillaume Gomez
56af6625c8 Merge commit 'b7091eca6d8eb0fe88b58cc9a7aec405d8de5b85' into subtree-update_cg_gcc_2025-06-28 2025-06-28 23:37:08 +02:00
Guillaume Gomez
f8491b11f3 Merge commit 'b7091eca6d8eb0fe88b58cc9a7aec405d8de5b85' into subtree-update_cg_gcc_2025-06-28 2025-06-28 23:37:08 +02:00
Eric Huss
e0c8c3fbb0 Update cargo 2025-06-28 14:28:46 -07:00
Michael Goulet
1347b48584 Remove additional call to lookup_op_method 2025-06-28 20:48:58 +00:00
Michael Goulet
ed16ae851b Do not freshen ReError 2025-06-28 20:48:58 +00:00
Yoh Deadfall
6e05d61e38 Synced rust-analyzer configs 2025-06-28 23:35:10 +03:00
Antoni Boucher
a80f3c4a84 Fix clippy warnings 2025-06-28 16:31:38 -04:00
Antoni Boucher
a836612ab0 Merge branch 'master' into sync_from_rust_2025_06_28 2025-06-28 16:25:46 -04:00
Matthias Krüger
a62de822fa Rollup merge of #143114 - leopardracer:master, r=RalfJung
Minor Documentation Improvements

---

## Description
- Fixed typos and improved clarity in comments and documentation.

---
2025-06-28 22:05:33 +02:00
Matthias Krüger
dc08a0add8 Rollup merge of #143111 - xu-cheng:btreeset_from_iter, r=Mark-Simulacrum
BTreeSet: remove duplicated code by reusing `from_sorted_iter`

The method `BTreeSet::from_sorted_iter` was introduced in 49ccb7519f, but it was not consistently used throughout the codebase. As a result, some code redundantly reimplemented its logic. This commit fixes the problem.
2025-06-28 22:05:33 +02:00
Matthias Krüger
7103bbb86a Rollup merge of #143110 - yotamofek:pr/tidy-sort-for-symbols, r=nnethercote
Use tidy to sort `sym::*` items

Use tidy to sort the symbols in the invocation of `symbols!`, instead of implementing the ordering check inside the proc macro.

(asked `````@nnethercote````` about this on zulip, he didn't have any reservations about making this change)

This has a couple of benefits:
- tidy's "version sort" (thanks to rust-lang/rust#141311 !) is nicer than the naive-cmp sort, so, e.g. `AtomicI{8, 16, 32, 64, 128}` are properly sorted by bit width.
- consistency with the rest of the repo
- allows us to remove a bit of order-verifying code from the `symbols!` proc macro impl
2025-06-28 22:05:32 +02:00
Matthias Krüger
02cb521cbf Rollup merge of #143082 - fee1-dead-contrib:push-qvvppzukvkxt, r=Mark-Simulacrum
update internal `send_signal` comment

the vxwork did not have the old comment updated in rust-lang/rust#141990 so update here;

signaling -> sending signals to because the latter reads better to me.
2025-06-28 22:05:31 +02:00
Matthias Krüger
ac227500a2 Rollup merge of #143031 - mati865:push-mutywntmvomx, r=Mark-Simulacrum
Add windows-gnullvm hosts to the manifest

I made a mistake testing https://github.com/rust-lang/rust/pull/140772 only with `rustup-toolchain-install-master` which doesn't care about the manifests.

This means windows-gnullvm self-hosting will have to wait one more release, unless this change is backported to beta and a new beta release is made, which doesn't seem worth the trouble.
2025-06-28 22:05:30 +02:00
Matthias Krüger
8f30a98591 Rollup merge of #142987 - lolbinarycat:rustdoc-non_exhaustive-enum-v-142599, r=GuillaumeGomez
rustdoc: show attributes on enum variants

mostly for #[non_exhaustive]

unsure if there's any attributes we should take care to *not* include, it could use `render_code_attribute` and `is_non_exhaustive` instead, if that is a concern.

fixes rust-lang/rust#142599
2025-06-28 22:05:30 +02:00
Matthias Krüger
5e725a6367 Rollup merge of #142963 - Kobzol:try-build-skip, r=jieyouxu
Skip unnecessary components in x64 try builds

We unnecessarily rebuild `wasm-component-ld`, `llvm-bitcode-linker` and Cranelift during the intermediate PGO builds several times times, which is unnecessarily and increases the duration of try builds. This PR also disables some unnecessary dist components.

r? `````@jieyouxu`````
2025-06-28 22:05:29 +02:00
Matthias Krüger
c6de7ca41a Rollup merge of #142708 - Darksonn:location-len-without-nul, r=Mark-Simulacrum
Do not include NUL-terminator in computed length

This PR contains just the first commit of rust-lang/rust#142579 which changes it so that the string length stored in the `Location` is the length of the `&str` rather than the length of the `&CStr`. Since most users will want the `&str` length, it seems better to optimize for that use-case.

There should be no visible changes in the behavior or API.
2025-06-28 22:05:28 +02:00
Matthias Krüger
7394bd5fc2 Rollup merge of #123476 - devnexen:std_net_solaris_exclbind, r=Mark-Simulacrum
std::net: adding `unix_socket_exclbind` feature for solaris/illumos.

allows to have a tigher control over the binding exclusivness of the socket.

ACP: https://github.com/rust-lang/libs-team/issues/366
2025-06-28 22:05:27 +02:00
antoyo
b7091eca6d Merge pull request #694 from rust-lang/sync_from_rust_2025_06_02
Sync from rust 2025/06/02
2025-06-28 16:02:50 -04:00
Antoni Boucher
8385f3c4b0 Stop skipping libcore's f16::test_total_cmp 2025-06-28 15:41:58 -04:00
Antoni Boucher
f876b18783 Add TODOs 2025-06-28 15:40:48 -04:00
Antoni Boucher
49e65a0459 Remove commented code 2025-06-28 15:38:35 -04:00
Yotam Ofek
581cb1100e librustdoc: use tidy for sorting attrs and deps 2025-06-28 19:25:35 +00:00
Yotam Ofek
96fcd06d41 librustdoc: remove unused feature gates 2025-06-28 19:20:49 +00:00
Antoni Boucher
c7c16223ce Ignore failing test 2025-06-28 15:17:42 -04:00
Yotam Ofek
bcb287dca5 librustdoc: remove unneeded #[recursion_limit] 2025-06-28 19:13:38 +00:00
Yotam Ofek
09e4ee5fbc librustdoc: remove unneeded #[allow]s 2025-06-28 19:13:25 +00:00
bors
11ad40bb83 Auto merge of #142625 - cjgillot:inline-nocycle, r=oli-obk
Only compute recursive callees once.

Inlining MIR in a cyclic call graph may create query cycles, which are ICEs. The current implementation `mir_callgraph_reachable(inlining_candidate, being_optimized)` checks if calling `inlining_candidate` may cycle back to `being_optimized` that we are currently inlining into.

This PR replaces this device with query `mir_callgraph_cyclic(being_optimized)` which searches the call graph for all cycles going back to `being_optimized`, and returns the set of functions involved in those cycles.

This is a tradeoff:
- in the current implementation, we perform more walks, but shallower;
- in this new implementation, we perform fewer walks, but exhaust the graph.

I'd have liked to compute this using some kind of SCC, but generic parameters make resolution path-dependent, so usual graph algorithms do not apply.
2025-06-28 19:11:42 +00:00
Antoni Boucher
eb4d429515 Fix for libgccjit 12 2025-06-28 14:55:31 -04:00
Antoni Boucher
144989400e Fix to use Function instead of RValue 2025-06-28 14:51:16 -04:00
Antoni Boucher
5735bb39ab Merge branch 'master' into sync_from_rust_2025_06_02 2025-06-28 14:49:27 -04:00
Antoni Boucher
7c71c8388f Fix type_name intrinsic 2025-06-28 14:44:54 -04:00
Kivooeo
3d81af8c55 moved tests 2025-06-28 23:12:32 +05:00
bohan
f99cdf8b1c explain ImportData::imported_module 2025-06-29 00:23:35 +08:00
наб
45204ef4f4 "set by Rusts options". Remove misleading always-true if cfg!(unix). Drop #![feature(rustc_private)] 2025-06-28 17:57:57 +02:00
bors
7ba34c7045 Auto merge of #142317 - compiler-errors:perf-fold, r=lcnr
Don't fold in Instantiate when there's nothing to fold

Maybe this helps idk

r? lcnr
2025-06-28 13:31:12 +00:00
Florian Sextl
1c25bfba9d move discr=varid check to layout_sanity_check 2025-06-28 14:47:27 +02:00
Kivooeo
f4502b8f0e cleaned up some tests 2025-06-28 17:04:16 +05:00
Florian Sextl
3d968973c9 fix docs of FakeBorrowKind 2025-06-28 13:54:51 +02:00
Florian Sextl
ac6cfdef13 improve TagEncoding docs 2025-06-28 13:54:51 +02:00
Jonathan Brouwer
1249c14232 Port #[link_name] to the new attribute parsing infrastructure
Co-authored-by: Anne Stijns <anstijns@gmail.com>
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-06-28 13:53:37 +02:00
Ralf Jung
85357d1e5c update lockfile 2025-06-28 13:33:12 +02:00
Kivooeo
aac948b702 cleaned up some tests 2025-06-28 16:24:17 +05:00
Kornel
c9ef11695f Keep inlined var_debug_info only when full debug info is used 2025-06-28 12:22:49 +01:00