rust/compiler/rustc_ty_utils/src
bors f2ba41113d Auto merge of #130950 - compiler-errors:yeet-eval, r=BoxyUwU
Continue to get rid of `ty::Const::{try_}eval*`

This PR mostly does:

* Removes all of the `try_eval_*` and `eval_*` helpers from `ty::Const`, and replace their usages with `try_to_*`.
* Remove `ty::Const::eval`.
* Rename `ty::Const::normalize` to `ty::Const::normalize_internal`. This function is still used in the normalization code itself.
* Fix some weirdness around the `TransmuteFrom` goal.

I'm happy to split it out further; for example, I could probably land the first part which removes the helpers, or the changes to codegen which are more obvious than the changes to tools.

r? BoxyUwU

Part of https://github.com/rust-lang/rust/issues/130704
2024-10-21 03:46:28 +00:00
..
layout compiler: pre-move code for fixing enum layout ICEs 2024-10-20 02:09:22 -07:00
abi.rs Auto merge of #131211 - bjorn3:rust_abi_follow_c_rules, r=nikic,jieyouxu 2024-10-19 14:21:46 +00:00
assoc.rs rm ItemKind::OpaqueTy 2024-10-04 23:28:22 +00:00
common_traits.rs Start implementing needs_async_drop and related 2024-05-29 12:50:44 +03:00
consts.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
errors.rs Add warn(unreachable_pub) to rustc_ty_utils. 2024-09-03 08:50:33 +10:00
implied_bounds.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
instance.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
layout.rs Auto merge of #130950 - compiler-errors:yeet-eval, r=BoxyUwU 2024-10-21 03:46:28 +00:00
lib.rs compiler: pre-move code for fixing enum layout ICEs 2024-10-20 02:09:22 -07:00
needs_drop.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
opaque_types.rs rm ItemKind::OpaqueTy 2024-10-04 23:28:22 +00:00
representability.rs Remove extern crate rustc_middle from rustc_ty_utils. 2024-05-13 08:20:18 +10:00
sig_types.rs Stop using a special inner body for the coroutine by-move body for async closures 2024-08-26 18:44:19 -04:00
structural_match.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
ty.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00