diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-08-19 15:06:48 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-08-19 21:57:31 +1000 |
| commit | c1dfeea919a8ac54d152c90885704e9d43940c7b (patch) | |
| tree | ba653c09190d9cd2d2615b7135f522c9123ee52f /library/std/src/sys/stdio/unix.rs | |
| parent | cdcce5a137af21b8421f71ae104d00ead25eeaf8 (diff) | |
| download | rust-c1dfeea919a8ac54d152c90885704e9d43940c7b.tar.gz rust-c1dfeea919a8ac54d152c90885704e9d43940c7b.zip | |
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(_)`.
Diffstat (limited to 'library/std/src/sys/stdio/unix.rs')
0 files changed, 0 insertions, 0 deletions
