Files
rust/compiler
Nicholas Nethercote 41b6899487 Remove rustc_feature::State.
`State` is used to distinguish active vs accepted vs removed features.
However, these can also be distinguished by their location, in
`ACTIVE_FEATURES`, `ACCEPTED_FEATURES`, and `REMOVED_FEATURES`.

So this commit removes `State` and moves the internals of its variants
next to the `Feature` in each element of `*_FEATURES`, introducing new
types `ActiveFeature` and `RemovedFeature`. (There is no need for
`AcceptedFeature` because `State::Accepted` had no fields.)

This is a tighter type representation, avoids the need for some runtime
checks, and makes the code a bit shorter.
2023-10-16 08:15:30 +11:00
..
2023-10-09 17:13:35 -04:00
2023-07-03 07:20:51 +00:00
2023-10-13 21:01:36 +00:00
2023-08-23 20:05:14 -04:00
2023-10-16 08:15:30 +11:00