Skip to content

Update to hashbrown 0.9 #72

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Sep 4, 2020
Merged

Update to hashbrown 0.9 #72

merged 2 commits into from
Sep 4, 2020

Conversation

mbrubeck
Copy link
Contributor

@mbrubeck mbrubeck commented Sep 3, 2020

The behavior of drain_filter has changed in this release:

rust-lang/hashbrown#186

The behavior of `drain_filter` has changed in this release:

rust-lang/hashbrown#186
@codecov
Copy link

codecov bot commented Sep 3, 2020

Codecov Report

Merging #72 into main will decrease coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #72      +/-   ##
==========================================
- Coverage   81.64%   81.56%   -0.09%     
==========================================
  Files          10       10              
  Lines         752      754       +2     
==========================================
+ Hits          614      615       +1     
- Misses        138      139       +1     
Impacted Files Coverage Δ
src/green/builder.rs 86.40% <100.00%> (ø)
src/green/children.rs 47.91% <0.00%> (+0.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b127a0f...2898bad. Read the comment docs.

Copy link
Owner

@CAD97 CAD97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can tell I wasn't super comfortable with the parity previously implemented, thus leaving the clarifying comment.

The first half of the clarifying comment is also made incorrect by the change/fix, so it also needs to be changed.

I think were drain_filter to have been stable with these semantics originally, I wouldn't have felt the need to add the clarifying comment in the first place. I probably would have still added the comment had it been stable with retain's parity.

Until drain_filter is stabilized, I think the comment is definitely still valuable; once the method is stabilized, the comment may be judged unnecessary.

You can fix the rest of the comment and I'll merge this, or I'll get around to doing as such the next time I get some time to work on pushing this to be ready to integrate into rowan/r-a.

(Coverage diff is noise.)

Co-authored-by: Christopher Durham <cad97@cad97.com>
@mbrubeck
Copy link
Contributor Author

mbrubeck commented Sep 4, 2020

Applied your comment fix.

@CAD97
Copy link
Owner

CAD97 commented Sep 4, 2020

bors: r+

@bors
Copy link
Contributor

bors bot commented Sep 4, 2020

Build succeeded:

@bors bors bot merged commit fbb12b5 into CAD97:main Sep 4, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants