Fix f16 and f128 feature gates in editions other than 2015
Fixes https://github.com/rust-lang/rust/issues/123282 Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
This commit is contained in:
parent
9a7b176227
commit
5afe072ead
5 changed files with 22 additions and 20 deletions
|
@ -605,6 +605,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||
&& !this.tcx.features().f16
|
||||
&& !ident.span.allows_unstable(sym::f16)
|
||||
&& finalize.is_some()
|
||||
&& innermost_result.is_none()
|
||||
{
|
||||
feature_err(
|
||||
this.tcx.sess,
|
||||
|
@ -618,6 +619,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
|||
&& !this.tcx.features().f128
|
||||
&& !ident.span.allows_unstable(sym::f128)
|
||||
&& finalize.is_some()
|
||||
&& innermost_result.is_none()
|
||||
{
|
||||
feature_err(
|
||||
this.tcx.sess,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue