Lukas Wirth
99526ef6ef
Merge pull request #20368 from Hmikihiro/migrate_delegate_methods
...
Migrate `generate_delegate_methods` assist to use `SyntaxEditor`
2025-08-03 06:37:22 +00:00
Lukas Wirth
22ec3e51a6
Merge pull request #20364 from Hmikihiro/migrate_convert_from_to_tryfrom
...
Migrate `convert_from_to_tryfrom` assist to use `SyntaxEditor`
2025-08-03 06:36:15 +00:00
Tshepang Mbambo
0f2ed2b3e6
Merge pull request #2509 from rust-lang/tshepang-auto-toc
...
make toc generation fully automatic
2025-08-03 06:55:44 +02:00
Lukas Wirth
5daac5567b
Merge pull request #20351 from ChayimFriedman2/rename-self1
...
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
feat: When renaming a parameter to `self`, change callers to use method call syntax
2025-08-02 18:50:08 +00:00
Chayim Refael Friedman
74ecb1e788
When renaming a parameter to self, change callers to use method call syntax
2025-08-02 21:39:22 +03:00
Chayim Refael Friedman
e91b6271a8
Merge pull request #20358 from iorizu/issue-20346
...
minor: Fix documentation for `*.overrideCommand` config options
2025-08-02 18:18:36 +00:00
Hmikihiro
85f7112c0e
Migrate generate_delegate_methods assist to use SyntaxEditor
2025-08-03 02:17:56 +09:00
Hmikihiro
c2275c28e1
Migrate convert_from_to_tryfrom assist to use SyntaxEditor
2025-08-02 20:35:09 +09:00
bors
7948e960e9
Auto merge of #144479 - cjgillot:incr-privacy-mod, r=petrochenkov
...
Perform check_private_in_public by module.
Based on https://github.com/rust-lang/rust/pull/116316
2025-08-02 01:59:11 +00:00
Tshepang Mbambo
e5c5d75726
Merge pull request #2526 from rust-lang/rustc-pull
...
Rustc pull update
2025-08-02 00:40:01 +02:00
Ifeanyi Orizu
dbae9ae357
Fix more docs
2025-08-01 10:48:54 -05:00
Ifeanyi Orizu
76b2333c1b
Update documentation for overrideCommand config options
2025-08-01 10:48:54 -05:00
lcnr
21639e3842
Merge pull request #2530 from lcnr/type-system-invariants
...
fix link
2025-08-01 15:50:18 +02:00
lcnr
91e95bf463
Merge pull request #2529 from lcnr/type-system-invariants
...
add a chapter documenting candidate preference
2025-08-01 15:27:32 +02:00
Shoyu Vanilla (Flint)
68e7ec90bf
Merge pull request #20345 from Hmikihiro/Migrate_add_trait_assoc_items_to_impl
...
metrics / build_metrics (push) Has been cancelled
rustdoc / rustdoc (push) Has been cancelled
metrics / other_metrics (diesel-1.4.8) (push) Has been cancelled
metrics / other_metrics (hyper-0.14.18) (push) Has been cancelled
metrics / other_metrics (ripgrep-13.0.0) (push) Has been cancelled
metrics / other_metrics (self) (push) Has been cancelled
metrics / other_metrics (webrender-2022) (push) Has been cancelled
metrics / generate_final_metrics (push) Has been cancelled
add `SyntaxEditor::delete_all` to migrate utils.rs `add_trait_assoc_items_to_impl`
2025-07-31 15:11:22 +00:00
Lukas Wirth
46f97f3bcf
Merge pull request #20349 from Veykril/push-orvqsnqtttzv
...
`cargo clippy --fix`
2025-07-31 09:47:38 +00:00
Lukas Wirth
8ce30264c8
cargo clippy --fix
2025-07-31 10:55:10 +02:00
Lukas Wirth
423c7dd23a
Merge pull request #20342 from Veykril/push-zysqtqskuxvr
...
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
Reorganize proc-macro-srv more, add `--format` and `--version` args
2025-07-31 08:21:52 +00:00
Lukas Wirth
87625cc166
Add version command to proc-macro-srv
2025-07-31 10:10:50 +02:00
Lukas Wirth
218e00d0bb
Reorganize proc-macro-srv
2025-07-31 09:55:07 +02:00
Lukas Wirth
a7a365e8f8
Properly clean proc-macro-srv proc-macro temp dir
2025-07-31 09:36:49 +02:00
The rustc-josh-sync Cronjob Bot
71bcc15585
Merge ref '32e7a4b92b10' from rust-lang/rust
...
Pull recent changes from https://github.com/rust-lang/rust via Josh.
Upstream ref: 32e7a4b92b109c24e9822c862a7c74436b50e564
Filtered ref: d39f3479bfafb04026ed3afec68aa671d13e9c3c
This merge was created using https://github.com/rust-lang/josh-sync .
2025-07-31 04:17:04 +00:00
bors
c3d2e7ba5d
Auto merge of #144405 - lcnr:hir-typeck-uniquify, r=BoxyUwU
...
uniquify root goals during HIR typeck
We need to rely on region identity to deal with hangs such as https://github.com/rust-lang/trait-system-refactor-initiative/issues/210 and to keep the current behavior of `fn try_merge_responses`.
This is a problem as borrowck starts by replacing each *occurrence* of a region with a unique inference variable. This frequently splits a single region during HIR typeck into multiple distinct regions. As we assume goals to always succeed during borrowck, relying on two occurances of a region being identical during HIR typeck causes ICE. See the now fixed examples in https://github.com/rust-lang/trait-system-refactor-initiative/issues/27 and rust-lang/rust#139409 .
We've previously tried to avoid this issue by always *uniquifying* regions when canonicalizing goals. This prevents caching subtrees during canonicalization which resulted in hangs for very large types. People rely on such types in practice, which caused us to revert our attempt to reinstate `#[type_length_limit]` in https://github.com/rust-lang/rust/pull/127670 . The complete list of changes here:
- rust-lang/rust#107981
- rust-lang/rust#110180
- rust-lang/rust#114117
- rust-lang/rust#130821
After more consideration, all occurrences of such large types need to happen outside of typeck/borrowck. We know this as we already walk over all types in the MIR body when replacing their regions with nll vars.
This PR therefore enables us to rely on region identity inside of the trait solver by exclusively **uniquifying root goals during HIR typeck**. These are the only goals we assume to hold during borrowck. This is insufficient as type inference variables may "hide" regions we later uniquify. Because of this, we now stash proven goals which depend on inference variables in HIR typeck and reprove them after writeback. This closes https://github.com/rust-lang/trait-system-refactor-initiative/issues/127 .
This was originally part of rust-lang/rust#144258 but I've moved it into a separate PR. While I believe we need to rely on region identity to fix the performance issues in some way, I don't know whether rust-lang/rust#144258 is the best approach to actually do so. Regardless of how we deal with the hangs however, this change is necessary and desirable regardless.
r? `@compiler-errors` or `@BoxyUwU`
2025-07-31 00:32:55 +00:00
bors
a51eb314aa
Auto merge of #116316 - cjgillot:incr-privacy, r=petrochenkov
...
Remove eval_always from check_private_in_public.
This PR attempts to avoid re-computing `check_private_in_public` query. First by marking the query as non-`eval_always`, and by reducing the amount of accesses to HIR as much as possible.
Latest perf https://github.com/rust-lang/rust/pull/116316#issuecomment-3094672105 shows that we manage it. The cost is extra dep-graph bookkeeping.
2025-07-30 21:29:47 +00:00
Hmikihiro
e600060680
add SyntaxEditor::delete_all to migrate utils.rs add_trait_assoc_items_to_impl
2025-07-30 23:53:05 +09:00
Lukas Wirth
4d5bb86ad7
Abtract away json protocol for proc-macro-srv
2025-07-30 15:52:10 +02:00
bors
0df096161d
Auto merge of #144305 - ChrisDenton:win-free-disk-space, r=marcoieni
...
Free disk space on Windows 2025 runners
I've managed to reduce the time deletion takes by:
- Using powershell, which is generally faster for filesystem operations than msys2
- Performing deletions concurrently then waiting for them all to complete
It still takes 2-10 mins but that's not too bad.
2025-07-30 06:00:09 +00:00
bors
041b0c999a
Auto merge of #144577 - oli-obk:wrapping-niche, r=scottmcm
...
Pick the largest niche even if the largest niche is wrapped around
fixes rust-lang/rust#144388
r? `@scottmcm`
2025-07-30 02:57:04 +00:00
Shoyu Vanilla (Flint)
8611b71459
Merge pull request #20314 from Hmikihiro/Migrate_inline_type_alias_to_syntax_editor
...
metrics / build_metrics (push) Has been cancelled
rustdoc / rustdoc (push) Has been cancelled
metrics / other_metrics (diesel-1.4.8) (push) Has been cancelled
metrics / other_metrics (hyper-0.14.18) (push) Has been cancelled
metrics / other_metrics (ripgrep-13.0.0) (push) Has been cancelled
metrics / other_metrics (self) (push) Has been cancelled
metrics / other_metrics (webrender-2022) (push) Has been cancelled
metrics / generate_final_metrics (push) Has been cancelled
Migrate `inline_type_alias` assist to use `syntax_editor`
2025-07-30 01:24:17 +00:00
Shoyu Vanilla (Flint)
b0d2487ea6
Merge pull request #20311 from Hmikihiro/migrate_convert_tuple_struct_to_named_struct
...
Migrate `convert_tuple_struct_to_named_struct` assist to use `SyntaxEditor`
2025-07-30 01:22:35 +00:00
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
...
metrics / generate_final_metrics (push) Blocked by required conditions
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
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
...
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
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
...
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
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