mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Update rustc_pattern_analysis
to 0.42.0
This commit is contained in:
parent
e5889c9b43
commit
1b0b4220fd
4 changed files with 86 additions and 61 deletions
|
@ -239,6 +239,7 @@ impl ExprValidator {
|
|||
m_arms.as_slice(),
|
||||
scrut_ty.clone(),
|
||||
ValidityConstraint::ValidOnly,
|
||||
None,
|
||||
) {
|
||||
Ok(report) => report,
|
||||
Err(()) => return,
|
||||
|
@ -283,6 +284,7 @@ impl ExprValidator {
|
|||
&[match_arm],
|
||||
ty.clone(),
|
||||
ValidityConstraint::ValidOnly,
|
||||
None,
|
||||
) {
|
||||
Ok(v) => v,
|
||||
Err(e) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue