diff options
| author | Ralf Jung <post@ralfj.de> | 2025-02-23 17:28:13 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-02-24 07:53:57 +0100 |
| commit | 5a58a922e21438d70f1be738754dc257cc8c649b (patch) | |
| tree | c30454d12d91f83610bd4f8ad06a48b45ff054c3 /library/alloc | |
| parent | e0be1a02626abef2878cb7f4aaef7ae409477112 (diff) | |
| download | rust-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.rs | 5 |
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. |
