-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Implement some missing traits for SmallIntMap and TrieMap/TrieSet. #15963
Conversation
@alexcrichton I'm assuming you wanted me to squash that. |
Sure! |
I'm not sure I understand the error here.
Any idea? |
Inside of the libcollections tests you'll have to make sure you're using the right version of traits and vectors and such. In that example it looks like you're using the libcollections In general you can just fiddle with imports until it compiles. |
…tMap and Show/Clone for TrieMap and TrieSet
I don't think I really changed anything, but it passes Travis now so maybe it works? |
I'm missing something important here. I can see that Hash is implemented for Option in libcollections::hash, but apparently smallintmap can't see that implementation? How do you import an implementation from another module? |
I've decided to remove the Hash implementation for SmallIntMap and either try to add it later or let someone who knows more try to implement it. This now passes all tests on my machine. |
The problem is that when you're testing libcollections there are two versions of libcollections, one with libstd and one that you're testing. This means that there are two versions of the The fix would be to implement the tested |
@alexcrichton Thanks for the explanation! This seems to work if I remove the |
Implements PartialEq/Eq/Clone/Hash/FromIterator/Extendable for SmallIntMap and Clone/Show for TrieMap/TrieSet. cc #15294
Implements PartialEq/Eq/Clone/Hash/FromIterator/Extendable for SmallIntMap and Clone/Show for TrieMap/TrieSet. cc #15294