feature(const_generics) -> feature(const_param_types)
This commit is contained in:
@@ -2734,8 +2734,7 @@ impl<'a> Resolver<'a> {
|
||||
ConstantItemRibKind(trivial, _) => {
|
||||
let features = self.session.features_untracked();
|
||||
// HACK(min_const_generics): We currently only allow `N` or `{ N }`.
|
||||
if !(trivial || features.const_generics || features.generic_const_exprs)
|
||||
{
|
||||
if !(trivial || features.generic_const_exprs) {
|
||||
// HACK(min_const_generics): If we encounter `Self` in an anonymous constant
|
||||
// we can't easily tell if it's generic at this stage, so we instead remember
|
||||
// this and then enforce the self type to be concrete later on.
|
||||
@@ -2807,8 +2806,7 @@ impl<'a> Resolver<'a> {
|
||||
ConstantItemRibKind(trivial, _) => {
|
||||
let features = self.session.features_untracked();
|
||||
// HACK(min_const_generics): We currently only allow `N` or `{ N }`.
|
||||
if !(trivial || features.const_generics || features.generic_const_exprs)
|
||||
{
|
||||
if !(trivial || features.generic_const_exprs) {
|
||||
if record_used {
|
||||
self.report_error(
|
||||
span,
|
||||
|
||||
Reference in New Issue
Block a user