Skip to content

Dont rerun stalled goals if erased runs succeeded*#157910

Open
jdonszelmann wants to merge 2 commits into
rust-lang:mainfrom
jdonszelmann:stalled-goal-rerun
Open

Dont rerun stalled goals if erased runs succeeded*#157910
jdonszelmann wants to merge 2 commits into
rust-lang:mainfrom
jdonszelmann:stalled-goal-rerun

Conversation

@jdonszelmann

@jdonszelmann jdonszelmann commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

* Unless the succesful erased run was conditional on the state of opaque type storage, and the opaque type storage changed in a significant way

r? @lcnr

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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 Jun 15, 2026
@jdonszelmann

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 Jun 15, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Jun 15, 2026
Dont rerun stalled goals if erased runs succeeded*
@rust-bors

rust-bors Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: d5c2f17 (d5c2f17a7a29a89c4511d0c6ab7f0491f9a500d5, parent: b5d46ecb51c3e4134b82570cfe718f093daa6390)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (d5c2f17): comparison URL.

Overall result: ❌✅ regressions and improvements - please read:

Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf.

Next, please: If you can, justify the regressions found in this try perf run in writing along with @rustbot label: +perf-regression-triaged. If not, fix the regressions and do another perf run. Neutral or positive results will clear the label automatically.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.2% [0.2%, 0.3%] 3
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-40.2% [-68.8%, -10.2%] 6
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (primary -3.0%, secondary -38.9%)

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)
-3.0% [-5.2%, -0.8%] 2
Improvements ✅
(secondary)
-38.9% [-55.0%, -2.2%] 4
All ❌✅ (primary) -3.0% [-5.2%, -0.8%] 2

Cycles

Results (secondary -34.3%)

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
Improvements ✅
(secondary)
-34.3% [-70.8%, -2.8%] 7
All ❌✅ (primary) - - 0

Binary size

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

Bootstrap: 522.814s -> 518.78s (-0.77%)
Artifact size: 400.99 MiB -> 401.54 MiB (0.14%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Jun 15, 2026
Comment on lines +662 to +667
// Whether erased queries succeeded matters for judging whether opaque
// storage changes are relevant. If we're eagerly propagating up, the
// it's because the parent is running in erased mode, and the opaque
// type storage is empty: i.e. opaque storage changes aren't relevant
// anyway and Yes is a fine answer to give.
SucceededInErased::Yes { accessed_opaques },

@lcnr lcnr Jun 15, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be unreachable, should it not? 🤔 we should never propagate to the parent and then reprove the goal in our EvalCtxt

View changes since the review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perf-regression Performance regression. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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.

4 participants