Skip to content

more work on the map trait and TreeMap/LinearMap #4594

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

Merged
merged 12 commits into from
Jan 24, 2013
Merged

more work on the map trait and TreeMap/LinearMap #4594

merged 12 commits into from
Jan 24, 2013

Conversation

thestinger
Copy link
Contributor

currently breaks test/bench/core-map.rs, which will need to be rewritten

This makes the module much more discoverable, and is in line with the
'treemap' naming.
This legacy trait needs to be dropped in order to migrate to
core::container::Map, which doesn't require @ and Copy, and will make
proper use of borrowed pointers.
This isn't simpler (or faster) than just doing the copy in the caller,
and it doesn't work for types that can be cloned but not copied.
it's pretty solid, at least relative to most of the other modules
@catamorphism
Copy link
Contributor

Thanks, I'm running tests and if they pass, I'll merge this.

@catamorphism
Copy link
Contributor

Awaiting a fix for bench::core-map before merging.

@thestinger
Copy link
Contributor Author

Currently some code duplication in the fix/expansion of the benchmark between the LinearMap/TreeMap functions.

Getting rid of the code duplication results in a very strange borrow checking error (diff: https://gist.github.com/4616504, error: https://gist.github.com/4616785)

@catamorphism
Copy link
Contributor

Great, thanks for the hard work!

catamorphism added a commit that referenced this pull request Jan 24, 2013
more work on the map trait and TreeMap/LinearMap
@catamorphism catamorphism merged commit a202dcc into rust-lang:incoming Jan 24, 2013
@thestinger thestinger deleted the map branch January 24, 2013 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants