diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-09-30 20:46:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-30 20:46:46 +0200 |
| commit | 6e577e18c6324ff63aeb1d31fe78591c09c9dd6c (patch) | |
| tree | 8f4734420e9134b82e8909b6f3f7e154d8619470 /tests/ui/errors/remap-path-prefix.rs | |
| parent | 4cbaa701012bf646185f924980d0fd5fb65b925c (diff) | |
| parent | cc6329a9bcd78c4531e9713775e2936fe223e601 (diff) | |
| download | rust-6e577e18c6324ff63aeb1d31fe78591c09c9dd6c.tar.gz rust-6e577e18c6324ff63aeb1d31fe78591c09c9dd6c.zip | |
Rollup merge of #147181 - Zalathar:fixed-metadata, r=petrochenkov
cg_llvm: Replace enum `MetadataType` with a list of `MetadataKindId` constants The metadata kind ID values declared in `MetadataType` are not part of the LLVM-C API, and are not machine-checked. If a value that we use ever goes out of sync with LLVM, the resulting bugs could be difficult to track down. And the existing values lack any clear indication of what LLVM declarations they correspond to. On top of that, we currently have another way of expressing metadata kind IDs in the form of `MetadataKindId`, which creates confusing inconsistency in LLVM bindings. This PR therefore consolidates all usage of “fixed” metadata kind IDs into one list of `MetadataKindId` constants, which is backed by static assertions in our C++ code that match them up with named anonymous-enum variants in `llvm::LLVMContext`.
Diffstat (limited to 'tests/ui/errors/remap-path-prefix.rs')
0 files changed, 0 insertions, 0 deletions
