mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Add Lifetime to TyKind::Ref
This commit is contained in:
parent
4bc8a01830
commit
96756f1b1d
13 changed files with 74 additions and 43 deletions
|
@ -315,7 +315,7 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
|
|||
if pat_ty == match_expr_ty
|
||||
|| match_expr_ty
|
||||
.as_reference()
|
||||
.map(|(match_expr_ty, _)| match_expr_ty == pat_ty)
|
||||
.map(|(match_expr_ty, ..)| match_expr_ty == pat_ty)
|
||||
.unwrap_or(false)
|
||||
{
|
||||
// If we had a NotUsefulMatchArm diagnostic, we could
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue