Matthias Krüger
b4b483574f
Rollup merge of #120360 - compiler-errors:afit-sized-lol, r=lcnr
...
Don't fire `OPAQUE_HIDDEN_INFERRED_BOUND` on sized return of AFIT
Conceptually, we should probably not fire `OPAQUE_HIDDEN_INFERRED_BOUND` for methods like:
```
trait Foo { async fn bar() -> Self; }
```
Even though we technically cannot prove that `Self: Sized`, which is one of the item bounds of the `Output` type in the `-> impl Future<Output = Sized>` from the async desugaring.
This is somewhat justifiable along the same lines as how we allow regular methods to return `-> Self` even though `Self` isn't sized.
Fixes #113538
(side-note: some days i wonder if we should just remove the `OPAQUE_HIDDEN_INFERRED_BOUND` lint... it does make me sad that we have non-well-formed types in signatures, though.)
2024-01-26 14:43:32 +01:00
..
2024-01-24 20:48:07 +00:00
2023-12-25 20:31:28 +00:00
2023-11-24 19:15:52 +01:00
2023-12-12 00:00:00 +00:00
2024-01-25 04:41:38 +00:00
2024-01-15 08:44:46 +01:00
2024-01-09 21:08:16 +00:00
2024-01-13 12:46:58 -05:00
2023-09-23 13:34:07 +00:00
2023-10-25 16:37:14 +00:00
2024-01-05 09:30:27 +00:00
2023-09-21 22:20:58 +02:00
2024-01-16 17:12:10 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-11-24 19:15:52 +01:00
2024-01-02 15:34:37 -05:00
2024-01-02 15:34:37 -05:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:34:07 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-09-26 20:15:28 +00:00
2023-11-24 19:15:52 +01:00
2023-10-20 21:14:02 +00:00
2023-10-20 21:14:02 +00:00
2023-10-20 21:14:02 +00:00
2023-10-20 21:14:02 +00:00
2023-09-29 22:39:02 +10:00
2023-09-29 22:39:02 +10:00
2023-09-23 13:47:30 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-11-24 19:15:52 +01:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-10-05 01:04:41 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2024-01-13 12:46:58 -05:00
2023-12-19 16:12:17 -08:00
2024-01-13 12:46:58 -05:00
2023-09-08 03:45:36 +00:00
2023-11-24 19:15:52 +01:00
2023-09-23 13:34:07 +00:00
2023-11-24 19:15:52 +01:00
2023-09-23 13:34:07 +00:00
2023-12-19 16:12:17 -08:00
2023-12-19 16:12:17 -08:00
2023-12-22 11:01:07 -08:00
2024-01-17 12:00:27 -08:00
2024-01-17 12:00:27 -08:00
2023-08-27 22:03:16 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-01-17 16:27:57 +00:00
2024-01-17 16:27:57 +00:00
2023-10-28 23:11:03 -07:00
2023-11-18 00:40:11 +00:00
2023-11-18 00:40:11 +00:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +00:00
2023-09-23 13:47:30 +00:00
2023-11-24 19:15:52 +01:00
2023-09-23 13:47:30 +00:00
2023-11-24 19:15:52 +01:00
2023-09-23 13:47:30 +00:00
2023-11-24 19:15:52 +01:00
2023-09-23 13:47:30 +00:00
2023-11-24 19:15:52 +01:00
2023-10-20 08:46:27 +00:00
2024-01-02 14:17:56 +00:00
2023-11-24 19:15:52 +01:00
2023-09-23 13:47:30 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-09-23 13:47:30 +00:00
2023-10-25 16:37:14 +00:00
2023-09-22 15:58:43 +02:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-28 19:29:56 +00:00
2023-11-28 19:29:56 +00:00
2023-09-23 13:34:07 +00:00
2023-11-24 19:15:52 +01:00
2023-09-23 13:47:30 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-10-20 21:14:01 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-09-23 13:34:07 +00:00
2023-11-24 19:15:52 +01:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-09-19 12:48:40 +00:00
2024-01-08 20:30:24 +00:00
2024-01-08 20:30:24 +00:00
2023-10-27 18:29:43 +00:00
2023-10-27 18:29:43 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-01-16 17:12:10 +00:00
2023-10-27 18:29:43 +00:00
2023-10-27 18:29:43 +00:00
2023-10-20 21:14:01 +00:00
2023-12-14 15:22:37 +01:00
2023-10-25 16:37:14 +00:00
2023-11-24 19:15:52 +01:00
2024-01-07 08:56:20 -08:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-01-08 20:30:24 +00:00
2024-01-08 20:30:24 +00:00
2023-10-20 21:14:01 +00:00
2023-11-24 19:15:52 +01:00
2023-11-16 17:00:23 +00:00
2023-11-16 17:00:23 +00:00
2023-11-16 17:00:23 +00:00
2023-11-16 17:00:23 +00:00
2023-10-20 21:14:01 +00:00
2023-10-21 13:18:00 +02:00
2023-10-21 13:18:00 +02:00
2023-11-24 19:15:52 +01:00
2023-09-23 13:47:30 +00:00
2023-11-24 19:15:52 +01:00
2023-09-23 13:34:07 +00:00
2023-11-24 19:15:52 +01:00