mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Revise TypeInfo::ty usage
This commit is contained in:
parent
25ff7171c4
commit
8afa2722b2
18 changed files with 30 additions and 29 deletions
|
@ -345,7 +345,7 @@ impl FlowKind {
|
|||
FlowKind::Return(Some(expr))
|
||||
| FlowKind::Break(Some(expr))
|
||||
| FlowKind::TryReturn { expr, .. } => {
|
||||
ctx.sema.type_of_expr(expr).map(TypeInfo::coerced_or_original)
|
||||
ctx.sema.type_of_expr(expr).map(TypeInfo::coerced)
|
||||
}
|
||||
FlowKind::Try { .. } => {
|
||||
stdx::never!("try does not have defined expr_ty");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue