make feature recommendations optional
This commit is contained in:
parent
814a560072
commit
da6261e07f
2 changed files with 21 additions and 12 deletions
|
@ -487,7 +487,13 @@ impl<'a> Resolver<'a> {
|
|||
name
|
||||
));
|
||||
}
|
||||
err.help("use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions");
|
||||
|
||||
if self.session.is_nightly_build() {
|
||||
err.help(
|
||||
"use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` \
|
||||
to allow generic const expressions"
|
||||
);
|
||||
}
|
||||
|
||||
err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue