diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-02-03 21:11:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-03 21:11:35 +0100 |
| commit | 7e0118cdd257b886a94efa83234c6f400973894e (patch) | |
| tree | bac3a04a5f2002871f34f1e2ab0ea84b088d391a /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 2c6c7f8ef2029712e82c96ecd614973faf537bd1 (diff) | |
| parent | 00c61a81a0c6685d3d5470d5111eeb0159911836 (diff) | |
| download | rust-7e0118cdd257b886a94efa83234c6f400973894e.tar.gz rust-7e0118cdd257b886a94efa83234c6f400973894e.zip | |
Rollup merge of #136430 - FedericoBruzzone:follow-up-136180, r=oli-obk
Use the type-level constant value `ty::Value` where needed **Follow-up to #136180** ### Summary This PR refactors functions to accept a single type-level constant value `ty::Value` instead of separate `ty::ValTree` and `ty::Ty` parameters: - `valtree_to_const_value`: now takes `ty::Value` - `pretty_print_const_valtree`: now takes `ty::Value` - Uses `pretty_print_const_valtree` for formatting valtrees when `visit_const_operand` - Moves `try_to_raw_bytes` from `ty::Valtree` to `ty::Value` --- r? ``@lukas-code`` ``@oli-obk``
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
