aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-04-08 15:11:48 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-04-08 15:11:48 +0100
commit1ca7a744eb512e6b900988cba871dcd3d90d447f (patch)
tree69bfedb7842b2d39f4a2ef382b84e5adb0d4aa95 /crates
parent1e2178eb8e02b0118c8cad7e631368cbee94ea72 (diff)
parent61c09edb4af6973e9ac5a84c954470c1fd4c9a0f (diff)
Merge #1121
1121: Avoid two-phase borrow conflict r=matklad a=lnicola See https://github.com/rust-lang/rust/issues/59159. Co-authored-by: LaurenČ›iu Nicola <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_hir/src/ty/infer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ty/infer.rs b/crates/ra_hir/src/ty/infer.rs
index 9ace6b13a..28947be51 100644
--- a/crates/ra_hir/src/ty/infer.rs
+++ b/crates/ra_hir/src/ty/infer.rs
@@ -489,8 +489,8 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
489 Some(ty) 489 Some(ty)
490 } 490 }
491 Resolution::LocalBinding(pat) => { 491 Resolution::LocalBinding(pat) => {
492 let ty = self.type_of_pat.get(pat)?; 492 let ty = self.type_of_pat.get(pat)?.clone();
493 let ty = self.resolve_ty_as_possible(&mut vec![], ty.clone()); 493 let ty = self.resolve_ty_as_possible(&mut vec![], ty);
494 Some(ty) 494 Some(ty)
495 } 495 }
496 Resolution::GenericParam(..) => { 496 Resolution::GenericParam(..) => {