-
Notifications
You must be signed in to change notification settings - Fork 384
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
rust_2018_idioms: build fails with "hidden lifetime parameters in types are deprecated" #435
Comments
Yes, I think this is the right way since this is official Rust recommendation. AFAIU, Context: this is where rust_2018_idioms specified: rust-lang/rust#52047 Patch welcome. |
Fixes #435: "hidden lifetime parameters in types are deprecated" against generated code when `rust_2018_idioms` is enabled in a project.
Reopening since it's not yet merged into stable branch. |
#439 above should do it for stable, assuming that |
Fixes #435: "hidden lifetime parameters in types are deprecated" against generated code when `rust_2018_idioms` is enabled in a project.
Fixes #435: "hidden lifetime parameters in types are deprecated" against generated code when `rust_2018_idioms` is enabled in a project.
In 2.8.1 |
Problem
When project code configures
#[deny(rust_2018_idioms)]
, the generated rust-protobuf code has compilation errors like the following for both2.8.0
andmaster/d2a9ddb
:Environment
Minimal sample
Cargo.toml
Note: This sample shows master:d2a9ddb, however 2.8.0 produces the same errors.
src/main.rs
build.rs
proto/sample.proto
Workarounds
main.rs
specifies#![allow(elided_lifetimes_in_paths)]
then that also gets rid of the errors. However, just adding#![allow(elided_lifetimes_in_paths)]
directly to the generatedsample.rs
output doesn't seem to do anything.The text was updated successfully, but these errors were encountered: