about summary refs log tree commit diff
path: root/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs
diff options
context:
space:
mode:
authorMadhav Madhusoodanan <madhavmadhusoodanan@gmail.com>2025-07-16 23:49:04 +0530
committerMadhav Madhusoodanan <madhavmadhusoodanan@gmail.com>2025-07-16 23:49:04 +0530
commit10d7b7b6767368f940eec85cec8543ce1c9a6989 (patch)
tree3f8bfc149efdda6cfdf20074d27e5a416f629191 /library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs
parentf694b583e6ffab5c1a2ebf7977ea937fdd15258a (diff)
downloadrust-10d7b7b6767368f940eec85cec8543ce1c9a6989.tar.gz
rust-10d7b7b6767368f940eec85cec8543ce1c9a6989.zip
Implemented DerefMut for ArmIntrinsicTest
More details: 1. Moved the return type of IntrinsicType::from_c to
Rust<Self, String> from Result<Box<Self>, String>
Diffstat (limited to 'library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs')
-rw-r--r--library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs b/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs
index ea210c78bda..697f9c8754d 100644
--- a/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs
+++ b/library/stdarch/crates/intrinsic-test/src/common/intrinsic_helpers.rs
@@ -322,7 +322,9 @@ pub trait IntrinsicTypeDefinition: Deref<Target = IntrinsicType> {
     fn get_lane_function(&self) -> String;
 
     /// can be implemented in an `impl` block
-    fn from_c(_s: &str, _target: &str) -> Result<Box<Self>, String>;
+    fn from_c(_s: &str, _target: &str) -> Result<Self, String>
+    where
+        Self: Sized;
 
     /// Gets a string containing the typename for this type in C format.
     /// can be directly defined in `impl` blocks