aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src
diff options
context:
space:
mode:
authorPhil Ellison <[email protected]>2019-08-11 13:25:36 +0100
committerAleksey Kladov <[email protected]>2019-08-25 10:55:55 +0100
commitd025016f92866a932729394c22603b615cb458df (patch)
treedd118c11a6e6475cb1bb0c4ba6fa7c2ae6a543df /crates/ra_hir/src
parentbacb938ab096e3e2885e7bbb5e2cdbebe53292ea (diff)
Mock std String and Result types in tests for ok-wrapping diagnostic
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r--crates/ra_hir/src/expr/validation.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/crates/ra_hir/src/expr/validation.rs b/crates/ra_hir/src/expr/validation.rs
index 0e7b08c54..ca7db61bc 100644
--- a/crates/ra_hir/src/expr/validation.rs
+++ b/crates/ra_hir/src/expr/validation.rs
@@ -106,12 +106,10 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
106 Some(m) => m, 106 Some(m) => m,
107 None => return, 107 None => return,
108 }; 108 };
109
110 let ret = match &mismatch.expected { 109 let ret = match &mismatch.expected {
111 Ty::Apply(t) => t, 110 Ty::Apply(t) => t,
112 _ => return, 111 _ => return,
113 }; 112 };
114
115 let ret_enum = match ret.ctor { 113 let ret_enum = match ret.ctor {
116 TypeCtor::Adt(AdtDef::Enum(e)) => e, 114 TypeCtor::Adt(AdtDef::Enum(e)) => e,
117 _ => return, 115 _ => return,