Skip to content

Commit 659028f

Browse files
Use proper issue for const_fn_floating_point_arithmetic
1 parent 4cac90c commit 659028f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

compiler/rustc_feature/src/active.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ declare_features! (
585585
(active, const_evaluatable_checked, "1.48.0", Some(76560), None),
586586

587587
/// Allows basic arithmetic on floating point types in a `const fn`.
588-
(active, const_fn_floating_point_arithmetic, "1.48.0", Some(57563), None),
588+
(active, const_fn_floating_point_arithmetic, "1.48.0", Some(57241), None),
589589

590590
// -------------------------------------------------------------------------
591591
// feature-group-end: actual feature gates

src/test/ui/consts/const-extern-fn/const-extern-fn-min-const-fn.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ error[E0658]: floating point arithmetic is not allowed in constant functions
1313
LL | const unsafe extern fn use_float() { 1.0 + 1.0; }
1414
| ^^^^^^^^^
1515
|
16-
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
16+
= note: see issue #57241 <https://github.com/rust-lang/rust/issues/57241> for more information
1717
= help: add `#![feature(const_fn_floating_point_arithmetic)]` to the crate attributes to enable
1818

1919
error[E0658]: casting pointers to integers in constant functions is unstable

src/test/ui/consts/const_fn_floating_point_arithmetic.stock.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0658]: floating point arithmetic is not allowed in constant functions
44
LL | const fn add(f: f32) -> f32 { f + 2.0 }
55
| ^^^^^^^
66
|
7-
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
7+
= note: see issue #57241 <https://github.com/rust-lang/rust/issues/57241> for more information
88
= help: add `#![feature(const_fn_floating_point_arithmetic)]` to the crate attributes to enable
99

1010
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
1313
LL | const fn sub(f: f32) -> f32 { 2.0 - f }
1414
| ^^^^^^^
1515
|
16-
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
16+
= note: see issue #57241 <https://github.com/rust-lang/rust/issues/57241> for more information
1717
= help: add `#![feature(const_fn_floating_point_arithmetic)]` to the crate attributes to enable
1818

1919
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
2222
LL | const fn mul(f: f32, g: f32) -> f32 { f * g }
2323
| ^^^^^
2424
|
25-
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
25+
= note: see issue #57241 <https://github.com/rust-lang/rust/issues/57241> for more information
2626
= help: add `#![feature(const_fn_floating_point_arithmetic)]` to the crate attributes to enable
2727

2828
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
3131
LL | const fn div(f: f32, g: f32) -> f32 { f / g }
3232
| ^^^^^
3333
|
34-
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
34+
= note: see issue #57241 <https://github.com/rust-lang/rust/issues/57241> for more information
3535
= help: add `#![feature(const_fn_floating_point_arithmetic)]` to the crate attributes to enable
3636

3737
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
4040
LL | const fn neg(f: f32) -> f32 { -f }
4141
| ^^
4242
|
43-
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
43+
= note: see issue #57241 <https://github.com/rust-lang/rust/issues/57241> for more information
4444
= help: add `#![feature(const_fn_floating_point_arithmetic)]` to the crate attributes to enable
4545

4646
error: aborting due to 5 previous errors

0 commit comments

Comments
 (0)