Show the nested goal chain for the next solver overflow FCW - #161341
Open
adwinwhite wants to merge 5 commits into
Open
Show the nested goal chain for the next solver overflow FCW#161341adwinwhite wants to merge 5 commits into
adwinwhite wants to merge 5 commits into
Conversation
lcnr
reviewed
Aug 20, 2026
| @@ -344,6 +344,10 @@ pub struct InferCtxt<'tcx> { | |||
| /// checking so we disable the FCW there as well. | |||
| enable_next_solver_overflow_fcw: bool, | |||
Contributor
There was a problem hiding this comment.
change this to a Cell instead? 🤔
lcnr
reviewed
Aug 20, 2026
| { | ||
| self.in_next_solver_overflow_fcw.set(true); | ||
| let ret = f(); | ||
| self.in_next_solver_overflow_fcw.set(false); |
Contributor
There was a problem hiding this comment.
feels safer to replace previous entry and then revert to that one in functions like this, otherwise nesting it twice breaks the outer call
adwinwhite
force-pushed
the
overflow-fcw-chain
branch
from
August 20, 2026 08:05
858bfc1 to
0d21359
Compare
This comment has been minimized.
This comment has been minimized.
adwinwhite
force-pushed
the
overflow-fcw-chain
branch
from
August 20, 2026 08:22
0d21359 to
61aecad
Compare
adwinwhite
force-pushed
the
overflow-fcw-chain
branch
from
August 20, 2026 08:25
61aecad to
ce9f31f
Compare
adwinwhite
marked this pull request as ready for review
August 20, 2026 08:35
Collaborator
|
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously we only showed a single root goal for the FCW. It was difficult to find out how the goal overflowed.
We display a proving chain now which should help users identify relevant types or auto traits.
This will affect perf for crates emitting the FCW. E.g.
calimero-storegoes from 4.7s -> 5.7s in local testing since it emits thousands of FCWs internally. The FCW is a mitigation of future hard error and authors are expected to resolve it so it's probably acceptable. It doesn't affect crates without the FCW.r? lcnr