Rollup merge of #129042 - Jaic1:fix-116308, r=BoxyUwU

Special-case alias ty during the delayed bug emission in `try_from_lit`

This PR tries to fix #116308.

A delayed bug in `try_from_lit` will not be emitted so that the compiler will not ICE when it sees the pair `(ast::LitKind::Int, ty::TyKind::Alias)` in `lit_to_const` (called from `try_from_lit`).

This PR is related to an unstable feature `adt_const_params` (#95174).

r? ``@BoxyUwU``
This commit is contained in:
Matthias Krüger 2024-08-16 19:58:58 +02:00 committed by GitHub
commit 26241b8dea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

Diff content is not available