bors
d9b4598d7e
Auto merge of #135753 - compiler-errors:from-ty-const, r=oli-obk
...
Get rid of `mir::Const::from_ty_const`
This function is strange, because it turns valtrees into `mir::Const::Value`, but the rest of the const variants stay as type system consts.
All of the callsites except for one in `instsimplify` (array length simplification of `ptr_metadata` call) just go through the valtree arm of the function, so it's easier to just create a `mir::Const` directly for those.
For the instsimplify case, if we have a type system const we should *keep* having a type system const, rather than turning it into a `mir::Const::Value`; it doesn't really matter in practice, though, bc `usize` has no padding, but it feels more principled.
2025-01-26 09:26:34 +00:00
..
2024-12-18 13:38:53 +11:00
2025-01-25 05:50:36 +00:00
2024-11-18 10:38:56 +01:00
2024-12-18 20:43:54 +08:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-18 21:25:47 +00:00
2024-09-22 19:11:29 -04:00
2025-01-18 21:25:47 +00:00
2024-11-18 10:38:56 +01:00
2024-10-05 12:48:02 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2024-11-18 10:38:56 +01:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-11 11:34:01 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-18 21:25:47 +00:00
2024-11-03 13:38:47 -08:00
2024-12-18 13:38:53 +11:00
2025-01-26 09:26:34 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-26 09:26:34 +00:00
2025-01-23 17:40:41 +00:00
2025-01-18 22:09:34 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-10 07:08:28 +01:00
2025-01-11 11:34:01 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2024-09-10 09:11:17 +10:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2024-09-22 19:11:29 -04:00
2024-09-03 16:03:46 +10:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-11 11:34:01 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00
2025-01-23 17:40:41 +00:00