Commit Graph

342525 Commits

Author SHA1 Message Date
Josh Stone
f614da46fc Trim trailing whitespace from RELEASES.md
These trailing spaces are fairly old, back in 1.87.0, but my editor has
been flagging them as warnings.
2026-10-05 13:50:54 -07:00
bors
ea137335b7 Auto merge of #163829 - JonathanBrouwer:rollup-8dFIE96, r=JonathanBrouwer
Rollup of 11 pull requests

Successful merges:

 - rust-lang/rust#163364 (make semicolon_in_expressions_from_non_local_macros not report-in-deps)
 - rust-lang/rust#163531 (rustc_ast_lowering: track implicit Self via explicit flag instead of name)
 - rust-lang/rust#163770 (document the rustc_comptime attribute)
 - rust-lang/rust#163780 (Skip optional asserts in SsaRangePropagation)
 - rust-lang/rust#163785 (Bump Windows CI LLVM to 22.1.8)
 - rust-lang/rust#163796 (continue crashes tests `-Znext-solver` work)
 - rust-lang/rust#163646 (Get `inputs_hir` directly from `decl`)
 - rust-lang/rust#163733 (Fix extra spaces in integer format_into docs)
 - rust-lang/rust#163773 (Update GitHub Actions to v26)
 - rust-lang/rust#163787 (moves rustc_legacy_const_generics checks into attribute parsing)
 - rust-lang/rust#163810 (Fix an issue for clippy's `search_is_some` with the next-solver)
2026-10-05 17:24:13 +00:00
Jonathan Brouwer
45e8c52c3e Rollup merge of #163810 - ShoyuVanilla:clippy-new-solver-fix, r=lcnr
Fix an issue for clippy's `search_is_some` with the next-solver

r? lcnr
2026-10-05 19:23:40 +02:00
Jonathan Brouwer
9deb169582 Rollup merge of #163787 - ssenthilnathan3:move-legacy-const-generics-check, r=JonathanBrouwer
moves rustc_legacy_const_generics checks into attribute parsing

Part of rust-lang/rust#153101.

Moves the remaining `#[rustc_legacy_const_generics]` validation from `rustc_passes::check_attr` into `RustcLegacyConstGenericsParser::finalize_check`.

The three associated diagnostics are moved into `rustc_attr_parsing`, and the old check is removed from `check_attr.rs`.

Diagnostic messages and spans are preserved.
2026-10-05 19:23:39 +02:00
Jonathan Brouwer
e642b4f9d4 Rollup merge of #163773 - renovate-bot:renovate/major-github-actions, r=Kobzol
Update GitHub Actions to v26

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [ubuntu](https://redirect.github.com/actions/runner-images) | github-runner | major | `24.04` → `26.04` |
| [ubuntu](https://redirect.github.com/actions/runner-images) | github-runner | major | `24.04-arm` → `26.04-arm` |

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - Between 12:00 AM and 03:59 AM, only on Monday (`* 0-3 * * 1`)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/rust-lang/rust).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMjUuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
2026-10-05 19:23:38 +02:00
Jonathan Brouwer
9a9b3f1a7a Rollup merge of #163733 - cellrishi-code:fix-format-into-doc-spaces, r=JohnTitor
Fix extra spaces in integer format_into docs
2026-10-05 19:23:38 +02:00
Jonathan Brouwer
43abb24ef4 Rollup merge of #163646 - JonathanBrouwer:get-params-from-decl, r=BoxyUwU
Get `inputs_hir` directly from `decl`

Just a small pass-by improvement while I'm working on something bigger
2026-10-05 19:23:37 +02:00
Jonathan Brouwer
431aebff94 Rollup merge of #163796 - lcnr:crashes-migration, r=lqd
continue crashes tests `-Znext-solver` work

cc rust-lang/rust#140211 rust-lang/rust#119786 rust-lang/rust#155497 rust-lang/rust#110534 rust-lang/rust#102252 rust-lang/rust#120254 rust-lang/rust#115435 rust-lang/rust#122529 rust-lang/rust#119095 rust-lang/rust#124440
2026-10-05 19:23:36 +02:00
Jonathan Brouwer
721eaf0fcf Rollup merge of #163785 - Walnut356:windows_ci_llvm22, r=Kobzol
Bump Windows CI LLVM to 22.1.8

It's fallen a bit behind the linux runners. Also needed for running `tests/debuginfo` on windows CI runners (https://github.com/rust-lang/rust/pull/163090)
2026-10-05 19:23:35 +02:00
Jonathan Brouwer
d7738b8db4 Rollup merge of #163780 - saethlin:rangeprop-asserts, r=dianqk
Skip optional asserts in SsaRangePropagation

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

Is it normal to have a mir-opt diff without any diff in it? I think it communicates what I want in this case, that the pass does nothing to this code.
2026-10-05 19:23:34 +02:00
Jonathan Brouwer
b8d1869301 Rollup merge of #163770 - mejrs:document_rustc_comptime, r=oli-obk
document the rustc_comptime attribute

r? @oli-obk
2026-10-05 19:23:34 +02:00
Jonathan Brouwer
14af779f90 Rollup merge of #163531 - paradoxicalguy:infer-indices-clean, r=petrochenkov
rustc_ast_lowering: track implicit Self via explicit flag instead of name

fixes rust-lang/rust#163457
& added a ui regression test for the reported reproducer.

r? @bjorn3
2026-10-05 19:23:33 +02:00
Jonathan Brouwer
2c9ced6348 Rollup merge of #163364 - RalfJung:semicolon-no-report-in-deps, r=mati865
make semicolon_in_expressions_from_non_local_macros not report-in-deps

See rust-lang/rust#162872 for context. This new lint was made immediately report-in-deps without a crater run. I guess people assumed that the ecosystem fallout would be small, but no data was gathered to confirm that hypothesis. We now have data showing that the ecosystem fallout is [gigantic](https://github.com/rust-lang/rust/pull/162768#issuecomment-5833566434), so let's remove the report-in-deps from this lint.

This should be backported to the 1.100 beta. (1.99 already has this patch.)

Cc @joshtriplett
2026-10-05 19:23:32 +02:00
Shoyu Vanilla
59df6010d5 Add a test for suboptimal diagnostics 2026-10-05 14:08:38 +00:00
Shoyu Vanilla
adfb5d30b5 Fix an issue for clippy's search_is_some with the next-solver 2026-10-05 14:07:40 +00:00
lcnr
612d3d92fd more crashes migration 2026-10-05 14:40:44 +02:00
lcnr
438196a489 remove duplicate test 2026-10-05 13:08:07 +02:00
lcnr
3ddbe0647f yeet duplicate test 2026-10-05 13:05:14 +02:00
lcnr
38c6c1fc40 more crashes migration + move tests 2026-10-05 13:03:57 +02:00
lcnr
a108fb6017 more crashes migration 2026-10-05 12:55:33 +02:00
lcnr
471b6d2e3c more crashes migration 2026-10-05 12:51:49 +02:00
lcnr
2df0ee65f6 more crashes migration 2026-10-05 12:47:52 +02:00
lcnr
7f2478a4c2 more crashes tests + next-solver test migration 2026-10-05 12:43:05 +02:00
lcnr
51f1093503 more crashes tests 2026-10-05 12:28:10 +02:00
lcnr
8391ea0087 more crashes tests 2026-10-05 12:28:10 +02:00
bors
602727f268 Auto merge of #163793 - JonathanBrouwer:rollup-9UtJohs, r=JonathanBrouwer
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#163790 (miri subtree update)
 - rust-lang/rust#163610 (optimize empty `NestedGoals::extend_from_child`)
 - rust-lang/rust#163697 (cg_llvm: Use `LLVMGlobalAddMetadata` from LLVM-C)
 - rust-lang/rust#163750 (lower spans of error const args and test binder bounds)
2026-10-05 10:24:33 +00:00
lcnr
e95998b41d continue crashes tests next-solver work 2026-10-05 12:13:06 +02:00
Abhinav Srivastav
f20f0c4862 rustc_ast_lowering: track implicit Self via explicit flag instead of name 2026-10-05 15:37:24 +05:30
Jonathan Brouwer
b9eb49ad25 Rollup merge of #163750 - paradoxicalguy:ice-span-wo-parent, r=oli-obk
lower spans of error const args and test binder bounds

fixes rust-lang/rust#163592

lower spans when constructing hir nodes for error const args and test binder bound type constraints, these paths were using raw ast spans instead of routing them through `lower_span`
(reproduce with `rust.debug-assertions = true` and `-Cincremental`; the tests listed in the issue now pass.)

r? @bjorn3
cc @matthiaskrgr
2026-10-05 11:23:07 +02:00
Jonathan Brouwer
8a50d50915 Rollup merge of #163697 - Zalathar:llvm-22, r=mejrs
cg_llvm: Use `LLVMGlobalAddMetadata` from LLVM-C

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

`LLVMGlobalAddMetadata` was introduced in LLVM 22, so now that that's our baseline, we can bind to it directly and remove our own C++ wrapper.
2026-10-05 11:23:06 +02:00
Jonathan Brouwer
94c2bd2dc6 Rollup merge of #163610 - lcnr:nested-goals-opt, r=oli-obk
optimize empty `NestedGoals::extend_from_child`

we sometimes get incredibly big `nested_goals` from large and involved cycles. When propagating them outwards, we currently manually build a `HashMap` by accessing an entry for every nested goal of the child. This is unnecessary.

This does not help with the max-rss regression in https://github.com/rust-lang/rust/issues/161660, but should help with perf in such cases.

r? types
2026-10-05 11:23:05 +02:00
Jonathan Brouwer
13c0a6128e Rollup merge of #163790 - RalfJung:miri, r=RalfJung
miri subtree update

Subtree update of `miri` to 39f6500106.

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

r? @ghost
2026-10-05 11:23:04 +02:00
mejrs
6e4e68f3fc document rustc_comptime 2026-10-05 11:11:26 +02:00
Senthilnathan
f998e4a591 fix: panic on unreasonable cases instead of going silent 2026-10-05 14:06:22 +05:30
lcnr
9c4bef50e4 optimize empty NestedGoals::extend_from_child 2026-10-05 09:23:10 +02:00
Senthilnathan
b317a6a6f0 fixes legacy const generics finalize_check signature 2026-10-05 12:50:25 +05:30
Senthilnathan
2d0258e0d1 moves rustc_legacy_const_generics checks into attribute parsing 2026-10-05 12:34:10 +05:30
Zalathar
58eda6ec67 Use LLVMGlobalAddMetadata
This function was added in LLVM 22.
2026-10-05 17:33:30 +11:00
Walnut
4bfa46e1eb bump Windows CI LLVM to 22.1.8 2026-10-05 00:36:20 -05:00
bors
4d13b68bad Auto merge of #163783 - jhpratt:rollup-62okXgs, r=jhpratt
Rollup of 3 pull requests

Successful merges:

 - rust-lang/rust#153160 (Fix relative extern URL depth on source pages)
 - rust-lang/rust#163529 (Const analysis cleanups)
 - rust-lang/rust#163567 (Use a loop to avoid emitting long sequences of retags.)
2026-10-05 04:44:58 +00:00
Jacob Pratt
447d1efe4a Rollup merge of #163567 - BorrowSanitizer:codegen-retag-fix-loop, r=saethlin
Use a loop to avoid emitting long sequences of retags.

See MCP [#958](https://github.com/rust-lang/compiler-team/issues/958) for context on `-Zcodegen-emit-retag`.

If we need to retag an array of references, then we will retag every element of the array. This does not scale for large arrays. For example:
```rust
const N: usize = 100_000;

fn example(array: [&u32; N]) {}

fn main() {
    example([&0; N]);
}
```
This program will cause `rustc` to hang at `-O0` with `-Zcodegen-emit-retag`. In the body of `example`, we need to ensure that every element of `array` receives a function-entry retag, so we emit 100,000 retag function calls within a single basic block!

This PR fixes this issue by adjusting how we retag the contents of arrays. Instead of retagging ever element in succession, we emit a loop that applies a single retag call to every element of the array. I have tested it on BorrowSanitizer's test suite.

Also, I saw the new `#FIXME` comment about supporting `repr(simd)` types. Some of the changes that I made here will be helpful for fixing that issue in a subsequent PR.

cc: @mojeanmac
r? @saethlin
2026-10-04 23:46:31 -04:00
Jacob Pratt
0bd83849b9 Rollup merge of #163529 - nnethercote:ConstAnalysis, r=saethlin
Const analysis cleanups

Details in individual commits.

r? @saethlin
2026-10-04 23:46:30 -04:00
Jacob Pratt
500b9efbc2 Rollup merge of #153160 - arferreira:fix-relative-extern-url-root-path, r=notriddle,GuillaumeGomez
Fix relative extern URL depth on source pages

Source pages with `--extern-html-root-url` pointing to a relative URL like `../` were generating links with one extra `../`. So instead of `../../core/iter/index.html` you'd get `../../../core/iter/index.html`. Took a while to notice because `htmldocck.py` uses substring matching — `../../core/` is a substring of `../../../core/` so the test passed anyway.

Two root causes. `remote_url_prefix` was using `cx.current.len()` for depth, but during source rendering `cx.current` is empty — `SourceCollector` doesn't do module descent. Source pages live under `src/<crate_name>/` so the real depth is 2, not 0. On top of that, `make_href` was trying to compensate by prepending `root_path` to relative remote URLs (there was a FIXME about this), which just made it worse — `../../` + `../core/iter/` = `../../../core/iter/`.

Fix: added `remote_item_depth(root_path, doc_depth)` that counts `../` segments in `root_path` when present, falls back to `doc_depth` otherwise. With the right depth in `remote_url_prefix`, `make_href` no longer needs to touch remote URLs at all — so `url_parts` now returns `is_remote = true` for all `Remote` locations. Also renamed `is_absolute` → `is_remote` since the semantics were always about "don't modify this URL", not about whether it has a scheme.

Added `!has` assertions to the test so the wrong URL gets caught explicitly next time.

Follow-up to rust-lang/rust#152977.

r? @notriddle
2026-10-04 23:46:30 -04:00
Ben Kimock
a9b28d3401 Skip optional asserts in SsaRangePropagation 2026-10-04 22:39:52 -04:00
bors
cc9a14f721 Auto merge of #163774 - jhpratt:rollup-BbGMOsp, r=jhpratt
Rollup of 2 pull requests

Successful merges:

 - rust-lang/rust#146099 (Stabilize `debug_closure_helpers`)
 - rust-lang/rust#163755 (fix -Z track-diagnostics for errors and lints emitted from rustc_attr_parsing)
2026-10-05 01:37:32 +00:00
Jacob Pratt
8bb0a7dc14 Rollup merge of #163755 - mejrs:attr_parsing_track_diagnostics, r=jonathanbrouwer
fix -Z track-diagnostics for errors and lints emitted from rustc_attr_parsing

r? @GuillaumeGomez or perhaps @JonathanBrouwer
2026-10-04 21:21:25 -04:00
Jacob Pratt
952bbd0afb Rollup merge of #146099 - coolreader18:stabilize-debug_closure_helpers, r=tgross35
Stabilize `debug_closure_helpers`

Resolves rust-lang/rust#117729. The tracking issue still needs an FCP, but I'm hoping that creating a stabilization PR will prompt one.

r? libs-api
2026-10-04 21:21:24 -04:00
Mend Renovate
1d7bfc7011 Update GitHub Actions to v26 2026-10-05 00:25:18 +00:00
bors
260f1acad9 Auto merge of #163721 - tmiasko:pretty-dataflow, r=Amanieu
Annotate MIR with dataflow results for testing purposes

When requested through an internal rustc attribute, include dataflow
results in MIR output, i.e., `-Zunpretty=mir` or `--emit mir`.

For now, supported dataflows are:
* `#[rustc_mir(rustc_pretty_live_locals)]`
* `#[rustc_mir(rustc_pretty_transitive_live_locals)]`

The mechanism is intended to supersede existing `rustc_peek` intrinsic.
For demonstration also migrates one of tests based on `rustc_peek`:
tests/ui/mir-dataflow/liveness-projection.rs.
2026-10-04 22:32:51 +00:00
Noa
384b61a67a Stabilize debug_closure_helpers 2026-10-04 16:34:45 -05:00