Description
I'm getting tons of false positives since today's release of #13354:
the return type of the containing function does not implement `FromResidual`
(incorrect-try-target)
This happens when a function is returning a Result<_, Fail<T>>
and rust-analyzer is not able to infer the concrete type T
.
I suspect that is specifically here that something is incorrect, but I'm not expert enough on RA to be able to read the meaning of all of the Option
layers there proficiently. I suspect someone might be able to identify why this happens by just reading my above description - please let me know if more details are needed.
(I failed to create a minimal repro because I'm not sure how specifically to build a code in which RA is unable to infer the return type, although these are pretty common in Diesel)
rust-analyzer version: 0.3.1248-standalone
rustc version: rustc 1.63.0
NB: disabling the diagnostic makes RA usable again:
"rust-analyzer.diagnostics.disabled": [
"incorrect-try-target"
],