Jacob Pratt
25b81bf5ad
Rollup merge of #145590 - nnethercote:ModKind-Inline, r=petrochenkov
...
Prevent impossible combinations in `ast::ModKind`.
`ModKind::Loaded` has an `inline` field and a `had_parse_error` field. If the `inline` field is `Inline::Yes` then `had_parse_error` must be `Ok(())`.
This commit moves the `had_parse_error` field into the `Inline::No` variant. This makes it impossible to create the nonsensical combination of `inline == Inline::Yes` and `had_parse_error = Err(_)`.
r? ```@Urgau```
2025-08-21 01:12:19 -04:00
..
2025-08-20 15:01:13 -07:00
2025-08-21 01:12:19 -04:00
2025-08-19 21:57:31 +10:00
2025-08-19 21:57:31 +10:00
2025-08-11 17:05:36 -05:00
2025-08-19 23:52:06 +00:00
2025-08-19 20:16:19 +00:00
2025-08-21 01:12:19 -04:00
2025-08-13 21:01:37 +02:00
2025-08-14 16:30:15 +00:00
2025-08-21 01:12:16 -04:00
2025-08-19 23:52:06 +00:00
2025-08-20 00:46:00 -04:00
2025-08-15 16:16:32 +10:00
2025-08-20 15:01:13 -07:00
2025-08-20 15:01:13 -07:00
2025-08-21 01:12:19 -04:00
2025-08-20 17:16:34 +00:00
2025-08-20 15:01:13 -07:00
2025-08-20 00:35:42 +02:00
2025-08-20 15:04:00 -07:00
2025-08-11 17:05:42 -05:00
2025-08-19 14:18:20 +10:00
2025-08-18 09:09:42 +02:00
2025-08-19 19:42:01 +08:00
2025-08-21 01:12:19 -04:00
2025-08-20 15:04:00 -07:00
2025-08-20 19:08:16 +02:00
2025-08-16 21:41:39 +08:00
2025-08-19 19:26:10 +00:00
2025-08-20 15:01:13 -07:00
2025-08-19 20:16:19 +00:00
2025-08-20 15:04:00 -07:00
2025-08-17 10:24:20 +00:00
2025-08-15 16:16:31 +10:00
2025-08-19 19:26:10 +00:00
2025-08-21 01:12:19 -04:00
2025-08-19 19:45:36 +08:00
2025-08-14 09:44:22 +02:00
2025-08-11 17:05:42 -05:00
2025-08-21 01:12:19 -04:00
2025-08-09 14:22:01 +08:00
2025-08-19 21:27:10 +02:00
2025-08-20 17:16:34 +00:00
2025-08-19 19:45:31 +08:00
2025-08-21 01:12:17 -04:00
2025-08-19 19:45:40 +08:00
2025-08-20 15:04:00 -07:00
2025-08-20 19:08:16 +02:00
2025-08-20 15:01:13 -07:00