rust-lang / rust

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

Deduplicate code that finds the return type of a future #78755

Open tmandry opened 3 years ago

tmandry commented 3 years ago

I've noticed a lot of code being added to different parts of the compiler that all does the same thing.. gives you the return type of an async fn. This issue is to keep track of all those places and eventually deduplicate them.

guswynn commented 3 years ago

Oh I noticed this as well on https://github.com/rust-lang/rust/pull/78297, forgot to make an issue for it!

tmandry commented 3 years ago

Another place that was added: here in #76468