mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 02:52:11 +00:00
Split pattern inference into more functions
This commit is contained in:
parent
fc2b395e00
commit
ec273c3d12
6 changed files with 234 additions and 172 deletions
|
|
@ -953,9 +953,9 @@ fn main() {
|
|||
42..51 'true | ()': bool
|
||||
49..51 '()': ()
|
||||
57..59 '{}': ()
|
||||
68..80 '(() | true,)': ((),)
|
||||
68..80 '(() | true,)': (bool,)
|
||||
69..71 '()': ()
|
||||
69..78 '() | true': ()
|
||||
69..78 '() | true': bool
|
||||
74..78 'true': bool
|
||||
74..78 'true': bool
|
||||
84..86 '{}': ()
|
||||
|
|
@ -964,19 +964,15 @@ fn main() {
|
|||
96..102 '_ | ()': bool
|
||||
100..102 '()': ()
|
||||
108..110 '{}': ()
|
||||
119..128 '(() | _,)': ((),)
|
||||
119..128 '(() | _,)': (bool,)
|
||||
120..122 '()': ()
|
||||
120..126 '() | _': ()
|
||||
120..126 '() | _': bool
|
||||
125..126 '_': bool
|
||||
132..134 '{}': ()
|
||||
49..51: expected bool, got ()
|
||||
68..80: expected (bool,), got ((),)
|
||||
69..71: expected bool, got ()
|
||||
69..78: expected bool, got ()
|
||||
100..102: expected bool, got ()
|
||||
119..128: expected (bool,), got ((),)
|
||||
120..122: expected bool, got ()
|
||||
120..126: expected bool, got ()
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue