rename const_evaluatable_checked to generic_const_exprs
✨
This commit is contained in:
parent
dbb0fe9d80
commit
fcc2badf9b
146 changed files with 178 additions and 213 deletions
|
@ -506,8 +506,8 @@ impl<'a> Resolver<'a> {
|
|||
|
||||
if self.session.is_nightly_build() {
|
||||
err.help(
|
||||
"use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` \
|
||||
to allow generic const expressions"
|
||||
"use `#![feature(const_generics)]` and `#![feature(generic_const_exprs)]` \
|
||||
to allow generic const expressions",
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -2734,9 +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.lazy_normalization_consts)
|
||||
if !(trivial || features.const_generics || 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
|
||||
|
@ -2809,9 +2807,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.lazy_normalization_consts)
|
||||
if !(trivial || features.const_generics || features.generic_const_exprs)
|
||||
{
|
||||
if record_used {
|
||||
self.report_error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue