rust-lang/rust#162517 introduced a FIXME:
// FIXME(min_generic_const_args): This check should be removed for mGCA, it is due to
// the lack of ConstParamTy rib-checking in nameres for directly represented const
// items.
before, when lowering type const syntax, there was a (Lifetime)RibKind::ConstParamTy that prevented some things in the types of type const. These checks no longer exist with direct-macro-RHS const items. That FIXME was a quick hack fix jank for that PR since there were bigger problems at hand, we should look into this topic more once that's merged and whatnot.
See also zulip discussion: #project-const-generics > casual chat and support @ 💬
rust-lang/rust#162517 introduced a FIXME:
before, when lowering
type constsyntax, there was a(Lifetime)RibKind::ConstParamTythat prevented some things in the types oftype const. These checks no longer exist with direct-macro-RHS const items. That FIXME was a quick hack fix jank for that PR since there were bigger problems at hand, we should look into this topic more once that's merged and whatnot.See also zulip discussion: #project-const-generics > casual chat and support @ 💬