diff options
| author | Noratrieb <48135649+Noratrieb@users.noreply.github.com> | 2025-07-26 12:15:19 +0200 |
|---|---|---|
| committer | Noratrieb <48135649+Noratrieb@users.noreply.github.com> | 2025-09-12 20:37:09 +0200 |
| commit | a0bb9cc57db551289cba9fefde086e45cb82733f (patch) | |
| tree | 5e9da15a69c8e93a7cf268ff130b65fdb3cf20e9 /compiler/rustc_infer/src | |
| parent | a171994070dc18c3a32fc1aa2d98cf03ae96b63e (diff) | |
| download | rust-a0bb9cc57db551289cba9fefde086e45cb82733f.tar.gz rust-a0bb9cc57db551289cba9fefde086e45cb82733f.zip | |
Introduce `target_spec_enum` macro to avoid duplication
With this macro we only need to enumerate every variant once. This saves a lot of duplication already between the definition, the `FromStr` impl and the `ToJson` impl. It also enables us to do further things with it like JSON schema generation.
Diffstat (limited to 'compiler/rustc_infer/src')
0 files changed, 0 insertions, 0 deletions
