mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Mock std String and Result types in tests for ok-wrapping diagnostic
This commit is contained in:
parent
bacb938ab0
commit
d025016f92
3 changed files with 65 additions and 16 deletions
|
@ -106,12 +106,10 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
|
|||
Some(m) => m,
|
||||
None => return,
|
||||
};
|
||||
|
||||
let ret = match &mismatch.expected {
|
||||
Ty::Apply(t) => t,
|
||||
_ => return,
|
||||
};
|
||||
|
||||
let ret_enum = match ret.ctor {
|
||||
TypeCtor::Adt(AdtDef::Enum(e)) => e,
|
||||
_ => return,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue