Commit graph

301854 commits

Author SHA1 Message Date
bors
1159e78c47 Auto merge of #146543 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] 1.90.0 stable release

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

r? `@Mark-Simulacrum`
2025-09-14 15:05:11 +00:00
Mark Rousskov
9b9cd6c2c8 1.90.0 stable release 2025-09-14 10:22:59 -04:00
bors
67cb8e039b Auto merge of #146443 - fmease:beta-less-greedy-maybe-const-bounds, r=fmease
[beta] Backport "Less greedily parse `[const]` bounds"

Backport of rust-lang/rust#146422.
Following https://forge.rust-lang.org/release/backporting.html#beta-backporting-in-rust-langrust.

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

cc `@cuviper`
2025-09-11 16:11:18 +00:00
bors
f946d4d344 Auto merge of #146438 - flip1995:clippy-beta-backport, r=Mark-Simulacrum
[beta] Clippy backport

Only a single commit to backport:

- https://github.com/rust-lang/rust-clippy/pull/15434

We'd like to get this ICE fix in a release earlier.

r? Mark-Simulacrum
2025-09-11 12:59:05 +00:00
Jason Newcomb
4b3008c23b
Do not attempt to compute size of a type with escaping lifetimes (#15434)
A type with escaping bound vars cannot be wrapped in a dummy binder
during size computation.

Fixes rust-lang/rust-clippy#15429

changelog: [`zero_sized_hashmap_values`]: fix ICE in types with escaping
lifetimes

r? Jarcho

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_SUMMARY_START -->

### Summary Notes

- [Beta
nomination](https://github.com/rust-lang/rust-clippy/pull/15434#issuecomment-3164866684)
by [samueltardieu](https://github.com/samueltardieu)

*Managed by `@rustbot`—see
[help](https://forge.rust-lang.org/triagebot/note.html) for details*

<!-- TRIAGEBOT_SUMMARY_END -->
<!-- TRIAGEBOT_END -->
2025-09-11 07:51:59 -04:00
León Orell Valerian Liehr
58afb55adc
Less greedily parse [const] bounds
(cherry picked from commit f5dad62d4c)
2025-09-11 06:39:27 +02:00
bors
1c785abde7 Auto merge of #146350 - cuviper:beta-next, r=cuviper
[beta] backports

- Rust build fails on OpenBSD after using file_lock feature rust-lang/rust#145511
- Revert suggestions for missing methods in tuples rust-lang/rust#145765
- When determining if a trait has no entries for the purposes of omitting vptrs from subtrait vtables, consider its transitive supertraits' entries, instead of just its own entries. rust-lang/rust#145807
- Ship LLVM tools for the correct target when cross-compiling rust-lang/rust#145763
- bootstrap: vendor `clippy_test_deps` too rust-lang/rust#145861

r? cuviper
2025-09-10 18:17:51 +00:00
Josh Stone
b630713bdf bootstrap: vendor clippy_test_deps too
This internal crate explicitly separates itself from the `rustc`
workspace, but it is needed for `./x test clippy` to work, including its
dependencies when building from a vendored `rustc-src` tarball.

(cherry picked from commit c73d7ae1c6)
2025-09-09 09:00:18 -07:00
Jakub Beránek
fca6c02acc Add warning to the Builder::llvm_config function
(cherry picked from commit 6315b4973a)
2025-09-09 09:00:12 -07:00
Jakub Beránek
e52d88dcea Ship LLVM tools for the correct target when cross-compiling
(cherry picked from commit c064521cc7)
2025-09-09 09:00:12 -07:00
Jakub Beránek
5a4a250ffe Rename llvm_config to host_llvm_config to avoid confusion
(cherry picked from commit 7785efd1b0)
2025-09-09 09:00:12 -07:00
Zachary S
40c7fe39b6 Only consider auto traits empty for the purposes of omitting vptrs from subtrait vtables
(cherry picked from commit 904e83c53f)
2025-09-08 14:26:08 -07:00
Rémy Rakic
6694a010be add regression test for issue 142488
there are a lot of MCVEs there, so this is only a few of them, not all
duplicates that were opened

(cherry picked from commit 5a2b70b202)
2025-09-08 14:26:03 -07:00
Rémy Rakic
052861f115 Revert "Detect method not being present that is present in other tuple types"
This reverts commit 585a40963e.

(cherry picked from commit 1f587e4d4f)
2025-09-08 14:26:03 -07:00
Sebastien Marie
9cb17fe889 Rust build fails on OpenBSD after using file_lock feature
PR 130999 added the file_lock feature, but doesn't included OpenBSD in the supported targets (Tier 3 platform), leading to a compilation error ("try_lock() not supported").

(cherry picked from commit 8792010768)
2025-09-08 14:25:58 -07:00
bors
fb918cec01 Auto merge of #145979 - wesleywiser:revert_144407, r=jieyouxu
Revert "fix(debuginfo): disable overflow check for recursive non-enum types"

This reverts commit 49eda8edd5.

Discussed during the T-compiler triage meeting with the [decision](https://rust-lang.zulipchat.com/#narrow/channel/238009-t-compiler.2Fmeetings/topic/.5Bweekly.5D.202025-08-28/near/536614591) to revert rust-lang/rust#144407 instead of attempting a forward fix.
2025-08-29 06:56:55 +00:00
Wesley Wiser
161e29dc84 Revert "fix(debuginfo): disable overflow check for"
This reverts commit 49eda8edd5.
2025-08-28 21:55:20 -05:00
bors
085bdc2aee Auto merge of #145719 - cuviper:beta-next, r=cuviper
[beta] backports

- Gate const trait syntax rust-lang/rust#144956
- Demote x86_64-apple-darwin to Tier 2 with host tools rust-lang/rust#145252
- Do not use effective_visibilities query for Adt types of a local trait while proving a where-clause rust-lang/rust#145642

r? cuviper
2025-08-21 19:50:47 +00:00
xizheyin
f0f182dcb7 Do not use effective_visibilities query for Adt types of a local trait while proving a where-clause
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
(cherry picked from commit 27e6726cb8)
2025-08-21 09:32:34 -07:00
Jake Goulding
fd942a5e01 Demote x86_64-apple-darwin to Tier 2 with host tools
Switch to only using aarch64 runners (implying we are now
cross-compiling) and stop running tests. In the future, we could
enable (some?) tests via Rosetta 2.

(cherry picked from commit c574c91e57)
2025-08-21 09:32:15 -07:00
Jake Goulding
b991118d6c Use aarch64-apple-darwin as the fallback doc source for -apple-
We are moving away from `x86_64-apple-darwin`, so soon these docs
won't be available.

(cherry picked from commit 36a38206db)
2025-08-21 08:46:29 -07:00
León Orell Valerian Liehr
3c3c140d8a Gate const trait syntax
(cherry picked from commit 092c6f3a18)
2025-08-21 08:45:23 -07:00
bors
49fc0cc3e9 Auto merge of #145395 - lcnr:review-coroutine-witness, r=petrochenkov
[BETA] Revert "Remove the witness type from coroutine args"

fixes rust-lang/rust#145151 and rust-lang/rust#145288

we do not revert on nightly as its instead fixed by rust-lang/rust#145194 and rust-lang/rust#145338.

See the discussion in https://rust-lang.zulipchat.com/#narrow/channel/238009-t-compiler.2Fmeetings/topic/.5Bweekly.5D.202025-08-14/near/534490313
2025-08-19 08:04:59 +00:00
bors
47b72a3455 Auto merge of #145396 - compiler-errors:revert-method-pref, r=lcnr
[BETA] Revert "Use DeepRejectCtxt in assemble_inherent_candidates_from_param"

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

Backporting this to stable and beta in favor of https://github.com/rust-lang/rust/pull/145262#issuecomment-3188760251.

r? lcnr
2025-08-16 22:47:14 +00:00
bors
630a5f1d3c Auto merge of #145456 - mati865:revert-beta-gnullvm, r=jieyouxu
[beta] Revert #143031 and #140772 due to #144533

The decision was made in https://github.com/rust-lang/rust/pull/144659#issuecomment-3182163412.
Tracking issue: https://github.com/rust-lang/rust/issues/145435

r? jieyouxu

try-job: dist-various-1
2025-08-16 04:13:42 +00:00
Mateusz Mikuła
30420321a3 Revert #143031 and #140772 due to #144533
Revert <https://github.com/rust-lang/rust/pull/143031> and
<https://github.com/rust-lang/rust/pull/140772> due to the issue with host
tools reported in <https://github.com/rust-lang/rust/issue/144533>.

This reverts commits 508021aa43 and
d577b39c5a.

The decision was made in
<https://github.com/rust-lang/rust/pull/144659#issuecomment-3182163412>.
Tracking issue: <https://github.com/rust-lang/rust/issue/145435>
2025-08-15 17:17:03 +02:00
Michael Goulet
b0ec0ec10d Add test 2025-08-14 15:06:18 +00:00
Michael Goulet
2f85c80f9c Revert "Use DeepRejectCtxt in assemble_inherent_candidates_from_param"
This reverts commit ad59f0b6e6.
2025-08-14 15:06:18 +00:00
Michael Goulet
a89083b8ed Add a test 2025-08-14 16:31:12 +02:00
lcnr
82ed949d2c Revert "Remove the witness type from coroutine args"
This reverts commit e9765781b2.
2025-08-14 16:21:56 +02:00
bors
96ecc9042c Auto merge of #145104 - BoxyUwU:whatevenarebranchnames, r=cuviper
[beta] bump stage0

r? release
2025-08-09 18:11:29 +00:00
Boxy
f6649c97fe bump bootstrap compiler 2025-08-08 16:21:29 +01:00
bors
788da80fcf Auto merge of #144898 - BoxyUwU:beta, r=BoxyUwU
[beta] Prepare Rust 1.90.0

r? `@ghost`
2025-08-04 20:37:11 +00:00
Boxy
cc1a3b03d7 bump channel 2025-08-04 10:53:08 +01:00
Boxy
3c822d038a replace version placeholder 2025-08-04 10:52:21 +01:00
bors
6d091b2baa Auto merge of #144554 - cjgillot:no-hir-eff-vis, r=petrochenkov
Use less HIR to compute effective visibility.

r? `@ghost`
2025-08-02 09:23:36 +00:00
bors
889701db1f Auto merge of #129183 - estebank:cfg-visitor, r=davidtwco
Detect more `cfg`d out items in resolution errors

Use a visitor to collect *all* items (including those nested) that were stripped behind a `cfg` condition.

```
error[E0425]: cannot find function `f` in this scope
  --> $DIR/nested-cfg-attrs.rs:4:13
   |
LL | fn main() { f() }
   |             ^ not found in this scope
   |
note: found an item that was configured out
  --> $DIR/nested-cfg-attrs.rs:2:4
   |
LL | fn f() {}
   |    ^
note: the item is gated here
  --> $DIR/nested-cfg-attrs.rs:1:35
   |
LL | #[cfg_attr(all(), cfg_attr(all(), cfg(FALSE)))]
   |                                   ^^^^^^^^^^
```
2025-08-02 05:09:31 +00:00
Camille GILLOT
63e1327ce9 Use less HIR to compute effective visibility. 2025-08-02 02:08:52 +00:00
bors
c23f07d8c5 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
Esteban Küber
4b24c4bf23 Tweak rendering of cfg'd out item
```
error[E0433]: failed to resolve: could not find `doesnt_exist` in `inner`
  --> $DIR/diagnostics-cross-crate.rs:18:23
   |
LL |     cfged_out::inner::doesnt_exist::hello();
   |                       ^^^^^^^^^^^^ could not find `doesnt_exist` in `inner`
   |
note: found an item that was configured out
  --> $DIR/auxiliary/cfged_out.rs:6:13
   |
LL |     #[cfg(false)]
   |           ----- the item is gated here
LL |     pub mod doesnt_exist {
   |             ^^^^^^^^^^^^
```
2025-08-01 23:58:15 +00:00
Esteban Küber
77f75f91c5 tiny cleanup 2025-08-01 22:11:45 +00:00
Esteban Küber
4ba4559a9d remove recursive search for items 2025-08-01 22:02:52 +00:00
Esteban Küber
5210c501bc Limit how deep we visit items to find cfg'd out names 2025-08-01 21:51:05 +00:00
Esteban Küber
adcda6ca9a Detect more cfgd out items in resolution errors
Use a visitor to collect *all* items (including those nested) that were stripped behind a `cfg` condition.

```
error[E0425]: cannot find function `f` in this scope
  --> $DIR/nested-cfg-attrs.rs:4:13
   |
LL | fn main() { f() }
   |             ^ not found in this scope
   |
note: found an item that was configured out
  --> $DIR/nested-cfg-attrs.rs:2:4
   |
LL | fn f() {}
   |    ^
note: the item is gated here
  --> $DIR/nested-cfg-attrs.rs:1:35
   |
LL | #[cfg_attr(all(), cfg_attr(all(), cfg(FALSE)))]
   |                                   ^^^^^^^^^^
```
2025-08-01 21:50:36 +00:00
bors
63f6845e57 Auto merge of #144458 - compiler-errors:no-witness-mini, r=lcnr
Remove the witness type from coroutine *args* (without actually removing the type)

This does as much of rust-lang/rust#144157 as we can without having to break rust-lang/rust#143545 and/or introduce some better way of handling higher ranked assumptions.

Namely, it:
* Stalls coroutines based off of the *coroutine* type rather than the witness type.
* Reworks the dtorck constraint hack to not rely on the witness type.
* Removes the witness type from the args of the coroutine, eagerly creating the type for nested obligations when needed (auto/clone impls).

I'll experiment with actually removing the witness type in a follow-up.

r? lcnr
2025-08-01 21:07:49 +00:00
bors
4b55fe199c Auto merge of #144735 - weihanglo:update-cargo, r=weihanglo
Update cargo

3 commits in a7fcef21feb4d835d1fee83b3f93b4aef86d5545..840b83a10fb0e039a83f4d70ad032892c287570a
2025-07-13 02:25:52 +0000 to 2025-07-30 13:59:19 +0000
- chore: fix some minor issues in comments (rust-lang/cargo#15787)
- feat(schema): Expose `IndexPackage`, the description of a package within a Registry Index (rust-lang/cargo#15770)
- chore: update toml/toml_edit to latest (rust-lang/cargo#15779)

r? ghost
2025-08-01 13:43:55 +00:00
bors
924a5a4b7f Auto merge of #144773 - RalfJung:rollup-uif2yyj, r=RalfJung
Rollup of 6 pull requests

Successful merges:

 - rust-lang/rust#144397 (`tests/ui/issues/`: The Issues Strike Back [2/N])
 - rust-lang/rust#144410 (Make tier 3 musl targets link dynamically by default)
 - rust-lang/rust#144708 (Add tracing to step.rs and friends)
 - rust-lang/rust#144730 (Create a typed wrapper for codegen backends in bootstrap)
 - rust-lang/rust#144771 (Remove some noisy triagebot pings for myself)
 - rust-lang/rust#144772 (add unsupported_calling_conventions to lint list)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-08-01 10:20:07 +00:00
Ralf Jung
21140a5111
Rollup merge of #144772 - RalfJung:unsupported_calling_conventions, r=lqd
add unsupported_calling_conventions to lint list

Seems like you can emit lints without them being on the list, but users cannot control them then... *oops*.
2025-08-01 09:59:06 +02:00
Ralf Jung
feac604509
Rollup merge of #144771 - jieyouxu:noisy-ping, r=jieyouxu
Remove some noisy triagebot pings for myself

r? ghost
2025-08-01 09:59:05 +02:00
Ralf Jung
0ad0be9b20
Rollup merge of #144730 - Kobzol:bootstrap-cg-typed, r=jieyouxu
Create a typed wrapper for codegen backends in bootstrap

To avoid representing them just with strings.
2025-08-01 09:59:04 +02:00