rust/compiler/rustc_trait_selection/src
bors 08db600e8e Auto merge of #135186 - camelid:const-path-multi, r=BoxyUwU
mgca: Lower all const paths as `ConstArgKind::Path`

When `#![feature(min_generic_const_args)]` is enabled, we now lower all
const paths in generic arg position to `hir::ConstArgKind::Path`. We
then lower assoc const paths to `ty::ConstKind::Unevaluated` since we
can no longer use the anon const expression lowering machinery. In the
process of implementing this, I factored out `hir_ty_lowering` code that
is now shared between lowering assoc types and assoc consts.

This PR also introduces a `#[type_const]` attribute for trait assoc
consts that are allowed as const args. However, we still need to
implement code to check that assoc const definitions satisfy
`#[type_const]` if present (basically is it a const path or a
monomorphic anon const).

r? `@BoxyUwU`
2025-03-04 22:37:37 +00:00
..
error_reporting Auto merge of #135186 - camelid:const-path-multi, r=BoxyUwU 2025-03-04 22:37:37 +00:00
errors Teach structured errors to display short Ty 2025-02-25 16:56:03 +00:00
solve Rollup merge of #137776 - nnethercote:rustc_transmute-cleanups, r=jswrenn 2025-03-01 11:34:01 +01:00
traits mgca: Lower all const paths as ConstArgKind::Path 2025-03-04 10:11:13 -05:00
errors.rs Teach structured errors to display short Ty 2025-02-25 16:56:03 +00:00
infer.rs Suggest Semicolon in Incorrect Repeat Expressions 2024-12-21 02:30:50 +00:00
lib.rs stabilize extract_if 2025-02-23 21:11:12 +07:00
regions.rs Move param env bound deep normalization to OutlivesEnvironment building 2025-01-28 19:11:05 +00:00
solve.rs impossible obligations check fast path 2024-10-10 06:09:50 -04:00