Skip to content

Rerun the goal with doubled recursion limit even if the goal has ty vars - #160254

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
adwinwhite:fix-fcw-missing
Aug 3, 2026
Merged

Rerun the goal with doubled recursion limit even if the goal has ty vars#160254
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
adwinwhite:fix-fcw-missing

Conversation

@adwinwhite

@adwinwhite adwinwhite commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Fix the bevy_render regression and more in the next solver crater run.

The problem is that we don't rerun the root goal with doubled recursion limit if it contains ty vars.
But we actually need the evaluation response to resolve the ty vars. So the type inference fails.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Jul 31, 2026
@adwinwhite

Copy link
Copy Markdown
Contributor Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 31, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Jul 31, 2026
[PERF] rerun even if the goal has ty vars
@rust-bors

rust-bors Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 9c22651 (9c226517f39ac2eb73245bb4d6dcf5233fb5df63)
Base parent: 8ab9fdf (8ab9fdff5a91b9f2b5ed57fb0275452d9a0d0280)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (9c22651): comparison URL.

Overall result: no relevant changes - no action needed

Benchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up.

@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This perf run didn't have relevant results for this metric.

Max RSS (memory usage)

Results (primary -1.9%, secondary 5.8%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
0.4% [0.4%, 0.4%] 1
Regressions ❌
(secondary)
5.8% [5.8%, 5.8%] 1
Improvements ✅
(primary)
-2.7% [-5.0%, -0.7%] 3
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -1.9% [-5.0%, 0.4%] 4

Cycles

Results (primary -0.3%, secondary -0.4%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
0.6% [0.5%, 0.9%] 3
Regressions ❌
(secondary)
1.0% [0.5%, 3.4%] 7
Improvements ✅
(primary)
-1.0% [-1.7%, -0.5%] 4
Improvements ✅
(secondary)
-1.5% [-3.9%, -0.4%] 9
All ❌✅ (primary) -0.3% [-1.7%, 0.9%] 7

Binary size

Results (primary -0.1%, secondary -0.1%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.1% [-0.1%, -0.0%] 38
Improvements ✅
(secondary)
-0.1% [-0.1%, -0.0%] 42
All ❌✅ (primary) -0.1% [-0.1%, -0.0%] 38

Bootstrap: 492.09s -> 490.546s (-0.31%)
Artifact size: 390.63 MiB -> 390.52 MiB (-0.03%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 31, 2026
@lcnr

lcnr commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

alright, can you make sure this fixes the issues and add them as test, then r=me I guess 🤣

@adwinwhite adwinwhite changed the title [PERF] rerun even if the goal has ty vars Rerun the goal with doubled recursion limit even if the goal has ty vars Aug 3, 2026
@adwinwhite
adwinwhite marked this pull request as ready for review August 3, 2026 03:31
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 3, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Aug 3, 2026
@rustbot

rustbot commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

r? @mu001999

rustbot has assigned @mu001999.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 75 candidates
  • Random selection from 19 candidates

@adwinwhite

Copy link
Copy Markdown
Contributor Author

Sorry, forgot to
r? lcnr
The bevy_render crate compiles without errors now.
@bors r=lcnr rollup

@rust-bors

rust-bors Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 1489e47 has been approved by lcnr

It is now in the queue for this repository.

@rust-bors rust-bors Bot added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Aug 3, 2026
@rust-bors rust-bors Bot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 3, 2026
rust-bors Bot pushed a commit that referenced this pull request Aug 3, 2026
Rollup of 3 pull requests

Successful merges:

 - #160306 (Don't use exported generics from conditional dependencies (panic runtimes and profiler-builtins))
 - #160254 (Rerun the goal with doubled recursion limit even if the goal has ty vars)
 - #160380 (Improve the test for patterns in fn pointers)
rust-bors Bot pushed a commit that referenced this pull request Aug 3, 2026
Rollup of 3 pull requests

Successful merges:

 - #160306 (Don't use exported generics from conditional dependencies (panic runtimes and profiler-builtins))
 - #160254 (Rerun the goal with doubled recursion limit even if the goal has ty vars)
 - #160380 (Improve the test for patterns in fn pointers)
@rust-bors
rust-bors Bot merged commit d4275bd into rust-lang:main Aug 3, 2026
13 checks passed
@rustbot rustbot added this to the 1.99.0 milestone Aug 3, 2026
rust-timer added a commit that referenced this pull request Aug 3, 2026
Rollup merge of #160254 - adwinwhite:fix-fcw-missing, r=lcnr

Rerun the goal with doubled recursion limit even if the goal has ty vars

Fix the `bevy_render` regression and more in the next solver crater run.

The problem is that we don't rerun the root goal with doubled recursion limit if it contains ty vars.
But we actually need the evaluation response to resolve the ty vars. So the type inference fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants