diff options
author | Aleksey Kladov <[email protected]> | 2020-04-10 23:27:00 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-10 23:27:00 +0100 |
commit | c1244c853c6bdc42bf91a77768963c0d287093ff (patch) | |
tree | c7f96c8f170c43d4a65451e089783ba6550ca020 /crates/ra_hir_ty/src/tests.rs | |
parent | ca9a5dd1654cc0d54ed5b2bb71ec8ed559470276 (diff) |
Forward compat
Diffstat (limited to 'crates/ra_hir_ty/src/tests.rs')
-rw-r--r-- | crates/ra_hir_ty/src/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_ty/src/tests.rs b/crates/ra_hir_ty/src/tests.rs index 47a7b9ffd..54e31602f 100644 --- a/crates/ra_hir_ty/src/tests.rs +++ b/crates/ra_hir_ty/src/tests.rs | |||
@@ -87,7 +87,7 @@ fn infer_with_mismatches(content: &str, include_mismatches: bool) -> String { | |||
87 | } | 87 | } |
88 | Err(SyntheticSyntax) => continue, | 88 | Err(SyntheticSyntax) => continue, |
89 | }; | 89 | }; |
90 | types.push((syntax_ptr, ty)); | 90 | types.push((syntax_ptr.clone(), ty)); |
91 | if let Some(mismatch) = inference_result.type_mismatch_for_expr(expr) { | 91 | if let Some(mismatch) = inference_result.type_mismatch_for_expr(expr) { |
92 | mismatches.push((syntax_ptr, mismatch)); | 92 | mismatches.push((syntax_ptr, mismatch)); |
93 | } | 93 | } |