You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently worked on some changes to tonic. The changes work fine on Rust 1.52 (the version I was on when I wrote the changes) but I've since discovered that things don't compile on Rust 1.51. I see an error like this:
error[E0391]: cycle detected when computing the bounds for type parameter `T`
--> /Users/david.pedersen/dev/major/tonic/target/debug/build/tonic-reflection-8e8e4b3f5942cb14/out/grpc.reflection.v1alpha.rs:185:43
|
185 | Response = http::Response<T::ResponseBody>,
| ^^^^^^^^^^^^^^^
|
= note: ...which again requires computing the bounds for type parameter `T`, completing the cycle
note: cycle used when computing explicit predicates of `proto::server_reflection_client::<impl at /Users/david.pedersen/dev/major/tonic/target/debug/build/tonic-reflection-8e8e4b3f5942cb14/out/grpc.reflection.v1alpha.rs:166:5: 215:6>::with_interceptor`
--> /Users/david.pedersen/dev/major/tonic/target/debug/build/tonic-reflection-8e8e4b3f5942cb14/out/grpc.reflection.v1alpha.rs:185:43
|
185 | Response = http::Response<T::ResponseBody>,
I'm not knowingly doing anything that requires Rust 1.52 so find this error a bit surprising. Could it be a bug in rustc?
searched nightlies: from nightly-2020-10-01 to nightly-2021-05-01
regressed nightly: nightly-2021-02-10
searched commits: from 0fc6756 to 097bc6a
regressed commit: f4008fe
@davidpdrsn releases are immutable, and I've never heard of doing a point release for anything other than the latest stable. So I'm not sure what the point of this issue is even if it is a bugfix.
I recently worked on some changes to tonic. The changes work fine on Rust 1.52 (the version I was on when I wrote the changes) but I've since discovered that things don't compile on Rust 1.51. I see an error like this:
I'm not knowingly doing anything that requires Rust 1.52 so find this error a bit surprising. Could it be a bug in rustc?
Reproduction:
I expected to see this happen: Things should build on 1.51 as well as 1.52.
Instead, this happened: Doesn't build on 1.51, does build on 1.52.
The text was updated successfully, but these errors were encountered: