So the next time you work with `Layout` and wonder how exactly the niche gets represented, or whether an `enum` can have `ScalarPair` abi (hint: yes it can), you can easily look at a few examples to see how rustc thinks about this type internally.
This is basically the type-level equivalent of `--emit mir`.
I have wanted this since forever, so much that some time ago I wrote an awful hack for this based on rustc debug tracing.
So the next time you work with `Layout` and wonder how exactly the niche gets represented, or whether an `enum` can have `ScalarPair` abi (hint: yes it can), you can easily look at a few examples to see how rustc thinks about this type internally.
This is basically the type-level equivalent of `--emit mir`.
I have wanted this since forever, so much that some time ago I wrote an awful hack for this based on rustc debug tracing.