-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Regression in BTreeMap
iterator variance
#30979
Comments
Oops! I could've sworn we checked up on variance, but I guess these slipped through. |
I checked for variance on |
This is actually annoyingly tricky, because the invariance comes from Probably the best option is to make |
This takes the approach of making `NodeRef` universally covariant. Fixes #30979.
#30426 caused
btree_map::{IntoIter, Iter, Range}
to become invariant inK
andV
. They were previously covariant.CC #30642 @gankro @gereeter
The text was updated successfully, but these errors were encountered: