diff options
| author | Ralf Jung <post@ralfj.de> | 2023-04-30 22:35:29 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-04-30 22:35:29 +0200 |
| commit | 1ff41d320c1b537efbcf09e60f349e698d0b0d8e (patch) | |
| tree | f1db82bf48a274ef873c155b8e4e5e26b21ab2ec | |
| parent | a0d853c13eb463bfba02ab989efbb2e9a0f25fa1 (diff) | |
| parent | a2cdcd53bffd1c21b5093b1001d0fbbaf2bbac2f (diff) | |
| download | rust-1ff41d320c1b537efbcf09e60f349e698d0b0d8e.tar.gz rust-1ff41d320c1b537efbcf09e60f349e698d0b0d8e.zip | |
Merge from rustc
| -rw-r--r-- | crates/core_simd/src/masks/full_masks.rs | 2 | ||||
| -rw-r--r-- | crates/core_simd/src/ops/deref.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/core_simd/src/masks/full_masks.rs b/crates/core_simd/src/masks/full_masks.rs index adf0fcbeae2..b5ba198e504 100644 --- a/crates/core_simd/src/masks/full_masks.rs +++ b/crates/core_simd/src/masks/full_masks.rs @@ -257,7 +257,7 @@ where } } -impl<T, const LANES: usize> core::convert::From<Mask<T, LANES>> for Simd<T, LANES> +impl<T, const LANES: usize> From<Mask<T, LANES>> for Simd<T, LANES> where T: MaskElement, LaneCount<LANES>: SupportedLaneCount, diff --git a/crates/core_simd/src/ops/deref.rs b/crates/core_simd/src/ops/deref.rs index 9883a74c92d..302bf148bd3 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) } } |
