about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-12 17:59:10 +0100
committerGitHub <noreply@github.com>2025-03-12 17:59:10 +0100
commit0c4415cdd62a600d2b4a5f8155ff4112a2b73199 (patch)
tree0c812c619d01d4125a4e36d1fbe4a9fbe93ea5f6 /library/alloc
parentde7e5e96be978e5f76f2427351c4ce4a43820380 (diff)
parentcf318a79d678bf8beec26a547b384975de5039b1 (diff)
downloadrust-0c4415cdd62a600d2b4a5f8155ff4112a2b73199.tar.gz
rust-0c4415cdd62a600d2b4a5f8155ff4112a2b73199.zip
Rollup merge of #138387 - RalfJung:intrinsic-arg-names, r=oli-obk
intrinsics: remove unnecessary leading underscore from argument names

This is unnecessary since https://github.com/rust-lang/rust/pull/135840.
Diffstat (limited to 'library/alloc')
-rw-r--r--library/alloc/src/boxed.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs
index 9b19ab74edf..e77caad6540 100644
--- a/library/alloc/src/boxed.rs
+++ b/library/alloc/src/boxed.rs
@@ -239,7 +239,7 @@ pub struct Box<
 /// This is the surface syntax for `box <expr>` expressions.
 #[rustc_intrinsic]
 #[unstable(feature = "liballoc_internals", issue = "none")]
-pub fn box_new<T>(_x: T) -> Box<T>;
+pub fn box_new<T>(x: T) -> Box<T>;
 
 impl<T> Box<T> {
     /// Allocates memory on the heap and then places `x` into it.