Skip to content

Conversation

@thestinger
Copy link
Contributor

This expands the container module from just Set to the following:

Container -> Mutable -> {Map, Set}

The Map trait is implemented by TreeMap and LinearMap to replace to never implemented SendMap trait. It's incomplete at the moment (missing find for now - need to break LinearMap's API and update users of it) and TreeMap will need to be extended to support pop, get and consume to get rid of the LinearMap anonymous implementation. I think I'll drop the current find and get on LinearMap because they don't offer anything over doing the copy in the caller.

Currently causes a segfault in stage1... not sure what to do about that (core.rc and std.rc compile okay with rustc from incoming).

@catamorphism
Copy link
Contributor

Where is the segfault happening?

@thestinger
Copy link
Contributor Author

@catamorphism: It seems like there was just some problem with my build of LLVM - removing the llvm directory and rebuilding it fixed the issue.

@catamorphism
Copy link
Contributor

Looks great, thanks!

catamorphism added a commit that referenced this pull request Jan 22, 2013
more work on container traits
@catamorphism catamorphism merged commit e02449c into rust-lang:incoming Jan 22, 2013
@thestinger thestinger deleted the container branch January 22, 2013 19:05
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