- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
          use LocalDefId instead of HirId in trait resolution to simplify the obligation clause resolution
          #103902
        
          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
  
    use LocalDefId instead of HirId in trait resolution to simplify the obligation clause resolution
  
  #103902
              Conversation
| r? @nagisa (rustbot has picked a reviewer for you, use r? to override) | 
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
a8d2b49    to
    c7f97b2      
    Compare
  
    
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
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.
didn't yet look through everything, will do the rest of this PR later
c7f97b2    to
    16dc523      
    Compare
  
    
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
41028d8    to
    73e2d77      
    Compare
  
    
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
| ☔ The latest upstream changes (presumably #103978) made this pull request unmergeable. Please resolve the merge conflicts. | 
        
          
                compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | @rustbot author | 
73e2d77    to
    e263973      
    Compare
  
    e263973    to
    bafe349      
    Compare
  
    | @bors retry timeout | 
| ⌛ Testing commit 7d2c110 with merge b98e2203189b297d9f2800668e7b84e62d79b7b0... | 
| 💔 Test failed - checks-actions | 
| @bors retry unable to access 'https://github.com/rust-lang/stdarch.git/': Failed to connect to github.com port 443: Connection timed out | 
| ☀️ Test successful - checks-actions | 
    
      
        1 similar comment
      
    
  
    | ☀️ Test successful - checks-actions | 
| Finished benchmarking commit (027c850): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment. 
 Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment. 
 CyclesThis benchmark run did not return any relevant results for this metric. | 
Remove HirId -> LocalDefId map from HIR. Having this map in HIR prevents the creating of new definitions after HIR has been built. Thankfully, we do not need it. Based on rust-lang#103902
Remove HirId -> LocalDefId map from HIR. Having this map in HIR prevents the creating of new definitions after HIR has been built. Thankfully, we do not need it. Based on rust-lang/rust#103902
This commit introduces a refactoring suggested by @lcnr to simplify the obligation clause resolution.
This is just the first PR that introduces a type of refactoring, but others PRs will follow this to introduce name changing to change from the variable name from
body_idto something else.Fixes #104827
Signed-off-by: Vincenzo Palazzo vincenzopalazzodev@gmail.com
@rustbot r? @lcnr