Skip to content

Commit

Permalink
Fix f16 and f128 feature gates in editions other than 2015
Browse files Browse the repository at this point in the history
Fixes rust-lang#123282

Co-authored-by: Vadim Petrochenkov <[email protected]>
  • Loading branch information
tgross35 and petrochenkov committed Apr 3, 2024
1 parent 269f153 commit d83bbad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_resolve/src/ident.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit d83bbad

Please sign in to comment.