aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/infer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_ty/src/infer.rs')
-rw-r--r--crates/hir_ty/src/infer.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/hir_ty/src/infer.rs b/crates/hir_ty/src/infer.rs
index 97e7c5f8c..8cfc84b86 100644
--- a/crates/hir_ty/src/infer.rs
+++ b/crates/hir_ty/src/infer.rs
@@ -13,8 +13,6 @@
13//! to certain types. To record this, we use the union-find implementation from 13//! to certain types. To record this, we use the union-find implementation from
14//! the `ena` crate, which is extracted from rustc. 14//! the `ena` crate, which is extracted from rustc.
15 15
16use std::borrow::Cow;
17
18use std::ops::Index; 16use std::ops::Index;
19use std::sync::Arc; 17use std::sync::Arc;
20 18
@@ -384,7 +382,7 @@ impl<'a> InferenceContext<'a> {
384 self.table.resolve_ty_as_possible(ty) 382 self.table.resolve_ty_as_possible(ty)
385 } 383 }
386 384
387 fn resolve_ty_shallow<'b>(&mut self, ty: &'b Ty) -> Cow<'b, Ty> { 385 fn resolve_ty_shallow(&mut self, ty: &Ty) -> Ty {
388 self.table.resolve_ty_shallow(ty) 386 self.table.resolve_ty_shallow(ty)
389 } 387 }
390 388