prost
prost copied to clipboard
e0391 cycle detected when compiling google protobuf and prost-types
MWE with github CI showing the problem: https://github.com/SuperFluffy/google_proto_struct_mwe/runs/4928173386?check_suite_focus=true
I am getting a compiler error when compiling well known types:
error[E0391]: cycle detected when computing when `google::protobuf::Struct` has a significant destructor
--> /home/runner/work/google_proto_struct_mwe/google_proto_struct_mwe/target/debug/build/mwe-a8c883e15e8277dc/out/google.protobuf.rs:10:1
|
10 | pub struct Struct {
| ^^^^^^^^^^^^^^^^^
|
= note: ...which immediately requires computing when `google::protobuf::Struct` has a significant destructor again
= note: cycle used when computing whether `google::protobuf::Struct` has a significant drop
For more information about this error, try `rustc --explain E0391`.
I have seen this crop up starting with 1.58. I had a temporary fix using 1.57, but now this has started to happen there as well, and I am not really sure what to do.
I have filed a bug against rustc here: https://github.com/rust-lang/rust/issues/93296
Looks like I made a mistake in my github CI with respect to 1.57 (rustup install 1.57 && rustup default stable causes stable to be set to 1.58, because that's what's already installed...). So 1.57 works, but 1.58 does not.