about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-01-31 00:25:34 -0500
committerGitHub <noreply@github.com>2025-01-31 00:25:34 -0500
commita05dca8a1a653a44829964ce0cc9123a76ec2adb (patch)
tree9e104c49ebd051131135b27c9b5fc2eb18e0a3c9
parent600999a4fe7af3c7eae9349f6530c5c7b12ce1cd (diff)
parent24ce0a2efa314eff96af73f5b6c5d0e3392abf38 (diff)
downloadrust-a05dca8a1a653a44829964ce0cc9123a76ec2adb.tar.gz
rust-a05dca8a1a653a44829964ce0cc9123a76ec2adb.zip
Rollup merge of #135414 - tgross35:stabilize-const_black_box, r=dtolnay
Stabilize `const_black_box`

This has been unstably const since #92226, but a tracking issue was never created. Per [discussion on Zulip][zulip], 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.

[zulip]: 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
  */