Rollup merge of #123307 - tgross35:f16-f128-feature-gate-fix, r=petrochenkov
Fix f16 and f128 feature gating on different editions Apply the fix from https://github.com/rust-lang/rust/issues/123282#issuecomment-2035063388 to correctly gates `f16` and `f128` in editions other than 2015
This commit is contained in:
commit
819568a7b4
9 changed files with 148 additions and 10 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