Skip to content

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
RalfJung added a commit to RalfJung/rust that referenced this pull request Sep 22, 2025
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