From 659028f48b7b47ee3e16a4d110b1379ed8524121 Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Wed, 23 Sep 2020 13:08:20 -0700 Subject: [PATCH] Use proper issue for `const_fn_floating_point_arithmetic` --- compiler/rustc_feature/src/active.rs | 2 +- .../const-extern-fn-min-const-fn.stderr | 2 +- .../const_fn_floating_point_arithmetic.stock.stderr | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/compiler/rustc_feature/src/active.rs b/compiler/rustc_feature/src/active.rs index 720fa9939f399..17b9e1ee7e8ba 100644 --- a/compiler/rustc_feature/src/active.rs +++ b/compiler/rustc_feature/src/active.rs @@ -585,7 +585,7 @@ declare_features! ( (active, const_evaluatable_checked, "1.48.0", Some(76560), None), /// Allows basic arithmetic on floating point types in a `const fn`. - (active, const_fn_floating_point_arithmetic, "1.48.0", Some(57563), None), + (active, const_fn_floating_point_arithmetic, "1.48.0", Some(57241), None), // ------------------------------------------------------------------------- // feature-group-end: actual feature gates diff --git a/src/test/ui/consts/const-extern-fn/const-extern-fn-min-const-fn.stderr b/src/test/ui/consts/const-extern-fn/const-extern-fn-min-const-fn.stderr index 49caac00ca884..fcc34f358f9f9 100644 --- a/src/test/ui/consts/const-extern-fn/const-extern-fn-min-const-fn.stderr +++ b/src/test/ui/consts/const-extern-fn/const-extern-fn-min-const-fn.stderr @@ -13,7 +13,7 @@ error[E0658]: floating point arithmetic is not allowed in constant functions LL | const unsafe extern fn use_float() { 1.0 + 1.0; } | ^^^^^^^^^ | - = note: see issue #57563 for more information + = note: see issue #57241 for more information = help: add `#![feature(const_fn_floating_point_arithmetic)]` to the crate attributes to enable error[E0658]: casting pointers to integers in constant functions is unstable diff --git a/src/test/ui/consts/const_fn_floating_point_arithmetic.stock.stderr b/src/test/ui/consts/const_fn_floating_point_arithmetic.stock.stderr index 7461007fc2aa5..ef7a60faf3f5c 100644 --- a/src/test/ui/consts/const_fn_floating_point_arithmetic.stock.stderr +++ b/src/test/ui/consts/const_fn_floating_point_arithmetic.stock.stderr @@ -4,7 +4,7 @@ error[E0658]: floating point arithmetic is not allowed in constant functions LL | const fn add(f: f32) -> f32 { f + 2.0 } | ^^^^^^^ | - = note: see issue #57563 for more information + = note: see issue #57241 for more information = help: add `#![feature(const_fn_floating_point_arithmetic)]` to the crate attributes to enable error[E0658]: floating point arithmetic is not allowed in constant functions @@ -13,7 +13,7 @@ error[E0658]: floating point arithmetic is not allowed in constant functions LL | const fn sub(f: f32) -> f32 { 2.0 - f } | ^^^^^^^ | - = note: see issue #57563 for more information + = note: see issue #57241 for more information = help: add `#![feature(const_fn_floating_point_arithmetic)]` to the crate attributes to enable error[E0658]: floating point arithmetic is not allowed in constant functions @@ -22,7 +22,7 @@ error[E0658]: floating point arithmetic is not allowed in constant functions LL | const fn mul(f: f32, g: f32) -> f32 { f * g } | ^^^^^ | - = note: see issue #57563 for more information + = note: see issue #57241 for more information = help: add `#![feature(const_fn_floating_point_arithmetic)]` to the crate attributes to enable error[E0658]: floating point arithmetic is not allowed in constant functions @@ -31,7 +31,7 @@ error[E0658]: floating point arithmetic is not allowed in constant functions LL | const fn div(f: f32, g: f32) -> f32 { f / g } | ^^^^^ | - = note: see issue #57563 for more information + = note: see issue #57241 for more information = help: add `#![feature(const_fn_floating_point_arithmetic)]` to the crate attributes to enable error[E0658]: floating point arithmetic is not allowed in constant functions @@ -40,7 +40,7 @@ error[E0658]: floating point arithmetic is not allowed in constant functions LL | const fn neg(f: f32) -> f32 { -f } | ^^ | - = note: see issue #57563 for more information + = note: see issue #57241 for more information = help: add `#![feature(const_fn_floating_point_arithmetic)]` to the crate attributes to enable error: aborting due to 5 previous errors