Skip to content

more work on container traits #4571

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 4 commits into from
Jan 22, 2013
Merged

more work on container traits #4571

merged 4 commits into from
Jan 22, 2013

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