Skip to content

Make std.container.rbtree.RedBlackTree._add @safe#4914

Merged
andralex merged 1 commit intodlang:masterfrom
tom-tan:safe-rbtree-_add
Nov 20, 2016
Merged

Make std.container.rbtree.RedBlackTree._add @safe#4914
andralex merged 1 commit intodlang:masterfrom
tom-tan:safe-rbtree-_add

Conversation

@tom-tan
Copy link
Contributor

@tom-tan tom-tan commented Nov 20, 2016

This request removes a void initializer from _add and makes most unittests in std.container.rbtree @safe.
I also added pure attribute for unittests.

@andralex
Copy link
Member

Auto-merge toggled on

@andralex
Copy link
Member

Could you please push again - the FreeBSD machine is timing out.

@andralex andralex merged commit efe9ea0 into dlang:master Nov 20, 2016
@tom-tan tom-tan deleted the safe-rbtree-_add branch November 21, 2016 00:08
@tom-tan
Copy link
Contributor Author

tom-tan commented Nov 21, 2016

Thanks!

@schveiguy
Copy link
Member

Thank you! Shows how dumb pre-optimization can be 😉

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.

3 participants