From a2cdcd53bffd1c21b5093b1001d0fbbaf2bbac2f Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Fri, 28 Apr 2023 17:36:49 +0000 Subject: [PATCH] Make sure that signatures aren't accidental refinements --- crates/core_simd/src/ops/deref.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core_simd/src/ops/deref.rs b/crates/core_simd/src/ops/deref.rs index 9883a74c92d6..302bf148bd3e 100644 --- a/crates/core_simd/src/ops/deref.rs +++ b/crates/core_simd/src/ops/deref.rs @@ -71,7 +71,7 @@ macro_rules! deref_ops { #[inline] #[must_use = "operator returns a new vector without mutating the inputs"] - fn $call(self, rhs: &$simd) -> Self::Output { + fn $call(self, rhs: &'rhs $simd) -> Self::Output { (*self).$call(*rhs) } }