rust/compiler/rustc_const_eval/src
Matthias Krüger 7e0118cdd2
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``
2025-02-03 21:11:35 +01:00
..
check_consts Rollup merge of #130514 - compiler-errors:unsafe-binders, r=oli-obk 2025-02-01 16:41:03 +01:00
const_eval Rollup merge of #136430 - FedericoBruzzone:follow-up-136180, r=oli-obk 2025-02-03 21:11:35 +01:00
interpret Rollup merge of #136438 - RalfJung:offset_from_ub_errors, r=oli-obk 2025-02-03 19:13:27 +08:00
util Remove hook calling via TyCtxtAt. 2025-02-03 17:02:33 +11:00
errors.rs Implement MIR const trait stability checks 2025-01-28 05:01:12 +00:00
lib.rs Refactor using the type-level constant value ty::Value 2025-02-03 14:19:43 +01:00