rust/compiler
Matthias Krüger c00eac3558
Rollup merge of #104592 - ComputerDruid:async_check, r=compiler-errors
Ensure async trait impls are async (or otherwise return an opaque type)

As a workaround for the full `#[refine]` semantics not being implemented
yet, forbit returning a concrete future type like `Box<dyn Future>` or a
manually implemented Future.

`-> impl Future` is still permitted; while that can also cause
accidental refinement, that's behind a different feature gate
(`return_position_impl_trait_in_trait`) and that problem exists
regardless of whether the trait method is async, so will have to be
solved more generally.

Fixes https://github.com/rust-lang/rust/issues/102745
2022-12-15 12:46:00 +01:00
..
2022-12-12 19:49:53 +01:00
2022-12-06 14:45:58 +00:00
2022-12-12 19:49:53 +01:00
2022-12-12 19:49:53 +01:00
2022-12-14 15:36:39 +00:00
2022-12-12 19:49:53 +01:00
2022-12-12 19:49:53 +01:00
2022-12-14 18:55:55 +00:00
2022-12-13 10:39:44 -08:00