- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
          Use a SmallVec within _match::Matrix.
          #56269
        
          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
Conversation
| r? @davidtwco (rust_highfive has picked a reviewer for you, use r? to override) | 
| Note! This code doesn't compile currently. I get four compile errors: This is at least partly because  @nikomatsakis: this is similar to #55525. | 
| r=me (@bors delegate+) -- one thing though might be to change the repeated SmallVec writing to a type alias placed somewhere, but since I didn't see a great place for it I don't think we should block on it or do it all perhaps | 
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
| @bors r- As mentioned above, this code doesn't currently compile. I'm posting it to a PR because it's the easiest way to get others to look at it :) 
 I tried that, and ended up with this: and when you see a  | 
| That's a good point -- though  Also, r=me doesn't actually bors-approve, I just indicated that the overall change seemed good so when ready you can go ahead and r=me :) | 
43bef44    to
    1b0f049      
    Compare
  
    | I put new code up. If works if  | 
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
1b0f049    to
    123df63      
    Compare
  
    | 
 @Mark-Simulacrum: want to take another look before landing? | 
| @bors r+ | 
| 📌 Commit 123df632f43fd20c57badf1d591bf11a4bdc044f has been approved by  | 
| 🔒 Merge conflict This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again. How do I rebase?Assuming  
 You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial. Please avoid the "Resolve conflicts" button on GitHub. It uses  Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how  Error message | 
| ☔ The latest upstream changes (presumably #55922) made this pull request unmergeable. Please resolve the merge conflicts. | 
123df63    to
    642ad42      
    Compare
  
    | I have rebased. @bors r=simulacrum | 
| 📌 Commit 642ad4221857731e6cc170431a8bb2ed1f6bb055 has been approved by  | 
| The job  Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact  | 
| @bors r- | 
This commit also fixes up lifetimes a bit: - Renames `'a` as `'p` when used with `Matrix` and `Pattern`, for consistency. - Removes some unnecessary `'p` lifetimes on some function arguments. - Adds some missing lifetime parameters.
642ad42    to
    cdc6633      
    Compare
  
    | I have updated. Just required changing a  @bors r=simulacrum | 
| 📌 Commit cdc6633 has been approved by  | 
Use a `SmallVec` within `_match::Matrix`. This avoids allocations.
| ☀️ Test successful - status-appveyor, status-travis | 
This avoids allocations.