Skip to content

Commit 24ce0a2

Browse files
committed
Stabilize const_black_box
This has been unstably const since [1], but a tracking issue was never created. Per discussion on Zulip [2], there should not be any blockers to making this const-stable. The function does not provide any functionality at compile time but does allow code reuse between const- and non-const functions, so stabilize it here. [1]: rust-lang/rust#92226 [2]: https://rust-lang.zulipchat.com/#narrow/channel/146212-t-compiler.2Fconst-eval/topic/const_black_box
1 parent 4fec62a commit 24ce0a2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/run/int.rs

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// Run-time:
44
// status: 0
55

6-
#![feature(const_black_box)]
7-
86
/*
97
* Code
108
*/

0 commit comments

Comments
 (0)