Uh oh!
There was an error while loading. Please reload this page.
remove EvaluationResult::EvaluatedTo{Unknown,Recur} - #114249
Closed
aliemjay wants to merge 1 commit into
Closed
Conversation
| // Avoid caching results that depend on more than just the trait-ref | ||
| // - the stack can create recursion. | ||
| if result.is_stack_dependent() { | ||
| return; |
Contributor
There was a problem hiding this comment.
How is it sound to remove this? Aren't we caching things that should not be cached?
aliemjay
commented
Aug 7, 2023
ContributorAuthor
as @compiler-errors noted, this example breaks under this PR because traitTrait<J>{}// This impl doesn't holdimpl<J>Trait<J>forBox<u32>whereBox<u16>:Trait<J>,Option<u8>:Trait<J>,{}// This impl holdsimplTrait<()>forBox<u8>{}// --- Trait2traitTrait2<J>{}// This impl doesn't holdimpl<J>Trait2<J>forBox<u32>whereBox<u16>:Trait<J>{}// This impl holdsimplTrait2<()>forBox<u8>{}fnimpls_trait1<T:Trait<J>,J>(){}fnimpls_trait2<T:Trait2<J>,J>(){}fnmain(){impls_trait1::<Box<_>,_>;impls_trait2::<Box<_>,_>;}@rustbot author |
aliemjay
marked this pull request as draft
August 7, 2023 13:40
bors
commented
Aug 15, 2023
Collaborator
☔ The latest upstream changes (presumably #114023) made this pull request unmergeable. Please resolve the merge conflicts. |
Dylan-DPC
commented
Nov 5, 2023
Member
@aliemjay any updates on this? |
Dylan-DPC
commented
Feb 12, 2024
Member
Closing this as inactive. Feel free to reöpen this pr or create a new pr if you get the time to work on this. Thanks |
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 freeto 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.
I was confused by them while reviewing #114023.
EvaluatedToRecurwas introduced in #42840, seemingly with intent to support inductive cycles in the current solver, but that's not something we plan to have in the old solver. It is broken anyway because it's never converted intoEvaluatedToErrin the root predicate, see the FIXME in the docs.EvaluatedToUnknownis not handled any differently thanEvaluatedtoAmbig.r? @lcnr@compiler-errors