Matthias Krüger
94bb2d2a97
Rollup merge of #121664 - compiler-errors:adjust-error-yield-lowering, r=spastorino
...
Adjust error `yield`/`await` lowering
Adjust the lowering of `yield`/`await` outside of their correct scopes so that we no longer make orpan HIR exprs.
Previously, `yield EXPR` would be lowered directly to `hir::TyKind::Error` (which I'll call `<error>`) which means that `EXPR` was not present in the HIR, but now we lower it to `{ EXPR; <error> }` so that `EXPR` is not orphaned.
Fixes #121096
2024-03-05 06:40:30 +01:00
..
2024-02-28 12:58:32 -05:00
2024-03-02 20:13:24 +01:00
2024-03-05 06:40:30 +01:00
2024-03-05 12:15:10 +11:00
2024-03-02 10:09:36 +01:00
2024-03-05 12:15:10 +11:00
2024-03-04 16:13:50 +00:00
2024-03-05 12:15:10 +11:00
2024-03-04 16:13:50 +00:00
2024-03-03 22:21:53 +00:00
2024-03-03 22:21:53 +00:00
2024-03-05 02:58:34 +00:00
2024-03-05 12:14:49 +11:00
2024-03-04 22:16:30 +01:00
2024-03-05 08:11:45 +11:00
2024-03-02 10:09:35 +01:00
2024-03-05 12:14:49 +11:00
2024-03-05 12:15:13 +11:00
2024-03-05 12:15:10 +11:00
2024-03-04 16:13:50 +00:00
2024-03-05 12:14:49 +11:00
2024-03-01 13:59:06 -05:00
2024-03-05 02:58:34 +00:00
2024-03-05 02:58:34 +00:00
2024-03-05 08:11:45 +11:00
2024-03-05 12:14:49 +11:00
2024-03-05 12:15:10 +11:00
2024-03-05 02:58:34 +00:00
2024-03-05 12:15:10 +11:00
2024-03-01 18:50:40 -08:00
2024-03-03 12:33:26 +01:00
2024-03-05 12:14:49 +11:00
2024-03-05 00:13:01 +00:00
2024-03-05 02:58:34 +00:00
2024-03-05 12:14:49 +11:00
2024-03-04 16:13:50 +00:00
2024-03-05 02:58:34 +00:00
2024-03-04 16:13:51 +00:00
2024-03-04 15:39:59 +00:00
2024-03-05 12:15:10 +11:00
2024-03-05 12:14:49 +11:00
2024-03-05 12:14:49 +11:00
2024-02-29 11:08:29 +11:00
2024-03-03 21:12:04 +01:00
2024-02-29 11:08:27 +11:00
2024-03-05 12:15:13 +11:00
2024-03-05 12:15:10 +11:00
2024-03-01 11:16:35 -08:00
2024-03-05 02:58:34 +00:00
2024-03-02 20:13:24 +01:00
2024-03-04 18:55:14 +00:00
2024-03-05 12:14:49 +11:00
2024-03-04 16:28:33 +00:00
2024-03-04 15:39:59 +00:00
2024-03-01 11:16:35 -08:00