Commit Graph

4204 Commits

Author SHA1 Message Date
bors a7cdec89dc Auto merge of #141717 - jhpratt:rollup-neu8nzl, r=jhpratt
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#138285 (Stabilize `repr128`)
 - rust-lang/rust#139994 (add `CStr::display`)
 - rust-lang/rust#141571 (coretests: extend and simplify float tests)
 - rust-lang/rust#141656 (CI: Add cargo tests to aarch64-apple-darwin)

Failed merges:

 - rust-lang/rust#141430 (remove `visit_clobber` and move `DummyAstNode` to `rustc_expand`)
 - rust-lang/rust#141636 (avoid some usages of `&mut P<T>` in AST visitors)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-05-29 08:53:27 +00:00
许杰友 Jieyou Xu (Joe) 60d52c8b52
Merge pull request #2425 from jieyouxu/adjust-triagebot 2025-05-29 16:38:11 +08:00
Jieyou Xu afb57b1f06
triagebot: update `[issue-links]` config 2025-05-29 16:37:09 +08:00
Jieyou Xu 02088e7791
triagebot: add doc backlink for `[no-mentions]` 2025-05-29 16:37:09 +08:00
Jieyou Xu 604343a24e
triagebot: enable note functionality 2025-05-29 16:37:06 +08:00
Jieyou Xu 77b0952142
triagebot: enable issue transfer 2025-05-29 16:37:02 +08:00
Jieyou Xu 7485ed7fbc
triagebot: enable PR review status flipping and its shortcuts 2025-05-29 16:15:04 +08:00
Jieyou Xu 6f298ff4b7
triagebot: apply `needs-triage` label for new issues 2025-05-29 16:13:03 +08:00
Jieyou Xu 531ef6c610
triagebot: adjust `allow-unauthenticated` labels 2025-05-29 16:12:35 +08:00
bors 8c21631ebc Auto merge of #141716 - jhpratt:rollup-9bjrzfi, r=jhpratt
Rollup of 16 pull requests

Successful merges:

 - rust-lang/rust#136429 (GCI: At their def site, actually wfcheck the where-clause & always eval free lifetime-generic constants)
 - rust-lang/rust#138139 (Emit warning while outputs is not exe and prints linkage info)
 - rust-lang/rust#141104 (Test(fs): Fix `test_eq_windows_file_type` for Windows 7)
 - rust-lang/rust#141477 (Path::with_extension: show that it adds an extension where one did no…)
 - rust-lang/rust#141533 (clean up old rintf leftovers)
 - rust-lang/rust#141612 (Call out possibility of invariant result in variance markers)
 - rust-lang/rust#141638 (Use `builtin_index` instead of hand-rolling it)
 - rust-lang/rust#141643 (ci: verify that codebuild jobs use ghcr.io)
 - rust-lang/rust#141675 (Reorder `ast::ItemKind::{Struct,Enum,Union}` fields.)
 - rust-lang/rust#141680 (replace TraitRef link memory.md)
 - rust-lang/rust#141682 (interpret/allocation: Fixup type for `alloc_bytes`)
 - rust-lang/rust#141683 (Handle ed2021 precise capturing of unsafe binder)
 - rust-lang/rust#141684 (rustbook: Bump versions of `onig` and `onig_sys`)
 - rust-lang/rust#141687 (core: unstably expose atomic_compare_exchange so stdarch can use it)
 - rust-lang/rust#141690 (Add `rustc_diagnostic_item` to `sys::Mutex` methods)
 - rust-lang/rust#141702 (Add eholk to compiler reviewer rotation)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-05-29 05:41:04 +00:00
Jacob Pratt 10771a9a79
Rollup merge of #141702 - eholk:eholk-reviewers, r=aDotInTheVoid
Add eholk to compiler reviewer rotation

Now that we have work queue limits on triagebot, I'm happy to share some of the review load.

r? ``@wesleywiser``
2025-05-29 04:49:47 +02:00
Jacob Pratt eb19d9b48c
Rollup merge of #141690 - Patrick-6:intercept-mutex, r=m-ou-se
Add `rustc_diagnostic_item` to `sys::Mutex` methods

For an ongoing project for adding a concurrency model checker to Miri we need to be able to intercept locking/unlocking operations on standard library mutexes.

This PR adds diagnostic items to the relevant calls `lock`, `try_lock` and `unlock` for the `sys::Mutex` implementation on the targets we care about.
This PR also makes the internals of `pthread::Mutex` less public, to reduce the chance of anyone locking/unlocking a mutex without going through the intercepted methods.

r? ``@RalfJung``
2025-05-29 04:49:47 +02:00
Jacob Pratt 7c783dad9f
Rollup merge of #141687 - RalfJung:atomic_compare_exchange, r=bjorn3
core: unstably expose atomic_compare_exchange so stdarch can use it

Due to https://github.com/rust-lang/stdarch/issues/1655, cleaning up the atomic intrinsics will be a bunch of extra work: stdarch directly calls them [here](8764244589/crates/core_arch/src/x86_64/cmpxchg16b.rs (L58-L74)).

Instead of duplicating that match, stdarch should use what we have in libcore, so let's expose that.

r? `@bjorn3`
2025-05-29 04:49:46 +02:00
Jacob Pratt 228227bae3
Rollup merge of #141684 - petrochenkov:bumponig, r=ehuss
rustbook: Bump versions of `onig` and `onig_sys`

This fixes the build on GCC 15.
2025-05-29 04:49:46 +02:00
Jacob Pratt 441d57951f
Rollup merge of #141683 - compiler-errors:unsafe-binder-capture, r=oli-obk
Handle ed2021 precise capturing of unsafe binder

Missing pieces from last pr.

r? oli-obk

Fixes https://github.com/rust-lang/rust/issues/141655
2025-05-29 04:49:45 +02:00
Jacob Pratt 3d531a4c5a
Rollup merge of #141682 - nia-e:fixup-alloc, r=RalfJung
interpret/allocation: Fixup type for `alloc_bytes`

This can be `FnOnce`, which helps us avoid an extra clone in rust-lang/miri#4343

r? RalfJung
2025-05-29 04:49:45 +02:00
Jacob Pratt 66f365d5bf
Rollup merge of #141680 - davidjsonn:master, r=oli-obk
replace TraitRef link memory.md

Hi, I fixed broken links in the documentation and replaced them with working ones.

https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TraitRef.html - old link
https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/type.TraitRef.html - new link
2025-05-29 04:49:44 +02:00
Jacob Pratt 86e53f09db
Rollup merge of #138139 - xizheyin:issue-137384, r=ChrisDenton
Emit warning while outputs is not exe and prints linkage info

cc #137384

```bash
$ rustc +stage1 /dev/null --print native-static-libs --crate-type staticlib  --emit metadata
warning: skipping link step due to conflict: cannot output linkage information without emitting executable

note: consider emitting executable to print link information

warning: 1 warning emitted
```
2025-05-29 04:49:40 +02:00
bors 6ebb2adf6e Auto merge of #141693 - lnicola:sync-from-ra, r=lnicola
Subtree update of `rust-analyzer`

r? `@ghost`
2025-05-28 23:05:24 +00:00
许杰友 Jieyou Xu (Joe) 39644164b8
Merge pull request #2420 from rust-lang/aDotInTheVoid-patch-1
directives.md: Fix `//@ build_aux_docs` -> `//@ build-aux-docs`
2025-05-29 05:04:46 +08:00
许杰友 Jieyou Xu (Joe) b4b44bb6c0
Merge pull request #2421 from aDotInTheVoid/slashslashat
Fix some old `// <directive>` to `//@ <directive>`
2025-05-29 05:03:49 +08:00
Alona Enraght-Moony 655367d8b8 Fix some old `// <directive>` to `//@ <directive>` 2025-05-28 20:32:56 +01:00
Alona Enraght-Moony 812a949c11
directives.md: Fix `//@ build_aux_docs` -> `//@ build-aux-docs` 2025-05-28 20:18:56 +01:00
David Klank fa22636979
replace TraitRef link memory.md 2025-05-28 13:50:38 +03:00
Tshepang Mbambo 234bc7b8a5
Merge pull request #2419 from rust-lang/tshepang-patch-1
make link not inline
2025-05-27 21:21:44 +02:00
Tshepang Mbambo 6da83f69ce
make link not inline 2025-05-27 21:21:18 +02:00
nora 568fbad863
Merge pull request #2417 from smanilov/patch-16
Make links in coinduction.md clickable
2025-05-27 18:53:29 +02:00
nora a66ffa790e
Merge pull request #2418 from smanilov/patch-17
Link to description of opaque types
2025-05-27 18:52:53 +02:00
Stan Manilov e93a924d19 Make links in coinduction.md clickable
Although they are clickable in the github preview, they aren't in the actual rendered HTML on https://rustc-dev-guide.rust-lang.org/.

This commit fixes that.
2025-05-27 18:53:30 +03:00
Stan Manilov 01f8aee93b Link to description of opaque types 2025-05-27 18:50:31 +03:00
León Orell Valerian Liehr a20005c9ec
Merge pull request #2416 from rust-lang/tshepang-patch-1
diagnostic translations work is on pause
2025-05-26 22:14:47 +02:00
Tshepang Mbambo d90b7d7ac1
diagnostic translations work is on pause 2025-05-26 22:09:35 +02:00
Alona Enraght-Moony c122f5dc64
Merge pull request #2415 from rust-lang/aDotInTheVoid-patch-1
Remove rustdoc askama migration from getting started
2025-05-26 20:56:45 +01:00
Alona Enraght-Moony 482f61ad85
Remove rustdoc askama migration from getting started
This effort is blocked, so pointing new contributors here would be setting them up for failure.

https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/about.3A.20status.20of.20askama.20migration/with/497389045
2025-05-26 20:56:14 +01:00
Tshepang Mbambo e05b494faa
Merge pull request #2407 from smanilov/patch-14
Add time reference and tracking info for trait system refactor
2025-05-26 18:49:20 +02:00
Boxy 328563d231
Merge pull request #2414 from smanilov/patch-15
Link normalization chapter
2025-05-26 13:44:34 +01:00
Stan Manilov 03a857ec79 Add time reference and tracking info for trait system refactor 2025-05-26 15:43:07 +03:00
Stan Manilov a863290b9a
Link normalization chapter 2025-05-26 15:39:25 +03:00
León Orell Valerian Liehr ceae66b762
Merge pull request #2413 from fmease/glacier-no-crashes-tests-yes
Flesh out sections about crashes tests and update mentions of glacier
2025-05-26 13:55:14 +02:00
León Orell Valerian Liehr 290bacb73e
Flesh out sections about crashes tests and update mentions of glacier 2025-05-26 13:54:49 +02:00
Lukas Wirth 968c5b5b8d
Merge pull request #19792 from A4-Tacks/fix-generate-mut-trait-impl-indent
fix: ide-assists, generate mut trait impl indent
2025-05-26 08:29:22 +00:00
Lukas Wirth d8a1838350
Merge pull request #19819 from Veykril/push-utvzwvwuuvlm
Change import prefix default to be by crate
2025-05-26 08:28:16 +00:00
Lukas Wirth 11e483f9dd
Merge pull request #19785 from A4-Tacks/fix-generate-new-indent
fixes: ide-assists, generate_new indent loses
2025-05-26 07:24:41 +00:00
bors fa0a715b59 Auto merge of #138489 - tmiasko:call-tmps-lifetime, r=workingjubilee
Describe lifetime of call argument temporaries passed indirectly

Fixes #132014.
2025-05-26 01:16:52 +00:00
bors 4a58da1c2e Auto merge of #141086 - a1phyr:spec_advance_by, r=jhpratt
Implement `advance_by` via `try_fold` for `Sized` iterators

When `try_fold` is overriden, it is usually easier for compilers to optimize.

Example difference: https://iter.godbolt.org/z/z8cEfnKro
2025-05-25 11:34:43 +00:00
bors 36dcd2deb6 Auto merge of #141372 - khuey:ir_call_dbg_loc, r=jieyouxu
Use the fn_span when emitting function calls for better debug info.

This especially improves the developer experience for long chains of function calls that span multiple lines, which is common with builder patterns, chains of iterator/future combinators, etc.

try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1
try-job: arm-android

r? `@jieyouxu`
2025-05-24 17:48:21 +00:00
许杰友 Jieyou Xu (Joe) 476328a113
Merge pull request #2357 from mejrs/diag
Update `rustc_on_unimplemented` docs
2025-05-25 01:18:36 +08:00
mejrs 0ca84c1313 Update `rustc_on_unimplemented` docs 2025-05-24 19:16:01 +02:00
Jakub Beránek cc3f2ebd73
Merge pull request #2405 from Kobzol/remove-mentions-of-rust-lang-ci
Remove mentions of rust-lang-ci/rust
2025-05-24 14:14:56 +02:00
Tshepang Mbambo b2e388e6cb
Merge pull request #2410 from rust-lang/tshepang-patch-1
typo
2025-05-24 01:42:06 +02:00