Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/mir/eval/shim/simd.rs')
-rw-r--r--crates/hir-ty/src/mir/eval/shim/simd.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir-ty/src/mir/eval/shim/simd.rs b/crates/hir-ty/src/mir/eval/shim/simd.rs
index f554772904..8e62c764b9 100644
--- a/crates/hir-ty/src/mir/eval/shim/simd.rs
+++ b/crates/hir-ty/src/mir/eval/shim/simd.rs
@@ -22,8 +22,8 @@ macro_rules! not_supported {
};
}
-impl Evaluator<'_> {
- fn detect_simd_ty(&self, ty: &Ty) -> Result<(usize, Ty)> {
+impl<'db> Evaluator<'db> {
+ fn detect_simd_ty(&self, ty: &Ty) -> Result<'db, (usize, Ty)> {
match ty.kind(Interner) {
TyKind::Adt(id, subst) => {
let len = match subst.as_slice(Interner).get(1).and_then(|it| it.constant(Interner))
@@ -74,7 +74,7 @@ impl Evaluator<'_> {
destination: Interval,
_locals: &Locals,
_span: MirSpan,
- ) -> Result<()> {
+ ) -> Result<'db, ()> {
match name {
"and" | "or" | "xor" => {
let [left, right] = args else {