Commit graph

301472 commits

Author SHA1 Message Date
Shoyu Vanilla (Flint)
cd0f643328
Merge pull request #20314 from Hmikihiro/Migrate_inline_type_alias_to_syntax_editor
Migrate `inline_type_alias` assist to use `syntax_editor`
2025-07-30 01:24:17 +00:00
Shoyu Vanilla (Flint)
a9c431633b
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
Hmikihiro
08c6768190 replace make:: to SyntaxFactory:: in inline_type_alias 2025-07-29 23:25:13 +09:00
Hmikihiro
cca89bcb7d add SyntaxFactory::record_expr to hide clone_for_update 2025-07-29 21:49:03 +09:00
Lukas Wirth
b2d9f17d6e
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
ea1e24a989 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
5043dc9df6
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
f5ecbb5eff
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
bad05ff4ff 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
f7c3a89932
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
1532b37010
Use GH app for authenticating sync PRs 2025-07-29 10:07:27 +02:00
Lukas Wirth
e45400afb8
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
8b214fbf17 fix: Do not require all rename definitions to be renameable 2025-07-29 08:31:08 +02:00
Chayim Refael Friedman
b4b9f3e555
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
Laurențiu Nicola
36df2c98c1
Merge pull request #20321 from rust-lang/rustc-pull
Rustc pull update
2025-07-28 17:42:46 +00:00
Laurențiu Nicola
2e3688e5b2
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
cde861ef36 Format and bump rustc crates 2025-07-28 20:31:22 +03:00
Jakub Beránek
86bef358fa
Configure triagebot to reopen bot PRs 2025-07-28 19:24:45 +02:00
Lukas Wirth
892b4554a8
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
a7c07f66be
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)
d026135732
Merge pull request #20303 from Hmikihiro/migrate_path_transform
Migrate path transform
2025-07-28 13:33:08 +00:00
Wilfred Hughes
d51db69e09 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
The rustc-josh-sync Cronjob Bot
f06945f047 Merge ref '733dab5589' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 733dab5589
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
d344aa8490 Prepare for merging from rust-lang/rust
This updates the rust-version file to 733dab5589.
2025-07-28 06:30:59 +00:00
Laurențiu Nicola
ccdbc276a2
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
dc88902f59 Adjust triagebot config for rustc-josh-sync 2025-07-28 09:01:54 +03:00
bors
733dab5589 Auto merge of #144556 - matthiaskrgr:rollup-aayo3h5, r=matthiaskrgr
Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#143607 (Port the proc macro attributes to the new attribute parsing infrastructure)
 - rust-lang/rust#144471 (Remove `compiler-builtins-{no-asm,mangled-names}`)
 - rust-lang/rust#144495 (bump cargo_metadata)
 - rust-lang/rust#144523 (rustdoc: save target modifiers)
 - rust-lang/rust#144534 (check_static_item: explain should_check_for_sync choices)
 - rust-lang/rust#144535 (miri: for ABI mismatch errors, say which argument is the problem)

Failed merges:

 - rust-lang/rust#144536 (miri subtree update)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-07-28 02:09:05 +00:00
Matthias Krüger
d33c8f9336
Rollup merge of #144535 - RalfJung:abi-mismatch-err, r=compiler-errors
miri: for ABI mismatch errors, say which argument is the problem
2025-07-28 01:16:40 +02:00
Matthias Krüger
ea7e539386
Rollup merge of #144534 - RalfJung:should_check_for_sync, r=compiler-errors
check_static_item: explain should_check_for_sync choices

Follow-up to https://github.com/rust-lang/rust/pull/144226.

r? ``@oli-obk``
2025-07-28 01:16:40 +02:00
Matthias Krüger
d776c5a835
Rollup merge of #144523 - ojeda:rustdoc-target-modifiers, r=GuillaumeGomez
rustdoc: save target modifiers

`rustdoc` was filling a `target_modifiers` variable, but it was not using the result.

In turn, that means that trying to use a dependency that set a target modifier fails.

For instance, running:

```sh
RUSTC_BOOTSTRAP=1 rustc --edition=2024 --target=aarch64-unknown-none-softfloat --sysroot=/dev/null --emit=metadata -Zfixed-x18 --crate-type rlib --crate-name core $(rustc --print sysroot)/lib/rustlib/src/rust/library/core/src/lib.rs

echo '#![allow(internal_features)]
' | RUSTC_BOOTSTRAP=1 rustdoc --edition=2021 --target=aarch64-unknown-none-softfloat --sysroot=/dev/null -Zfixed-x18 --extern core=libcore.rmeta -
```

will fail with:

```text
error: mixing `-Zfixed-x18` will cause an ABI mismatch in crate `rust_out`
  |
  = help: the `-Zfixed-x18` flag modifies the ABI so Rust crates compiled with different values of this flag cannot be used together safely
  = note: unset `-Zfixed-x18` in this crate is incompatible with `-Zfixed-x18=` in dependency `core`
  = help: set `-Zfixed-x18=` in this crate or unset `-Zfixed-x18` in `core`
  = help: if you are sure this will not cause problems, you may use `-Cunsafe-allow-abi-mismatch=fixed-x18` to silence this error
```

Thus save the targets modifiers in `Options` to then pass it to the session options, so that eventually the diff can be performed as expected in `report_incompatible_target_modifiers()`.

Cc: ``@azhogin``
Fixes: https://github.com/rust-lang/rust/issues/144521
2025-07-28 01:16:39 +02:00
Matthias Krüger
df6f530ff7
Rollup merge of #144495 - klensy:cargo_metadata, r=lqd
bump cargo_metadata

Bumps cargo_metadata. Change that required fixes is: e3373d02e7
2025-07-28 01:16:39 +02:00
Matthias Krüger
1e888ede5e
Rollup merge of #144471 - tgross35:compiler-builtins-asm, r=Amanieu
Remove `compiler-builtins-{no-asm,mangled-names}`

Remove `compiler-builtins-no-asm`

This feature used to be for when Cranelift didn't support inline
assembly, but its last uses were removed in 52933e0bd2 ("Don't disable
inline asm usage in compiler-builtins when the cranelift backend is
enabled"). and cba05a7a14 ("Support naked functions").

This doesn't remove the feature from the `compiler-builtins` crate, that
will be done separately in the subtree repo.

---

Remove `compiler-builtins-mangled-names`

This config was added in 207de019dc ("libary: Forward
compiler-builtins "asm"  and "mangled-names" feature") but it does not
appear this has ever been used. The PR adding it (rust-lang/rust#78472) says that
this was exposed to help with configuration and points at the [Hermit
Cargo config], but as far as I can tell, this feature name has never
been mentioned in that repository's git history.

Thus, clean up a seemingly unneeded feature.

[Hermit Cargo config]: ab2b830930/.cargo/config
2025-07-28 01:16:38 +02:00
Matthias Krüger
6bd327374a
Rollup merge of #143607 - JonathanBrouwer:proc_macro_attrs, r=jdonszelmann,traviscross
Port the proc macro attributes to the new attribute parsing infrastructure

Ports `#[proc_macro]`, `#[proc_macro_attribute]`, `#[proc_macro_derive]` and `#[rustc_builtin_macro]` to the new attribute parsing infrastructure for https://github.com/rust-lang/rust/issues/131229#issuecomment-2971351163

I've split this PR into commits for reviewability, and left some comments to clarify things
I did 4 related attributes in one PR because they share a lot of their code and logic, and doing them separately is kind of annoying as I need to leave both the old and new parsing in place then.

r? ``@oli-obk``
cc ``@jdonszelmann``
2025-07-28 01:16:38 +02:00
bors
2b5e239c6b 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
c41536e79e
Merge pull request #20319 from Veykril/push-znwukpmpsqxt
fix: Consider all produced artifacts for proc-macro dylib search
2025-07-27 21:33:02 +00:00
Lukas Wirth
81bdfd3910 fix: Consider all produced artifacts for proc-macro dylib search 2025-07-27 23:21:42 +02:00
Lukas Wirth
ea927c03e2
Merge pull request #20318 from Veykril/push-vpqsrylmkqqm
fix: Ignore `Destruct` bounds again
2025-07-27 20:50:23 +00:00
Lukas Wirth
d846d615aa Ignore Destruct bounds again 2025-07-27 22:39:01 +02:00
Lukas Wirth
f94a616779 Cleanup unstable flags handling 2025-07-27 22:39:01 +02:00
Ralf Jung
296586fb02 miri: for ABI mismatch errors, say which argument is the problem 2025-07-27 22:26:10 +02:00
Laurențiu Nicola
7f19af89b6
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
c5480a9096 fix: Fix incorrect build script version check 2025-07-27 21:22:50 +02:00
bors
f8e355c230 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
2749482d6b
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
38c61c9ae8 Copy lockfile when building build scripts 2025-07-27 20:28:22 +02:00
Lukas Wirth
2604101122 internal: Better type proc macro dylib build data state 2025-07-27 19:37:16 +02:00
bors
4b596bbd84 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)
2792799490
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
8f89872922 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
85486a7bff 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