333699 Commits

Author SHA1 Message Date
bors 008fa22ce3 Auto merge of #159455 - Kobzol:bootstrap-discover-lldb, r=jieyouxu
Implement opt-in debugger discovery for GDB and LLDB in bootstrap



GDB and LLDB is no longer automatically auto-discovered, you can opt into the previous behavior using `build.gdb/lldb = "discover"`.

Note: this means that unless you opt into using a specific debugger, you won't run any `debuginfo` tests by default (except for `cdb`, which is still automatically detected).

r? @jieyouxu
2026-07-25 17:06:17 +00:00
bors da86f4d072 Auto merge of #159847 - nikic:distcheck-shared, r=Kobzol
Use dylib build in distcheck

This reduces disk usage, and thus avoids the distcheck job running out of disk space.
2026-07-24 20:15:07 +00:00
Nikita Popov 1a4a07e79e Use dylib build in distcheck 2026-07-24 17:24:35 +02:00
bors 29e68fe229 Auto merge of #159814 - jhpratt:rollup-Q7TJSeP, r=jhpratt
Rollup of 14 pull requests

Successful merges:

 - rust-lang/rust#159765 (Avoid spurious rebuilds of JSON docs in bootstrap)
 - rust-lang/rust#159781 (Update bootstrap to use -Zembed-metadata=no instead of -Zno-embed-metadata)
 - rust-lang/rust#158362 (trait solver: account for universes from replace_bound_vars)
 - rust-lang/rust#158372 (rustfmt: Discover modules via `cfg_select!`)
 - rust-lang/rust#159173 (Add allowed list check on EII implementations attributes)
 - rust-lang/rust#159718 (Make `DocLinkResMap` an `FxIndexMap`)
 - rust-lang/rust#159722 ( [rustdoc] Retrieve `cfg_attr` information for derived impls for `doc_cfg` feature)
 - rust-lang/rust#159731 (std: Implement futex on wasip3 targets, update target spec)
 - rust-lang/rust#159755 (Improve consistency of attribute error messages)
 - rust-lang/rust#155795 (constify `vec![1, 2, 3]` macro)
 - rust-lang/rust#157776 (ci: Enable autodiff tests on x86_64 linux)
 - rust-lang/rust#158766 (Promote riscv64-unknown-linux-musl to tier 2 with host tools)
 - rust-lang/rust#159271 (str: add ASCII fast path to word_to_titlecase)
 - rust-lang/rust#159667 (Make some parser structured suggestions verbose and tweak their wording)
2026-07-24 06:05:03 +00:00
Jacob Pratt 625d5f9fc9 Rollup merge of #159667 - estebank:verbose-parse-suggestions, r=TaKO8Ki
Make some parser structured suggestions verbose and tweak their wording

Replace most of the `.span_suggestion(` in `rustc_parse` with `.span_suggestion_verbose(`, as they are more readabale, if more verbose. Verbose suggestions also tend to highlight off-by-one `Span` errors better.

Tweak some of the touched diagnostics to bring them more in-line with our house style.

CC https://github.com/rust-lang/rust/issues/141973
2026-07-24 01:59:27 -04:00
Jacob Pratt af4cac9fd5 Rollup merge of #159271 - Rachit2323:fix-titlecase-ascii-fastpath, r=clarfonthey
str: add ASCII fast path to word_to_titlecase

The word_to_titlecase function had a FIXME comment since a long time asking to add a fast path for ASCII text.

Before this change, even simple English text like "hello world" was going through slow Unicode lookup tables. That was unnecessary.

This fixes it by using the same trick that to_lowercase already uses — plain English letters are now handled much faster, and only Greek/Chinese/etc still use the Unicode tables.

No behavior changes, just faster for normal English text.
2026-07-24 01:59:26 -04:00
Jacob Pratt f907604ba5 Rollup merge of #158766 - eshattow:linux-musl-riscv64-ci, r=marcoieni
Promote riscv64-unknown-linux-musl to tier 2 with host tools

MCP: https://github.com/rust-lang/compiler-team/issues/982

Implements rust-lang/rust#156191
2026-07-24 01:59:26 -04:00
Jacob Pratt ab994aee28 Rollup merge of #157776 - sgasho:linux_autodiff_tests_ci, r=ZuseZ4
ci: Enable autodiff tests on x86_64 linux

## Summary

Enable autodiff tests on x86_64 linux

For now, this is an `optional-*` Merge CI only job, and is not enabled in PR CI.

r? @ZuseZ4
2026-07-24 01:59:24 -04:00
Jacob Pratt 649cfef8d8 Rollup merge of #155795 - Lars-Schumann:const-vec-macro, r=oli-obk
constify `vec![1, 2, 3]` macro

Tracking issues:
`const_heap`: https://github.com/rust-lang/rust/issues/79597

makes all the parts needed for non-empty `vec![]` macros const:

`alloc::boxed::box_assume_init_into_vec_unsafe`
`alloc::boxed::Box::assume_init`
`alloc::boxed::Box::into_raw_with_allocator`
`alloc::boxed::Box::new_uninit`
`alloc::slice::[T]::into_vec`

Note that this does not allow for the use of the `vec![(); 4]` arm of this macro to be used in const-eval, since that uses specialization (spec and const traits don't really like each other so I didn't want to touch any of that in this).
2026-07-24 01:59:24 -04:00
Jacob Pratt 59906a3aa0 Rollup merge of #159755 - nnethercote:attribute-error-messages, r=estebank
Improve consistency of attribute error messages

This PR aims to improve how attributes are referred to in error messages. A lot of test outputs will change, so there will be follow-ups, but this PR has enough changes to cover a lot of cases and give a good feel for where things are headed.

r? @estebank
2026-07-24 01:59:23 -04:00
Jacob Pratt 5c3196f6ee Rollup merge of #159731 - alexcrichton:wasip3-futex, r=clarfonthey
std: Implement futex on wasip3 targets, update target spec

This commit is in preparation for eventual [tier 2 status] for the `wasm32-wasip3` target. Initially this target will not have support for threads but it's expected to come ~later this year. The first step in supporting this is switching internal `#[cfg]` in the standard library to "ok this target has threads", and this commit is the update for synchronization primitives. All synchronization primitives on the `wasm32-wasip3` now use a `futex`-based implementation, and the implementation of the futex itself is located in wasi-libc (see WebAssembly/wasi-libc#834). Other WASI targets can eventually all use this implementation as well, but `wasi-libc`'s implementation of these symbols will need to percolate, so those targets aren't changed yet. For `wasm32-wasip3`, however, any supporting `wasi-libc` will have these symbols.

This then additionally fixes the target to actually build with a modern LLVM by passing a necessary flag to `wasm-ld`. This flag isn't supported until LLVM 23, but the `wasm32-wasip3` target isn't fully supported until LLVM 23 anyway (hence its Tier 3 status currently).

[tier 2 status]: https://github.com/rust-lang/compiler-team/issues/1001
2026-07-24 01:59:22 -04:00
Jacob Pratt 7a2710b9d4 Rollup merge of #159722 - GuillaumeGomez:cfg_attr-doc_cfg, r=petrochenkov,mejrs,Urgau
[rustdoc] Retrieve `cfg_attr` information for derived impls for `doc_cfg` feature

Fixes https://github.com/rust-lang/rust/issues/103300.

After long last, this PR finally allows the derive proc-macro `cfg_attr` cfg predicates information to be kept so rustdoc can use it for its `doc_cfg` feature (cc https://github.com/rust-lang/rust/issues/43781).

It works as follows: for `impl` generated by macro expansion, we then look for the attributes on the type for which the `impl` block is implemented. Then, to know which `cfg_attr` attribute we want to look at, we use `expn_that_defined` on the impl's `DefId` which returns the `Span` where the macro was expanded. If it's part of a `cfg_attr`, then the `cfg_attr`'s `Span` will contain the derive's, so from then, we just need to add the `cfg` information.

This PR also adds the cfg predicates into the `AttributeKind::CfgAttrTrace` variant so it can be reused by rustdoc (hence the `compiler/*` changes).

Thanks a lot @petrochenkov for the pointers here!

r? @petrochenkov
2026-07-24 01:59:21 -04:00
Jacob Pratt d98e01e729 Rollup merge of #159718 - jprochazk:doc-link-res-index-map, r=petrochenkov
Make `DocLinkResMap` an `FxIndexMap`

Previously it was `FxHashMap`, changed to `UnordMap` in rust-lang/rust#119093. The rationale then was to make the iteration order unobservable, but it turned out to be leaky.

This change means the encoder outputs `doc_link_resolutions` entries in insertion order, and iteration order of the `DocLinkResMap` is now observable. I believe this doesn't affect correctness elsewhere, but I'm not very familiar with the codebase so I may be missing something

* Closes https://github.com/rust-lang/rust/issues/159677

Discussed on zulip: [#t-compiler/help > #159677: rmeta encoding is not stable](https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/.23159677.3A.20rmeta.20encoding.20is.20not.20stable/with/612134270)
2026-07-24 01:59:20 -04:00
Jacob Pratt 1b39801aa8 Rollup merge of #159173 - chenyukang:yukang-fix-159015-no-mangle-eii, r=JonathanBrouwer
Add allowed list check on EII implementations attributes

Fixes rust-lang/rust#158293
Fixes rust-lang/rust#159015

r? @bjorn3
2026-07-24 01:59:19 -04:00
Jacob Pratt 7a183d71c3 Rollup merge of #158372 - mkroening:rustfmt-cfg_select-modules, r=ytmimi,jieyouxu
rustfmt: Discover modules via `cfg_select!`

This PR renames all occurrences of `cfg_match!` in rustfmt to `cfg_select!`. This makes the module file detection logic from https://github.com/rust-lang/rustfmt/pull/6522 kick in for `cfg_select!` instead of `cfg_match!`, which no longer exists.

This PR performs no other adjustments to the logic to be as small as possible.

I am opening this PR in this repo since that is also the target for the more comprehensive https://github.com/rust-lang/rust/pull/154202, which covers more than merely detecting other files through `cfg_select!`.

Closes https://github.com/rust-lang/rust/issues/158371.

CC: @ytmimi, @CAD97
2026-07-24 01:59:19 -04:00
Jacob Pratt 9da519c2ab Rollup merge of #158362 - Dnreikronos:trait_solver/placeholder_universe_bounds, r=BoxyUwU
trait solver: account for universes from replace_bound_vars

Fixes rust-lang/rust#157840.

The ICE was not really because eager placeholder handling looked at too many universes. Boxy was right: with `-Zassumptions-on-binders`, if the new solver creates a placeholder universe, that universe needs an assumptions entry.

The bad path is `FindParamInClause` entering a binder through `replace_bound_vars`. `BoundVarReplacer` materializes a placeholder universe for the escaping bound vars, but nothing records placeholder assumptions for it. Later eager placeholder handling walks all non-input universes, which imo is the right behavior, and `get_placeholder_assumptions` hits the missing entry.

This moves the empty-assumptions bookkeeping into `EvalCtxt::replace_bound_vars` instead of keeping it local to `FindParamInClause`. The helper snapshots the universe slots before replacement and inserts `Assumptions::empty()` for any slot that got filled.

There is still a FIXME there because idk that empty assumptions is the final shape irl. `replace_bound_vars` does not have the param-env context to compute proper assumptions. But for this PR, imo this is the least weird local fix: it keeps the eager pass looking at all non-input universes and fixes the missing bookkeeping where the universe is created.

The repro is covered by a UI test. It reports the overflow diagnostic instead of ICEing.
2026-07-24 01:59:18 -04:00
Jacob Pratt 5e4614864f Rollup merge of #159781 - dpaoliello:noembed, r=Kobzol
Update bootstrap to use -Zembed-metadata=no instead of -Zno-embed-metadata

The recent Cargo submodule update picked up <https://github.com/rust-lang/cargo/pull/17149>

However, bootstrap was still using the old name, resulting in:

```
Building stage1 library artifacts (stage1 -> stage1, arm64ec-pc-windows-msvc)
error: unknown `-Z` flag specified: no-embed-metadata
```

Fix is to switch to the rename.

I also removed the diff in the Cranelift setup script, since they must have already hit this issue and no longer need the workaround.
2026-07-24 01:59:17 -04:00
Jacob Pratt 9f2b65722b Rollup merge of #159765 - Kobzol:bootstrap-docs-json-rebuild, r=Mark-Simulacrum
Avoid spurious rebuilds of JSON docs in bootstrap

Found this while working on https://github.com/rust-lang/rust/pull/159671.

Before, repeated runs of e.g. `x dist rust-docs-json` always rebuilt the docs. It was caused by Cargo not knowing that the output should be JSON, so it was trying to find the HTML files.

Instead of passing the output format through `RUSTDOCFLAGS`, which Cargo doesn't inspect, we now pass it to Cargo directly, which fixes the issue.
2026-07-24 01:59:16 -04:00
Nicholas Nethercote cd8a779c2f Mention attributes in the diagnostic output style guide 2026-07-24 13:01:22 +10:00
Nicholas Nethercote c4621ddc66 Improve consistency of "malformed foo attribute input" error messages
Similar to the previous three commits.
2026-07-24 13:01:21 +10:00
Nicholas Nethercote d36d39f202 Improve consistency of some cfg_attr attribute error messages
Similar to the previous two commits.
2026-07-24 12:58:31 +10:00
Nicholas Nethercote 35b1187a65 Improve consistency of InvalidTarget attribute error messages
Mostly in a fashion similar to the previous commit.

There is one exceptional case: for errors involving `repr` the argument
is significant. For these, the argument is included in the error line
and the caret highlighting, e.g.
```
error: the `repr(C)` attribute cannot be used on functions
  --> $DIR/naked-with-invalid-repr-attr.rs:10:3
   |
LL | #[repr(C)]
   |   ^^^^^^^
   |
   = help: the `repr(C)` attribute can only be applied to data types
```

Contrast this with a more typical argument-excluding case used
everywhere else:
```
error: the `rustc_abi` attribute cannot be used on associated consts
  --> $DIR/debug.rs:46:7
   |
LL |     #[rustc_abi(debug)]
   |       ^^^^^^^^^
   |
   = help: the `rustc_abi` attribute can be applied to functions and type aliases
```
2026-07-24 12:58:31 +10:00
Nicholas Nethercote 2e2cdf9b81 Improve consistency of attribute stability error messages
These changes involve the error messages produced in
`check_attribute_stability`, plus some related ones.

The basic idea:
- Use "the `foo` attribute" in `error` lines as much as possible, where
  `foo` is the attribute's path.
- Point carets at just the attribute's path, to match the `error` line.
2026-07-24 12:58:29 +10:00
bors 1498f9968f Auto merge of #159802 - jhpratt:rollup-0P0tnuA, r=jhpratt
Rollup of 20 pull requests

Successful merges:

 - rust-lang/rust#150161 (Remove 'static requirement on try_as_dyn)
 - rust-lang/rust#159412 (Reorganize `tests/ui/issues` [26/N])
 - rust-lang/rust#159466 (cmse: clear variant-dependent padding in `enum`s)
 - rust-lang/rust#157905 (Update comments and add tests for `-Zrandomize-layout` for some guaranteed ZSTs)
 - rust-lang/rust#158479 (Reject static item as direct const generic arg)
 - rust-lang/rust#159041 (Reorganize `tests/ui/issues` [22/N])
 - rust-lang/rust#159108 (Reorganize `tests/ui/issues` [23/N])
 - rust-lang/rust#159138 (doc: document wasm import symbol mangling)
 - rust-lang/rust#159531 (Reorganize `tests/ui/issues` [28/N])
 - rust-lang/rust#159608 (early_otherwise: Don't hoist dereferences when the otherwise branch is reachable)
 - rust-lang/rust#159612 (Reorganize `tests/ui/issues` [29/N])
 - rust-lang/rust#159653 (run `tests/assembly-llvm/asm/aarch64-types.rs` for `aarch64_be`)
 - rust-lang/rust#159719 (tests: add UI test for `.swap()` suggestion)
 - rust-lang/rust#159737 (rustfmt fix: allow file not found errors for external mods annotated with `#[my_macro]`)
 - rust-lang/rust#159759 (rustc-dev-guide subtree update)
 - rust-lang/rust#159761 (Remove outdated comment for resolve_vars_with_obligations)
 - rust-lang/rust#159764 (use `minicore::simd::Simd` more)
 - rust-lang/rust#159773 (Remove outdated workaround for `P` type)
 - rust-lang/rust#159778 (use lowest edition the test accepts)
 - rust-lang/rust#159788 (Avoid ICEing in RPIT method chain suggestion)
2026-07-24 01:49:53 +00:00
Jacob Pratt fad9bb7bf0 Rollup merge of #159788 - sjwang05:issue-159685, r=fee1-dead
Avoid ICEing in RPIT method chain suggestion

In the case that the return type captures a lifetime, `skip_binder()` will cause the later `can_eq()` call to ICE, so we call `enter_forall()` with the binder instead. Probably best reviewed with ignore-whitespace.

fixes rust-lang/rust#159685
2026-07-23 19:18:49 -04:00
Jacob Pratt 8eb1150b83 Rollup merge of #159778 - tshepang:patch-2, r=fee1-dead
use lowest edition the test accepts
2026-07-23 19:18:48 -04:00
Jacob Pratt 2c7069ce5b Rollup merge of #159773 - panstromek:remove-p-workaround, r=fee1-dead
Remove outdated workaround for `P` type

P is long gone, so this workaround is no longer necessary.

The workaround took attrs out of node, inspected and possibly modified it and then put it back at the end of each branch of the following match.
2026-07-23 19:18:48 -04:00
Jacob Pratt 85fbe5a37f Rollup merge of #159764 - folkertdev:use-minicore-simd, r=jieyouxu
use `minicore::simd::Simd` more

follow-up to https://github.com/rust-lang/rust/pull/159656.

I've used `grep -rlZ "repr_simd" . | xargs -0 grep -l "use minicore"` to find all test files that used both `repr_simd` and `use minicore`, they now all use `minicore::simd` to `repr_simd` is no longer needed for them.
2026-07-23 19:18:47 -04:00
Jacob Pratt 6fba6b1644 Rollup merge of #159761 - chenyukang:yukang-remove-outdated-comment-in-typeck, r=lcnr
Remove outdated comment for resolve_vars_with_obligations

from
[#t-types/trait-system-refactor > incorrect `resolve_vars_with_obligations` fixme
](https://rust-lang.zulipchat.com/#narrow/channel/364551-t-types.2Ftrait-system-refactor/topic/incorrect.20.60resolve_vars_with_obligations.60.20fixme/with/612312074)

r? @lcnr
2026-07-23 19:18:46 -04:00
Jacob Pratt 4a3d1733fb Rollup merge of #159759 - tshepang:rdg-sync, r=tshepang
rustc-dev-guide subtree update

Subtree update of `rustc-dev-guide` to https://github.com/rust-lang/rustc-dev-guide/commit/a6e0ea16c192517da5f098236fbc9b8def4ac14e.

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

r? @ghost
2026-07-23 19:18:46 -04:00
Jacob Pratt e701378af4 Rollup merge of #159737 - ytmimi:rustfmt_issue_6959, r=petrochenkov
rustfmt fix: allow file not found errors for external mods annotated with `#[my_macro]`

Tracking issue: https://github.com/rust-lang/rust/issues/54727

`#[my_macro]` was stabilized for macro hygiene 2.0 in https://github.com/rust-lang/rust/pull/157857. There isn't a guarantee that the external module exists on the file system so ignore any file not found errors encountered when trying to resolve the module's file.

Fixes rust-lang/rustfmt#6959

r? @petrochenkov

cc: @TimNN
2026-07-23 19:18:45 -04:00
Jacob Pratt c1758b6c14 Rollup merge of #159719 - ssenthilnathan3:ui-test/add-suggest-swap, r=chenyukang
tests: add UI test for `.swap()` suggestion

adds a UI test covering the borrow checker diagnostic that suggests using
`.swap()` when `std::mem::swap(&mut arr[i], &mut arr[j])` is used.

closes rust-lang/rust#159664
2026-07-23 19:18:44 -04:00
Jacob Pratt 087a886f57 Rollup merge of #159653 - folkertdev:aarch64_be-asm-types, r=davidtwco
run `tests/assembly-llvm/asm/aarch64-types.rs` for `aarch64_be`

We may as well, tangentially related to https://github.com/rust-lang/rust/pull/154342.

r? davidtwco
2026-07-23 19:18:43 -04:00
Jacob Pratt b8e8ffb240 Rollup merge of #159612 - zedddie:gsoc-batch-29-meow, r=Teapot4195
Reorganize `tests/ui/issues` [29/N]

Part of [GSoC'26 project](https://rust-lang.zulipchat.com/#narrow/channel/421156-gsoc/topic/Project.3A.20Reorganizing.20tests.2Fui.2Fissues)

r? Kivooeo
@Teapot4195
2026-07-23 19:18:43 -04:00
Jacob Pratt ace4ff7167 Rollup merge of #159608 - dianqk:hoist-in-early-else, r=davidtwco
early_otherwise: Don't hoist dereferences when the otherwise branch is reachable

Fixes https://github.com/rust-lang/rust/issues/159591.

A place may contain a dereference that cannot be safely hoisted when the otherwise branch is reachable.
2026-07-23 19:18:41 -04:00
Jacob Pratt ab0ec83890 Rollup merge of #159531 - zedddie:gsoc-batch-28-meow, r=Kivooeo
Reorganize `tests/ui/issues` [28/N]

Part of [GSoC'26 project](https://rust-lang.zulipchat.com/#narrow/channel/421156-gsoc/topic/Project.3A.20Reorganizing.20tests.2Fui.2Fissues)

r? Kivooeo
@Teapot4195
2026-07-23 19:18:41 -04:00
Jacob Pratt 9497ae7a5e Rollup merge of #159138 - kn1g78:doc-wasm-symbol-mangling, r=davidtwco
doc: document wasm import symbol mangling

Document that foreign items from wasm_import_module extern blocks are mangled even with #[no_mangle] or #[link_name], so same-named imports from different WebAssembly modules remain distinct.
2026-07-23 19:18:39 -04:00
Jacob Pratt 6f83dd29fb Rollup merge of #159108 - zedddie:gsoc-batch-23-meow, r=Kivooeo
Reorganize `tests/ui/issues` [23/N]

Part of [GSoC'26 project](https://rust-lang.zulipchat.com/#narrow/channel/421156-gsoc/topic/Project.3A.20Reorganizing.20tests.2Fui.2Fissues)

r? Kivooeo
@Teapot4195
2026-07-23 19:18:39 -04:00
Jacob Pratt f12d654e0a Rollup merge of #159041 - zedddie:gsoc-batch-22-meow, r=Kivooeo
Reorganize `tests/ui/issues` [22/N]

Part of [GSoC'26 project](https://rust-lang.zulipchat.com/#narrow/channel/421156-gsoc/topic/Project.3A.20Reorganizing.20tests.2Fui.2Fissues)

r? Kivooeo
@Teapot4195
2026-07-23 19:18:38 -04:00
Jacob Pratt ef41fdad9d Rollup merge of #158479 - Shourya742:2026-06-27-emit-error-during-ast-lower-using-static-const, r=BoxyUwU
Reject static item as direct const generic arg

closes: rust-lang/rust#136139

This PR fixes the ICE and not add support for static in MGCA
2026-07-23 19:18:37 -04:00
Jacob Pratt 9e78c8b5b9 Rollup merge of #157905 - zachs18:randomize-layout-zst-note, r=davidtwco
Update comments and add tests for `-Zrandomize-layout` for some guaranteed ZSTs

See https://github.com/rust-lang/reference/pull/2262 . T-lang wants to make some additional guarantees about zero-sized `repr(Rust)` structs and enums, that changes to `-Zrandomize-layout` could theoretically break in the future. This PR adds comments to `-Zrandomize-layout`'s implementation and tests to `tests/ui/layout/randomize.rs` to prevent breaking those guarantees.

First commit is the guarantees that T-lang already FCP'd in https://github.com/rust-lang/reference/pull/2262 .
Second commit is an additional guarantee (that zero-variant repr(Rust) enums are ZSTs) that's at https://github.com/rust-lang/reference/pull/2293 (FCP now completed)
2026-07-23 19:18:36 -04:00
Jacob Pratt a2cc15f20e Rollup merge of #159466 - folkertdev:clear-variant-dependent-padding, r=davidtwco
cmse: clear variant-dependent padding in `enum`s

tracking issue: https://github.com/rust-lang/rust/issues/81391
tracking issue: https://github.com/rust-lang/rust/issues/75835

Since https://github.com/rust-lang/rust/pull/157397 we clear variant-independent padding, bytes that are padding for all valid values of the type. This PR extends that idea to also clear variant-dependent padding, where we have to check what variant a (nested) enum has to determine which bytes are padding so we can clear them.

With these changes the lint from https://github.com/rust-lang/rust/pull/147697 can lint on just `union`s.

r? @davidtwco
cc @RalfJung @Jules-Bertholet
2026-07-23 19:18:35 -04:00
Jacob Pratt 445d6002a8 Rollup merge of #159412 - zedddie:gsoc-batch-26-meow, r=Kivooeo
Reorganize `tests/ui/issues` [26/N]

Part of [GSoC'26 project](https://rust-lang.zulipchat.com/#narrow/channel/421156-gsoc/topic/Project.3A.20Reorganizing.20tests.2Fui.2Fissues)

r? Kivooeo
@Teapot4195
2026-07-23 19:18:34 -04:00
Jacob Pratt 020394d345 Rollup merge of #150161 - oli-obk:try_as_dyn_non_static, r=BoxyUwU
Remove 'static requirement on try_as_dyn

tracking issue: rust-lang/rust#144361

cc @ivarflakstad @izagawd
2026-07-23 19:18:34 -04:00
bors 76c35a14a4 Auto merge of #159779 - camelid:even-better-impls, r=GuillaumeGomez
rustdoc: Only synthesize auto/blanket impls for documented items

Previously, the code would skip synthesizing impls if the *trait* was
not documented, but it would still synthesize even if the *type* was not
documented. This is wasted work.
2026-07-23 22:37:47 +00:00
Jakub Beránek 8790990509 Fix LLDB discovery 2026-07-23 22:55:31 +02:00
Jakub Beránek 091565624a Enable automatic debugger discovery on CI 2026-07-23 22:55:31 +02:00
Jakub Beránek d9fdc0e286 Update change tracker 2026-07-23 22:55:29 +02:00
Jakub Beránek d48ff841c4 Add discover mode to GDB in bootstrap 2026-07-23 22:55:05 +02:00
Jakub Beránek 82a4234edd Add discover mode to LLDB in bootstrap 2026-07-23 22:55:05 +02:00