-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
#[derive] for custom traits is being depreciated #421
Comments
Glad to hear it! This does compile for me though: https://is.gd/R1rnwF Could you maybe share what you're seeing exactly? |
@steveklabnik I have to apologise. I thought I'd written it out correctly from the book, but coming back to it I see I forgot to capitalise the |
Yup! It's built into the compiler. The lower case @carols10cents do you think it's worth adding some kind of warning here? I could go either way. |
That explains it then, thanks! |
Yeah, I think the warning should be from the compiler, not in the book. I'm not sure why you got rid of that part of your comment @elliotekj, but I saw it in my email and think it's good! Mistyping anything anywhere from the book could result in unexpected errors, so I don't know if it's worth it to try and anticipate any typos :) |
@carols10cents I removed it because, after posting, I realized that @steveklabnik was talking about a warning in the book, not in the compiler. I didn't want the issue to get muddled :) If this is an appropriate place to recommend a warning going into the compiler then I stand by the suggestion though. |
@elliotekj it should go in https://github.com/rust-lang/rust/issues, really. Would you mind creating an issue over there, with something along the lines of what you originally had in that one comment of yours plus the context in which you encountered this? Here's your comment in case it's not in your email:
I'm going to close this issue though :) |
@carols10cents No problem at all. Thanks for the help :) |
Firstly, to everyone who has contributed to this book, thank you. I'm thoroughly enjoying it so far.
As per an error when compiling with Rust
1.14.0 (e8a012324 2016-12-16)
,#[derive]
for custom traits is not considered stable enough for use and is being removed in v1.15. It's actual removal still seems a little in flux an Rust nightly is in v1.16 and has yet to see it's removal. As things stand at the moment though, listing 5-6 in the structs chapter will fail to compile.The text was updated successfully, but these errors were encountered: