-
Notifications
You must be signed in to change notification settings - Fork 382
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
trait objects without an explicit dyn
are deprecated
#414
Comments
Yep, most error were fixed in d6f783e and version 2.6.2, and more muted warnings are needed. Note that rust-protobuf 2.6 cannot switch to Probably rust-protobuf 2.7 needs to require Rust 1.27 where |
rust-protobuf 2.7 (unreleased branch) now works only with Rust 1.27. |
Any plans to release 2.7? |
In about a week. I'm a bit worried that something may break, so if someone wants to help with code review, I'd appreciate that. (Changelog) |
2.7 is released. |
@stepancheg, well, it's released, but the code that gets generated still produces I presume that the minimal Rust version required by |
@jakubadamw Maybe I'm missing something. Can you please show how to reproduce the problem? |
(At least show generated code) |
@stepancheg, sure! 🙂 https://github.com/jakubadamw/rust-protobuf-414
|
Same here for |
OK, I see, the problem exists in stable but does not exist in master. I don't know how to fix in stable.
This syntax is not valid in edition 2015. And edition 2018 is not available until Rust 1.32.0 (2019-01-17). So if you know how to fix it, please let me know. Otherwise, there are two options:
Thoughts? |
I am facing the problem, too. I am quite new in rust. |
I think bumping minimal supported version to 1.32 and switch edition should be fine. Another options are:
|
Let's set the minimum version to 1.32 since 2.8. Going to do it now. |
I'll do it now. |
OK, stupid me. It's not enough. |
Got another idea: df9780f. |
Published 2.8.0. Please let me know if it doesn't solve the problem. |
Are you sure it's compatible with 2015 edition? |
Ah. 1.27. Should be all right. |
Yes, because the protobuf library and all tests are done against the 2015 edition. I'm a bit worried about compatibility with 2018 edition. I did basic checks, but there are no automated CI tests. |
Works for me in my 2018 edition project. |
Works for me, too, thanks! You may also add the 2.8.0 release in github? |
@feuerste I forgot to do |
I use rustc 1.37.0-nightly and report trait objects without an explicit
dyn
are deprecated warningsThe text was updated successfully, but these errors were encountered: