about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2025-01-12 20:18:45 +0000
committerTrevor Gross <tmgross@umich.edu>2025-01-27 07:54:58 +0000
commit24ce0a2efa314eff96af73f5b6c5d0e3392abf38 (patch)
tree584c629d7b18156cadf30f05e746c4055168b779
parent4fec62a430bddc39a1100703f68873881f8700fa (diff)
downloadrust-24ce0a2efa314eff96af73f5b6c5d0e3392abf38.tar.gz
rust-24ce0a2efa314eff96af73f5b6c5d0e3392abf38.zip
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]: https://github.com/rust-lang/rust/pull/92226
[2]: https://rust-lang.zulipchat.com/#narrow/channel/146212-t-compiler.2Fconst-eval/topic/const_black_box
-rw-r--r--tests/run/int.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/run/int.rs b/tests/run/int.rs
index bfe73c38435..58a26801b67 100644
--- a/tests/run/int.rs
+++ b/tests/run/int.rs
@@ -3,8 +3,6 @@
 // Run-time:
 //   status: 0
 
-#![feature(const_black_box)]
-
 /*
  * Code
  */