Rollup merge of #135195 - oli-obk:push-toyoyrupruko, r=lcnr

Make `lit_to_mir_constant` and `lit_to_const` infallible

My motivation for this change is just that it's annoying to check everywhere, especially since all but one call site was just ICEing on errors anyway right there.

They can still fail, but now just return an error constant instead of having the caller handle the error.

fixes #114317
fixes #126182
This commit is contained in:
Matthias Krüger 2025-01-09 14:34:41 +01:00 committed by GitHub
commit d35f2db39a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available