about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-02-23 17:28:13 +0100
committerRalf Jung <post@ralfj.de>2025-02-24 07:53:57 +0100
commit5a58a922e21438d70f1be738754dc257cc8c649b (patch)
treec30454d12d91f83610bd4f8ad06a48b45ff054c3 /library/alloc
parente0be1a02626abef2878cb7f4aaef7ae409477112 (diff)
downloadrust-5a58a922e21438d70f1be738754dc257cc8c649b.tar.gz
rust-5a58a922e21438d70f1be738754dc257cc8c649b.zip
remove uses of rustc_intrinsic_must_be_overridden from standard library
Diffstat (limited to 'library/alloc')
-rw-r--r--library/alloc/src/boxed.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs
index e2a55d31395..c3f5806e1aa 100644
--- a/library/alloc/src/boxed.rs
+++ b/library/alloc/src/boxed.rs
@@ -238,11 +238,8 @@ pub struct Box<
 ///
 /// This is the surface syntax for `box <expr>` expressions.
 #[rustc_intrinsic]
-#[rustc_intrinsic_must_be_overridden]
 #[unstable(feature = "liballoc_internals", issue = "none")]
-pub fn box_new<T>(_x: T) -> Box<T> {
-    unreachable!()
-}
+pub fn box_new<T>(_x: T) -> Box<T>;
 
 impl<T> Box<T> {
     /// Allocates memory on the heap and then places `x` into it.