rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
96.91k stars 12.52k forks source link

regression: type annotations needed #130576

Open BoxyUwU opened 5 hours ago

BoxyUwU commented 5 hours ago
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/blocking/server.rs:98:8
[INFO] [stdout]    |
[INFO] [stdout] 45 | #[derive(Clone, Debug)]
[INFO] [stdout]    |          ----- in this derive macro expansion
[INFO] [stdout] ...
[INFO] [stdout] 98 |   Send(Addrd<platform::Message<P>>),
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for reference `&net::Addrd<kwap_msg::Message<<P as Platform>::MessagePayload, _, <P as Platform>::MessageOptions>>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)

note: if the relevant team already accepted this breakage then the issue can be closed

compiler-errors commented 4 hours ago

https://github.com/rust-lang/rust/pull/129021#issuecomment-2297702647

This regressed in https://github.com/rust-lang/rust/pull/129059, and should be fixed by https://github.com/rust-lang/rust/pull/129317.