35790 Commits

Author SHA1 Message Date
bors
89581ae706 Auto merge of #144393 - heiher:str-contains-lsx, r=tgross35
LoongArch64 LSX fast-path for `str.contains(&str)`

Benchmark results with LLVM 21 on LA664:

```
OLD:
test bench_is_contained_in ... bench:          43.63 ns/iter (+/- 0.04)

NEW:
test bench_is_contained_in ... bench:          12.81 ns/iter (+/- 0.01)
```
2025-07-29 20:44:32 +00:00
bors
68b4b6b50a Auto merge of #144557 - cjgillot:lower-more-span, r=compiler-errors
Complete span AST lowering.

r? `@ghost`
2025-07-29 17:39:48 +00:00
Hmikihiro
8583e35e4c replace make:: to SyntaxFactory:: in inline_type_alias 2025-07-29 23:25:13 +09:00
Hmikihiro
ec02abf97a add SyntaxFactory::record_expr to hide clone_for_update 2025-07-29 21:49:03 +09:00
Lukas Wirth
e57f18480d
Merge pull request #20337 from ChayimFriedman2/double-inlay-hints
fix: When displaying a projection into a type parameter that has bounds as `impl Trait`, collect only the bounds of this projection
2025-07-29 11:52:03 +00:00
Chayim Refael Friedman
9b8c5cfb0c When displaying a projection into a type parameter that has bounds as impl Trait, collect only the bounds of this projection
It used to collect the bounds of them all.
2025-07-29 14:40:14 +03:00
Lukas Wirth
c12ec2e062
Merge pull request #20154 from joshka/jm/improve-setting-titles
Improve settings tree title and descriptions
2025-07-29 10:42:07 +00:00
Lukas Wirth
06dc35840c
Merge pull request #20336 from ChayimFriedman2/mut-trait-impl-snippet
fix: In generate_mut_trait_impl, don't add a tabstop if the client does not support snippets
2025-07-29 10:12:14 +00:00
Chayim Refael Friedman
8394155fe6 In generate_mut_trait_impl, don't add a tabstop if the client does not support snippets 2025-07-29 12:37:06 +03:00
Laurențiu Nicola
67edaa332c
Merge pull request #20335 from Kobzol/ci-gh-app
Use GH app for authenticating sync PRs
2025-07-29 08:23:50 +00:00
Jakub Beránek
1c35087a31
Use GH app for authenticating sync PRs 2025-07-29 10:07:27 +02:00
Lukas Wirth
4bcc293637
Merge pull request #20333 from Veykril/push-xmulpqkxrytn
fix: Do not require all rename definitions to be renameable
2025-07-29 06:42:28 +00:00
Lukas Wirth
c81560c628 fix: Do not require all rename definitions to be renameable 2025-07-29 08:31:08 +02:00
Chayim Refael Friedman
4f407685b4
Merge pull request #20300 from A4-Tacks/fix-debug_assert-doc-gen
Fix gen panics doc template for debug_assert
2025-07-29 05:56:59 +00:00
bors
bbdc24af2b Auto merge of #143289 - scottmcm:remove-array-chunks, r=jhpratt
Remove `[T]::array_chunks(_mut)`

Since libs-api is proposing as much in https://github.com/rust-lang/rust/issues/74985#issuecomment-3024465102

Closes rust-lang/rust#74985
Closes rust-lang/rust#76354

try-job: dist-various-1
try-job: dist-various-2
2025-07-29 02:27:52 +00:00
bors
c09792080f Auto merge of #144524 - rust-lang:cargo_update, r=clubby789
Weekly `cargo update`

Automation to keep dependencies in `Cargo.lock` current.
r? dep-bumps

The following is the output from `cargo update`:

```txt

compiler & tools dependencies:
     Locking 3 packages to latest compatible versions
    Updating ipc-channel v0.20.0 -> v0.20.1
    Updating rand v0.9.1 -> v0.9.2
    Updating redox_syscall v0.5.13 -> v0.5.16
note: pass `--verbose` to see 37 unchanged dependencies behind latest

library dependencies:
     Locking 1 package to latest compatible version
    Updating rand v0.9.1 -> v0.9.2
note: pass `--verbose` to see 2 unchanged dependencies behind latest

rustbook dependencies:
     Locking 1 package to latest compatible version
    Updating redox_syscall v0.5.13 -> v0.5.16
```
2025-07-28 22:44:00 +00:00
bors
b7c0421d4d Auto merge of #144603 - lnicola:sync-from-ra, r=lnicola
`rust-analyzer` subtree update

Subtree update of `rust-analyzer` to 511c999bea.

Created using https://github.com/rust-lang/josh-sync.

r? `@ghost`
2025-07-28 19:39:43 +00:00
Laurențiu Nicola
511c999bea
Merge pull request #20321 from rust-lang/rustc-pull
Rustc pull update
2025-07-28 17:42:46 +00:00
Laurențiu Nicola
0d8ed0685f
Merge pull request #20330 from Kobzol/triagebot-reopen
Configure triagebot to reopen bot PRs
2025-07-28 17:37:03 +00:00
Laurențiu Nicola
572a79fd66 Format and bump rustc crates 2025-07-28 20:31:22 +03:00
Jakub Beránek
ffeb325e09
Configure triagebot to reopen bot PRs 2025-07-28 19:24:45 +02:00
Lukas Wirth
5c479edc49
Merge pull request #20313 from Veykril/push-qmorsnlvwlrr
fix: Fix runnables extra env not substituting env vars
2025-07-28 14:29:27 +00:00
Lukas Wirth
f6d09d365a
Merge pull request #20327 from Wilfred/saved_file_placeholder
Don't show '$saved_file' literally in IDE status updates
2025-07-28 14:29:05 +00:00
Shoyu Vanilla (Flint)
3a0cf54236
Merge pull request #20303 from Hmikihiro/migrate_path_transform
Migrate path transform
2025-07-28 13:33:08 +00:00
Wilfred Hughes
58fc69a852 Don't show '$saved_file' literally in IDE status updates
We've had a few users get confused when VS Code shows `my_custom_check
--args $saved_file`, as it looks like substitution didn't occur.

Instead, show `my_custom_check --args ...` in the display output. This
is also shorter, and the VS Code status bar generally works best with
short text.
2025-07-28 11:33:46 +01:00
Tshepang Mbambo
ce2021f6f6
Merge pull request #2519 from rust-lang/rustc-pull
Rustc pull update
2025-07-28 08:45:28 +02:00
The rustc-josh-sync Cronjob Bot
5f45867ee6 Merge ref '733dab558992' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 733dab558992d902d6d17576de1da768094e2cf3
Filtered ref: 8f0faf94fb41d4e2a85ef2d23e5495f6bea1f31d

This merge was created using https://github.com/rust-lang/josh-sync.
2025-07-28 06:31:02 +00:00
The rustc-josh-sync Cronjob Bot
43631be90f Prepare for merging from rust-lang/rust
This updates the rust-version file to 733dab558992d902d6d17576de1da768094e2cf3.
2025-07-28 06:30:59 +00:00
Laurențiu Nicola
eb3d909509
Merge pull request #20324 from lnicola/triagebot-josh-sync
minor: Adjust triagebot config for rustc-josh-sync
2025-07-28 06:13:36 +00:00
Laurențiu Nicola
99f957bd5d Adjust triagebot config for rustc-josh-sync 2025-07-28 09:01:54 +03:00
The rustc-josh-sync Cronjob Bot
c7334d51fb Merge ref '2b5e239c6b86' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 2b5e239c6b86cde974b0ef0f8e23754fb08ff3c5
Filtered ref: dde2393b3444ae8595633863f4395f526b1b7932

This merge was created using https://github.com/rust-lang/josh-sync.
2025-07-28 04:18:40 +00:00
bors
8f0faf94fb Auto merge of #144225 - purplesyringa:unwinding-intrinsics, r=nikic
Don't special-case llvm.* as nounwind

Certain LLVM intrinsics, such as `llvm.wasm.throw`, can unwind. Marking them as nounwind causes us to skip cleanup of locals and optimize out `catch_unwind` under inlining or when `llvm.wasm.throw` is used directly by user code.

The motivation for forcibly marking llvm.* as nounwind is no longer present: most intrinsics are linked as `extern "C"` or other non-unwinding ABIs, so we won't codegen `invoke` for them anyway.

Closes rust-lang/rust#132416.

`@rustbot` label +T-compiler +A-panic
2025-07-27 23:05:48 +00:00
Lukas Wirth
db02cdc7fc
Merge pull request #20319 from Veykril/push-znwukpmpsqxt
fix: Consider all produced artifacts for proc-macro dylib search
2025-07-28
2025-07-27 21:33:02 +00:00
Lukas Wirth
6b09fbf881 fix: Consider all produced artifacts for proc-macro dylib search 2025-07-27 23:21:42 +02:00
Lukas Wirth
e90966801e
Merge pull request #20318 from Veykril/push-vpqsrylmkqqm
fix: Ignore `Destruct` bounds again
2025-07-27 20:50:23 +00:00
Lukas Wirth
afee0710e1 Ignore Destruct bounds again 2025-07-27 22:39:01 +02:00
Lukas Wirth
b398bc6af7 Cleanup unstable flags handling 2025-07-27 22:39:01 +02:00
Laurențiu Nicola
098fdb4ff1
Merge pull request #20317 from Veykril/push-koossvzyyvmm
fix: Fix incorrect build script version check
2025-07-27 19:34:24 +00:00
Lukas Wirth
dd5129b832 fix: Fix incorrect build script version check 2025-07-27 21:22:50 +02:00
bors
76f8c7f459 Auto merge of #144434 - nnethercote:preintern-ty-bounds, r=compiler-errors
Preintern some `TyKind::Bound` values

The new trait solver produces a lot of these.

r? `@compiler-errors`
2025-07-27 18:58:43 +00:00
Lukas Wirth
68810295f2
Merge pull request #20315 from Veykril/push-pvmslwwouzzx
internal: Fix lockfile temp dir usage and use it for build scripts as well
2025-07-27 18:39:39 +00:00
Lukas Wirth
df85aac1d4 Copy lockfile when building build scripts 2025-07-27 20:28:22 +02:00
Lukas Wirth
7950da3940 internal: Better type proc macro dylib build data state 2025-07-27 19:37:16 +02:00
bors
3ba4dcc267 Auto merge of #144425 - nnethercote:avoid-new_adt-new_fn_def, r=compiler-errors
Avoid unnecessary `new_adt`/`new_fn_def` calls.

They can be skipped if there are no arguments, avoiding the "relate" operation work and also the subsequent interning.

r? `@ghost`
2025-07-27 15:56:47 +00:00
Shoyu Vanilla (Flint)
971c393ab3
Merge pull request #20305 from Hmikihiro/Migrate_part_of_utils
Migrate part of utils.rs to use SyntaxEditor
2025-07-27 14:43:01 +00:00
Hayashi Mikihiro
475ebb8fef Migrate convert_tuple_struct_to_named_struct' assist to use SyntaxEditor'
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-27 22:56:24 +09:00
Hayashi Mikihiro
d02bf21c47 migrate fn edit_struct_def in convert_tuple_struct_to_named_struct to SyntaxEditor
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-27 22:56:24 +09:00
Hayashi Mikihiro
6e2306faaf remove ted from convert_tuple_struct_to_named_struct
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-27 22:56:24 +09:00
Hmikihiro
96f619d0d0 Migrate inline_type_alias assist to use SyntaxEditor 2025-07-27 22:49:56 +09:00
Hmikihiro
feaf647b06 refactor: conpare text of name_ref instead of syntax name_ref 2025-07-27 22:49:56 +09:00