6e0c404f76
Polymorphization cleanup Split out of #106233 Use a newtype instead of a bitset directly. This makes the code way easier to read and easier to adapt for future changes.
For more information about how rustc works, see the rustc dev guide.