Skip to content

Fix for current nightly #1

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 2 commits into from
May 10, 2014
Merged

Conversation

renato-zannon
Copy link
Contributor

The ~ syntax is going away, and most of it was already removed (with the exception of ~str and ~[]). This PR changes the current uses of ~T to Box<T>, making the library compilable (and the tests pass) on the current (May 8th 2014) nightly.

Also, there were a few uses of ~[] that were unnecessary - the [] literal already returns a &'static [T], which is enough for many (most?) uses where the vector doesn't need to be changed. This avoids a heap allocation.

Update: I think travis' rustc is older than the current nightly, causing the build failure. For the record, the version I used to build and test this is rust-lang/rust@c4f0980

blackbeam added a commit that referenced this pull request May 10, 2014
Fix for current nightly
@blackbeam blackbeam merged commit decdab4 into blackbeam:master May 10, 2014
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