- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
          canonicalize in inspect, work towards intercrate_ambiguity_causes support
          #114810
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Closed
      
      
    Conversation
  
    
      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
    
  
  
    
    the unnormalized goal is in the callers inference context, while anything inside of the `CanonicalGoalEvaluation` is inside of a new one.
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
              
                    lcnr
  
              
              commented
              
                  
                    Aug 14, 2023 
                  
              
              
            
            
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code needs a lot of comments
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
| ☔ The latest upstream changes (presumably #114023) made this pull request unmergeable. Please resolve the merge conflicts. | 
add `TraitCandidate` variant using `CandidateSource`
| @rustbot author | 
    
  bors 
      added a commit
        to rust-lang-ci/rust
      that referenced
      this pull request
    
      Sep 14, 2023 
    
    
      
  
    
      
    
  
some inspect improvements split from rust-lang#114810 because I still want to experiment a bunch with that PR and these changes are self-contained. r? `@compiler-errors`
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      Labels
      
    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) 
  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.
  
    
  
    
we can now do stuff with the state of nested goals as it does not contain anything local to the inference context inside of the query: https://hackmd.io/57Viy5smRNykmMVB6O76EA.
To actually add
intercrate_ambiguity_causessupport I need to figure out an API to traverse proof trees. Doing so manually for each analysis will be annoying. Still unsure what's the best approach here and have to think more about this.The last commit is the layout of how
intercrate_ambiguity_causescan be supported, still have to implement the actual computation of them thoughr? @compiler-errors