diff options
Diffstat (limited to 'crates/hir_ty/src/infer.rs')
-rw-r--r-- | crates/hir_ty/src/infer.rs | 4 |
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 | ||
16 | use std::borrow::Cow; | ||
17 | |||
18 | use std::ops::Index; | 16 | use std::ops::Index; |
19 | use std::sync::Arc; | 17 | use 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 | ||