rust/compiler/rustc_ast_lowering/src
Nicholas Nethercote bfd5d59f97 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(_)`.
2025-08-19 21:57:31 +10:00
..
asm.rs asm: Stabilize loongarch32 2025-07-24 22:02:49 +08:00
block.rs Pass the target type down to parse_attribute_list 2025-08-14 18:11:56 +02:00
delegation.rs Remove hir::AssocItemKind. 2025-07-13 13:50:00 +00:00
errors.rs AST lowering: More robustly deal with relaxed bounds 2025-07-18 03:13:21 +02:00
expr.rs Pass the target type down to parse_attribute_list 2025-08-14 18:11:56 +02:00
format.rs Complete span lowering. 2025-07-28 01:00:48 +00:00
index.rs Rollup merge of #142678 - BoxyUwU:gai_cleanup, r=nnethercote 2025-08-03 21:56:54 +02:00
item.rs Prevent impossible combinations in ast::ModKind. 2025-08-19 21:57:31 +10:00
lib.rs Pass the target type down to parse_attribute_list 2025-08-14 18:11:56 +02:00
pat.rs Pass the target type down to parse_attribute_list 2025-08-14 18:11:56 +02:00
path.rs remove P 2025-08-09 15:47:01 +08:00
stability.rs compiler: remove misleading 'c' from abi_c_cmse_nonsecure_call feature 2025-06-25 00:52:10 -07:00