remove redundant wrapping of return types of allow_internal_unstable() and rustc_allow_const_fn_unstable()
This commit is contained in:
parent
a9b90c02a2
commit
da9a588d4f
4 changed files with 8 additions and 9 deletions
|
@ -106,7 +106,7 @@ impl<'tcx> CheckConstVisitor<'tcx> {
|
|||
// However, we cannot allow stable `const fn`s to use unstable features without an explicit
|
||||
// opt-in via `rustc_allow_const_fn_unstable`.
|
||||
attr::rustc_allow_const_fn_unstable(&tcx.sess, &tcx.get_attrs(def_id))
|
||||
.map_or(false, |mut features| features.any(|name| name == feature_gate))
|
||||
.any(|name| name == feature_gate)
|
||||
};
|
||||
|
||||
match required_gates {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue