Skip to content
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

Broken async trait on Rust 1.81 and above #2012

Closed
jon-chuang opened this issue Oct 17, 2024 · 1 comment
Closed

Broken async trait on Rust 1.81 and above #2012

jon-chuang opened this issue Oct 17, 2024 · 1 comment

Comments

@jon-chuang
Copy link

Bug Report

error: implementation of `std::marker::Send` is not general enough

    |
87  |       ) -> Result<Response<ServerDecodeMessage>, Status> {
    |  ________________________________________________________^
146 | |         }
147 | |     }
    | |_____^ implementation of `std::marker::Send` is not general enough
    |
    = note: `std::marker::Send` would have to be implemented for the type `&[u32]`
    = note: ...but `std::marker::Send` is actually implemented for the type `&'0 [u32]`, for some specific lifetime `'0`

No repro

Version

tonic = "0.12.3"

Platform

Macos and Ubuntu

More Info

See these Rustc issues unfixed for 5 years:

@jon-chuang
Copy link
Author

jon-chuang commented Oct 17, 2024

This is actually a broken rustc issue that thankfully provides us with the clearest and most enlightening of error messages. The fix has nothing to do with the error message 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant