Commit Graph

312591 Commits

Author SHA1 Message Date
bors
254b59607d Auto merge of #151369 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] 1.93.0 release

https://forge.rust-lang.org/release/process.html#stable-pr

r? @Mark-Simulacrum
1.93.0
2026-01-19 16:34:28 +00:00
Mark Rousskov
01ad1d67a6 Bump to stable release 2026-01-19 09:20:55 -05:00
Mark Rousskov
641c209049 Add latest release note copy 2026-01-19 09:20:19 -05:00
bors
a741008f5b Auto merge of #151270 - Mark-Simulacrum:beta-backport, r=Mark-Simulacrum
[beta] backports

*  [beta] Disable SimplifyComparisonIntegral rust-lang/rust#151267 
*  Use the old homu bors e-mail address again rust-lang/rust#150959 

Does not backport other nominated PRs:

* Only use SSA locals in SimplifyComparisonIntegral rust-lang/rust#150925  (replaced with the disablement PR)
* Don't try to evaluate const blocks during constant promotion rust-lang/rust#150557 (backport essentially denied at this point)
* Use realstd current thread static variables in tests rust-lang/rust#150131 (as far as I can tell, this only affects internal std tests and hasn't landed in time for backport)

r? @Mark-Simulacrum
2026-01-18 04:13:20 +00:00
Ben Kimock
6feceec6b3 Disable SimplifyComparisonIntegral 2026-01-17 15:39:57 -05:00
Jakub Beránek
2b8a999ac4 Use both bors e-mails for CI postprocessing git lookup 2026-01-17 15:38:03 -05:00
Jakub Beránek
4c28b43a94 Revert bors email to the original homu one 2026-01-17 15:36:12 -05:00
Jakub Beránek
a8201d341a Remove references to bors2 2026-01-17 15:36:11 -05:00
bors
9a4aba12f3 Auto merge of #151241 - fmease:beta-rustdoc-dont-eval-assoc-consts, r=fmease
[beta] rustdoc: Stop unconditionally evaluating the initializer of associated consts

Last minute beta backport of rust-lang/rust#151232 ([beta backport accepted](https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/beta-nominated.3A.20.23151232/near/568543129)).
Directly fixes rust-lang/rust#149635.

Not part of some hypothetical future backport rollup because we're under time pressure as the release procedures have commenced already: https://forge.rust-lang.org/#current-release-versions, https://forge.rust-lang.org/release/process.html.

r? fmease
2026-01-17 13:03:33 +00:00
León Orell Valerian Liehr
36e6625457 [beta] rustdoc: Stop unconditionally evaluating the initializer of associated consts 2026-01-17 12:25:36 +01:00
rust-bors[bot]
7bea8c6cf1 Auto merge of #150848 - cuviper:beta-next, r=cuviper
[beta] backports

- Revert "Rollup merge of rust-lang/rust#149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer" rust-lang/rust#149657
- Don't lint on interior mutable `const` item coming from derefs rust-lang/rust#150166
- stdarch subtree update rust-lang/rust#150639 (partial)
- Update bors configuration rust-lang/rust#150308
- Update bors e-mail lookup rust-lang/rust#150783
- Make verify-channel.sh script compatible with new bors rust-lang/rust#150759

r? cuviper
2026-01-09 18:52:14 +00:00
Jakub Beránek
4dc996fa0f Remove unused environment variable
Its last use was removed in https://github.com/rust-lang/rust/pull/142827.

(cherry picked from commit f2d0d52c2f)
2026-01-09 09:40:31 -08:00
Jakub Beránek
05448c2b8d Update bors e-mail lookup
(cherry picked from commit 138cc27f49)
2026-01-09 09:40:31 -08:00
Jakub Beránek
2827b1b83d Make verify-channel.sh script compatible with new bors
(cherry picked from commit 6f7313e8ad)
2026-01-09 09:40:27 -08:00
Jakub Beránek
af53cfa882 Add support for automation/bors/auto merge branch
(cherry picked from commit bbf4ec3b0f)
2026-01-09 09:40:24 -08:00
Jakub Beránek
efcf90104e Update bors configuration
(cherry picked from commit 75f53dd70e)
2026-01-09 09:40:23 -08:00
usamoi
d851fe6684 partially revert 8d597aa365
(cherry picked from commit 5e4168b162)
2026-01-08 16:20:02 -08:00
Sayantan Chakraborty
c5b220e1de Merge pull request #1985 from usamoi/vpmaddwd
Use LLVM intrinsics for `madd` intrinsics

(cherry picked from commit 85f3ba3dd1)
2026-01-08 16:18:36 -08:00
Urgau
249d399caa Don't lint on interior mutable const item coming from derefs
(cherry picked from commit 2581c2571c)
2026-01-08 16:09:05 -08:00
Urgau
0aa11b5dd2 Add regression test for const_item_interior_mutations deref FP
(cherry picked from commit 0bc29cec45)
2026-01-08 16:09:05 -08:00
Jakub Beránek
9f8bfd6b4a Revert "Rollup merge of #149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer"
This reverts commit 82a17b30d8, reversing
changes made to 5019bdaefe.

(cherry picked from commit 74387157c7)
2026-01-08 16:08:18 -08:00
bors
72b6488ba4 Auto merge of #150214 - cuviper:beta-next, r=cuviper
[beta] backports

- attempt to fix unreachable code regression rust-lang/rust#149664
- Update to LLVM 21.1.8 rust-lang/rust#150057
- Revert rust-lang/rust#148937 -- rust-lang/rust#150096

r? cuviper
2025-12-21 04:14:38 +00:00
Amanieu d'Antras
4bc6d75592 Revert #148937 (Remove initialized-bytes tracking from BorrowedBuf and BorrowedCursor)
This caused several performance regressions because of existing code
which uses `Read::read` and therefore requires full buffer
initialization. This is particularly a problem when the same buffer is
re-used for multiple read calls since this means it needs to be fully
re-initialized each time.

There is still some benefit to landing the API changes, but we will have
to add private APIs so that the existing infrastructure can
track and avoid redundant initialization.

(cherry picked from commit 4b07875505)
2025-12-20 13:58:49 -08:00
Nikita Popov
834ced45a4 Update to LLVM 21.1.8
(cherry picked from commit f33abb17db)
2025-12-20 13:54:29 -08:00
Kivooeo
3f4f07f0b9 add check for uninhabited types along side never
(cherry picked from commit 2a2da782d3)
2025-12-20 13:54:03 -08:00
bors
e17ea4bf4e Auto merge of #149951 - BoxyUwU:beta_bump_stage0, r=cuviper
[beta] bump stage0

r? release
2025-12-18 21:10:55 +00:00
bors
6dfb8017ed Auto merge of #149900 - ranger-ross:backport-cargofix, r=weihanglo
[beta-1.93] Backport Cargo bug fix for 1.93

2 commits in 2c283a9a5c5968eeb9a8f12313f04feb1ff8dfac..083ac5135f967fd9dc906ab057a2315861c7a80d
2025-12-04 16:47:28 +0000 to 2025-12-11 23:19:46 -0500
- [beta-1.93] Backport locking fixes (rust-lang/cargo#16386)
- [beta-1.93] Downgrade curl-sys to 0.4.83 (rust-lang/cargo/pull/16399)
2025-12-16 03:12:22 +00:00
Ross Sullivan
2a8e61f538 Backport Cargo bug fixes for Rust 1.93 2025-12-16 11:40:55 +09:00
bors
eb937a3172 Auto merge of #149799 - lnicola:backport-disable-postcard, r=lnicola
[beta] Backport rust-analyzer proc macro server "disable postcard use temporarily"
2025-12-14 18:25:26 +00:00
Boxy Uwu
de868f6b43 bump stage0 2025-12-13 14:31:45 +00:00
Lukas Wirth
51da96d7d2 fix: Disable postcard use temporarily 2025-12-09 08:55:41 +02:00
bors
1b6e21e163 Auto merge of #149760 - BoxyUwU:beta, r=BoxyUwU
[beta] prepare rust 1.93.0

r? `@ghost`
2025-12-08 15:58:14 +00:00
Boxy Uwu
f80e3ac624 bump channel 2025-12-08 10:08:52 +00:00
Boxy Uwu
3c55c98ec8 replace version placeholder 2025-12-08 10:08:32 +00:00
bors
66428d92be Auto merge of #149682 - matthiaskrgr:rollup-serlk7i, r=matthiaskrgr
Rollup of 11 pull requests

Successful merges:

 - rust-lang/rust#148662 (alloc: Document panics when allocations will exceed max)
 - rust-lang/rust#148811 (core docs: rewrite `panic::Location::caller` with visual line/column numbers)
 - rust-lang/rust#149101 (Improve mutable-binding suggestion to include name)
 - rust-lang/rust#149477 (float::maximum/minimum: make docs more streamlined)
 - rust-lang/rust#149547 (library: Rename `IterRange*` to `Range*Iter`)
 - rust-lang/rust#149548 (Generate delegation error body when delegation is not resolved)
 - rust-lang/rust#149630 (Check identifiers defined in macros when suggesting identifiers hidden by hygiene)
 - rust-lang/rust#149647 (Add regression test for 141845)
 - rust-lang/rust#149661 (Fix for LLVM22 making lowering decisions dependent on RuntimeLibraryInfo.)
 - rust-lang/rust#149666 (Add perma-unstable `--print=backend-has-zstd` for use by compiletest)
 - rust-lang/rust#149671 (interpret: test SNaN handling of float min/max and update comments)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-12-05 16:20:35 +00:00
Matthias Krüger
a43b30c113 Rollup merge of #149671 - RalfJung:interpret-float-min-max, r=mati865
interpret: test SNaN handling of float min/max and update comments

Also see https://github.com/rust-lang/rust/pull/149563.

I also renamed these enum variants so they are not almost identical.
2025-12-05 16:17:13 +01:00
Matthias Krüger
8e46521d0e Rollup merge of #149666 - Zalathar:backend-has-zstd, r=jieyouxu
Add perma-unstable `--print=backend-has-zstd` for use by compiletest

Tests for `-Zdebuginfo-compression=zstd` need to be skipped if LLVM was built without support for zstd compression.

Currently, compiletest relies on messy and fragile heuristics to detect whether the compiler's LLVM was built with zstd support. But the compiler itself already knows whether LLVM has zstd or not, so it's easier for compiletest to just ask the compiler.

---

Originally I was intending for this to be a `--print=debuginfo-compression` flag that would print out a list of values supported by `-Zdebuginfo-compression=`. I got that working locally, but it was more complex than I was happy with (in both rustc and compiletest), so I decided to cut scope and instead add a very narrow perma-unstable print request instead.

There is always a circularity hazard whenever we ask the compiler-under-test for information about how to test it. But in this case, the underlying compiler code is fairly simple, whereas the previous heuristics were inherently messy and unreliable anyway.
2025-12-05 16:17:12 +01:00
Matthias Krüger
93249823c2 Rollup merge of #149661 - alinas:llvm-22-runtimelibraryinfo-fix, r=cuviper
Fix for LLVM22 making lowering decisions dependent on RuntimeLibraryInfo.

LLVM added codegen decision making based on RuntimeLibraryInfo. Mirror the change in Rust's codegen.

LLVM reference commit:
04c81a9973.
2025-12-05 16:17:11 +01:00
Matthias Krüger
d076da7e89 Rollup merge of #149647 - reddevilmidzy:test, r=Kivooeo
Add regression test for 141845

close: rust-lang/rust#141845

I saw the `tests/ui/associated-inherent-types` directory, but I felt the current location was a better fit.
2025-12-05 16:17:11 +01:00
Matthias Krüger
0c05bb5606 Rollup merge of #149630 - wafarm:fix-149604, r=JonathanBrouwer
Check identifiers defined in macros when suggesting identifiers hidden by hygiene

Fix rust-lang/rust#149604

r? `@JonathanBrouwer` (Since you reviewed the other one related to this)
2025-12-05 16:17:10 +01:00
Matthias Krüger
c42ce16c7b Rollup merge of #149548 - aerooneqq:ice-issue-144594, r=petrochenkov
Generate delegation error body when delegation is not resolved

This PR relates to the delegation feature rust-lang/rust#118212, it fixes rust-lang/rust#144594 ICE.
r? `@petrochenkov`
2025-12-05 16:17:10 +01:00
Matthias Krüger
c7889581ca Rollup merge of #149547 - tgross35:range-iterators, r=joboet
library: Rename `IterRange*` to `Range*Iter`

There is a weak convention in the ecosystem that `IterFoos` is an iterator yielding items of type `Foo` (e.g. `bitflags` `IterNames`, `hashbrown` `IterBuckets`), while `FooIter` is an iterator over `Foo` from an `.iter()` or `.into_iter()` method (e.g. `memchr` `OneIter`, `regex` `SetMatchesIter`). Rename `IterRange`, `IterRangeInclusive`, and `IterRangeFrom` to `RangeIter`, `RangeInclusiveIter`, and `RangeInclusiveIter` to match this.

Tracking issue: https://github.com/rust-lang/rust/issues/125687 (`new_range_api`)
2025-12-05 16:17:09 +01:00
Matthias Krüger
60be663188 Rollup merge of #149477 - RalfJung:minimum-maximum, r=tgross35
float::maximum/minimum: make docs more streamlined

This does with `maximum`/`minimum` what https://github.com/rust-lang/rust/pull/149475 did with `max`/`min`: first a self-contained description of the semantics, then comparing with other operations. It also makes the wording consistent with those other functions. Previously we had some of the semantics below the examples for some reason, and we repeated "If one of the arguments is NaN, then NaN is returned"; that has been streamlined as well.

r? `@tgross35`
2025-12-05 16:17:08 +01:00
Matthias Krüger
7850fc4b13 Rollup merge of #149101 - reddevilmidzy:mutable, r=eholk
Improve mutable-binding suggestion to include name

resolve: rust-lang/rust#148467
2025-12-05 16:17:07 +01:00
Matthias Krüger
a308ab8879 Rollup merge of #148811 - Paladynee:doc/location-caller-updated, r=joboet
core docs: rewrite `panic::Location::caller` with visual line/column numbers

no tracking issue

hey, this is my first PR on rust-lang/rust, so hopefully everything goes well.

i noticed the documentation for `core::panic::Location::caller` was kind of unintelligible (and maybe even wrong due to standalone_crate) and filled with magic numbers, so i provided line and column numbers as a visual guidance as to how it should be used.

edit: uh oh, looks like i pushed changes from random commits unrelated to me, what's going on?
edit2: reverted the unintended changes by this pr
2025-12-05 16:17:06 +01:00
Matthias Krüger
4d08c33fc1 Rollup merge of #148662 - leftmostcat:document-isize-limit, r=joboet
alloc: Document panics when allocations will exceed max

Document panics in `String` and `Vec` due to capacity overflowing `isize::MAX`. Correct outdated claims of `usize::MAX` limit.

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

Ping `@lolbinarycat`
2025-12-05 16:17:05 +01:00
aerooneqq
3e717121a1 Generate error delegation body when delegation is not resolved 2025-12-05 15:22:26 +03:00
bors
97b131c900 Auto merge of #148602 - BoxyUwU:coercion_cleanup_uncontroversial, r=lcnr
misc coercion cleanups and handle safety correctly

r? lcnr

### "remove normalize call"

Fixes rust-lang/rust#132765

If the normalization fails we would sometimes get a `TypeError` containing inference variables created inside of the probe used by coercion. These would then get leaked out causing ICEs in diagnostics logic

### "leak check and lub for closure<->closure coerce-lubs of same defids"

Fixes https://github.com/rust-lang/trait-system-refactor-initiative/issues/233
```rust
fn peculiar() -> impl Fn(u8) -> u8 {
    return |x| x + 1
}
```
the `|x| x + 1` expr has a type of `Closure(?31t)` which we wind up inferring the RPIT to. The `CoerceMany` `ret_coercion` for the whole `peculiar` typeck has an expected type of `RPIT` (unnormalized). When we type check the `return |x| x + 1` expr we go from the never type to `Closure(?31t)` which then participates in the `ret_coercion` giving us a `coerce-lub(RPIT, Closure(?31t))`.

Normalizing `RPIT` gives us some `Closure(?50t)` where `?31t` and `?50t` have been unified with `?31t` as the root var. `resolve_vars_if_possible` doesn't resolve infer vars to their roots so these wind up with different structural identities so the fast path doesn't apply and we fall back to coercing to a `fn` ptr. cc rust-lang/rust#147193 which also fixes this

New solver probably just gets more inference variables here because canonicalization + generally different approach to normalization of opaques. Idk :3

### FCP worthy stuffy

there are some other FCP worthy things but they're in my FCP comment which also contains some analysis of the breaking nature of the previously listed changes in this PR: https://github.com/rust-lang/rust/pull/148602#issuecomment-3503497467
2025-12-05 11:46:41 +00:00
Ralf Jung
f040a1a915 interpret: test SNaN handling of float min/max and update comments 2025-12-05 08:53:42 +01:00
Zalathar
84ff44c749 Add perma-unstable --print=backend-has-zstd for use by compiletest
Tests for `-Zdebuginfo-compression=zstd` need to be skipped if LLVM was built
without support for zstd compression.

Currently, compiletest relies on messy and fragile heuristics to detect whether
the compiler's LLVM was built with zstd support. But the compiler itself
already knows whether LLVM has zstd or not, so it's easier for compiletest to
just ask the compiler.
2025-12-05 14:27:52 +11:00