Skip to content

Stable support #39

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
Jul 6, 2015
Merged

Stable support #39

merged 2 commits into from
Jul 6, 2015

Conversation

Yamakaky
Copy link
Contributor

With these changes, it compiles on stable 1.1. The Send is a problem though.

See #36

@ghost
Copy link

ghost commented Jun 27, 2015

Can you determine whether or not RustBox is "Send" when the negative trait is removed?

You can force it to be "Not Send" by adding a PhantomData marker for a type which is "Not Send" This seems to work with stable.

Example

Without it, I get the following error on 1.1 stable :

src/rustbox.rs:222:1: 222:39 error: negative trait bounds are not yet fully
implemented; use marker types for now
src/rustbox.rs:222 impl !std::marker::Send for RustBox {}
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@Yamakaky
Copy link
Contributor Author

What's cool with rust (and haskell (and cool languages)) is that you always have something to learn ^^

@Yamakaky
Copy link
Contributor Author

Yamakaky commented Jul 4, 2015

Did you have time to review the changes ?

gchp added a commit that referenced this pull request Jul 6, 2015
@gchp gchp merged commit 7e76a04 into gchp:master Jul 6, 2015
@gchp
Copy link
Owner

gchp commented Jul 6, 2015

Sorry for the delay, thanks for this @Yamakaky!

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