@@ -1151,6 +1151,24 @@ fn main() { Foo::Fo$0 }
1151
1151
),
1152
1152
lookup: "Foo{}",
1153
1153
detail: "Foo { x: i32, y: i32 }",
1154
+ relevance: CompletionRelevance {
1155
+ exact_name_match: false,
1156
+ type_match: None,
1157
+ is_local: false,
1158
+ trait_: None,
1159
+ is_name_already_imported: false,
1160
+ requires_import: false,
1161
+ is_private_editable: false,
1162
+ postfix_match: None,
1163
+ function: Some(
1164
+ CompletionRelevanceFn {
1165
+ has_params: true,
1166
+ has_self_param: false,
1167
+ return_type: DirectConstructor,
1168
+ },
1169
+ ),
1170
+ is_skipping_completion: false,
1171
+ },
1154
1172
trigger_call_info: true,
1155
1173
},
1156
1174
]
@@ -1183,6 +1201,24 @@ fn main() { Foo::Fo$0 }
1183
1201
),
1184
1202
lookup: "Foo()",
1185
1203
detail: "Foo(i32, i32)",
1204
+ relevance: CompletionRelevance {
1205
+ exact_name_match: false,
1206
+ type_match: None,
1207
+ is_local: false,
1208
+ trait_: None,
1209
+ is_name_already_imported: false,
1210
+ requires_import: false,
1211
+ is_private_editable: false,
1212
+ postfix_match: None,
1213
+ function: Some(
1214
+ CompletionRelevanceFn {
1215
+ has_params: true,
1216
+ has_self_param: false,
1217
+ return_type: DirectConstructor,
1218
+ },
1219
+ ),
1220
+ is_skipping_completion: false,
1221
+ },
1186
1222
trigger_call_info: true,
1187
1223
},
1188
1224
]
@@ -1261,6 +1297,24 @@ fn main() { Foo::Fo$0 }
1261
1297
Variant,
1262
1298
),
1263
1299
detail: "Foo",
1300
+ relevance: CompletionRelevance {
1301
+ exact_name_match: false,
1302
+ type_match: None,
1303
+ is_local: false,
1304
+ trait_: None,
1305
+ is_name_already_imported: false,
1306
+ requires_import: false,
1307
+ is_private_editable: false,
1308
+ postfix_match: None,
1309
+ function: Some(
1310
+ CompletionRelevanceFn {
1311
+ has_params: false,
1312
+ has_self_param: false,
1313
+ return_type: DirectConstructor,
1314
+ },
1315
+ ),
1316
+ is_skipping_completion: false,
1317
+ },
1264
1318
trigger_call_info: true,
1265
1319
},
1266
1320
]
@@ -1335,7 +1389,13 @@ fn main() { let _: m::Spam = S$0 }
1335
1389
requires_import: false,
1336
1390
is_private_editable: false,
1337
1391
postfix_match: None,
1338
- function: None,
1392
+ function: Some(
1393
+ CompletionRelevanceFn {
1394
+ has_params: true,
1395
+ has_self_param: false,
1396
+ return_type: DirectConstructor,
1397
+ },
1398
+ ),
1339
1399
is_skipping_completion: false,
1340
1400
},
1341
1401
trigger_call_info: true,
@@ -1365,7 +1425,13 @@ fn main() { let _: m::Spam = S$0 }
1365
1425
requires_import: false,
1366
1426
is_private_editable: false,
1367
1427
postfix_match: None,
1368
- function: None,
1428
+ function: Some(
1429
+ CompletionRelevanceFn {
1430
+ has_params: false,
1431
+ has_self_param: false,
1432
+ return_type: DirectConstructor,
1433
+ },
1434
+ ),
1369
1435
is_skipping_completion: false,
1370
1436
},
1371
1437
trigger_call_info: true,
@@ -1590,6 +1656,24 @@ use self::E::*;
1590
1656
documentation: Documentation(
1591
1657
"variant docs",
1592
1658
),
1659
+ relevance: CompletionRelevance {
1660
+ exact_name_match: false,
1661
+ type_match: None,
1662
+ is_local: false,
1663
+ trait_: None,
1664
+ is_name_already_imported: false,
1665
+ requires_import: false,
1666
+ is_private_editable: false,
1667
+ postfix_match: None,
1668
+ function: Some(
1669
+ CompletionRelevanceFn {
1670
+ has_params: false,
1671
+ has_self_param: false,
1672
+ return_type: DirectConstructor,
1673
+ },
1674
+ ),
1675
+ is_skipping_completion: false,
1676
+ },
1593
1677
trigger_call_info: true,
1594
1678
},
1595
1679
CompletionItem {
@@ -2081,8 +2165,8 @@ fn main() {
2081
2165
}
2082
2166
"# ,
2083
2167
expect ! [ [ r#"
2084
- lc ssss S [type+local]
2085
2168
st S S [type]
2169
+ lc ssss S [type+local]
2086
2170
st S S [type]
2087
2171
ex ssss [type]
2088
2172
ex S [type]
@@ -2153,14 +2237,14 @@ fn main() {
2153
2237
}
2154
2238
"# ,
2155
2239
expect ! [ [ r#"
2240
+ st S S []
2241
+ st &S [type]
2156
2242
ex core::ops::Deref::deref(&t) [type_could_unify]
2157
2243
lc m i32 [local]
2158
2244
lc t T [local]
2159
2245
lc &t [type+local]
2160
2246
st S S []
2161
2247
st &S [type]
2162
- st S S []
2163
- st &S [type]
2164
2248
st T T []
2165
2249
st &T [type]
2166
2250
fn foo(…) fn(&S) []
@@ -2202,14 +2286,14 @@ fn main() {
2202
2286
}
2203
2287
"# ,
2204
2288
expect ! [ [ r#"
2289
+ st S S []
2290
+ st &mut S [type]
2205
2291
ex core::ops::DerefMut::deref_mut(&mut t) [type_could_unify]
2206
2292
lc m i32 [local]
2207
2293
lc t T [local]
2208
2294
lc &mut t [type+local]
2209
2295
st S S []
2210
2296
st &mut S [type]
2211
- st S S []
2212
- st &mut S [type]
2213
2297
st T T []
2214
2298
st &mut T [type]
2215
2299
fn foo(…) fn(&mut S) []
@@ -2306,9 +2390,9 @@ fn main() {
2306
2390
}
2307
2391
"# ,
2308
2392
expect ! [ [ r#"
2309
- ex core::ops::Deref::deref(&bar()) [type_could_unify]
2310
2393
st S S []
2311
2394
st &S [type]
2395
+ ex core::ops::Deref::deref(&bar()) [type_could_unify]
2312
2396
st S S []
2313
2397
st &S [type]
2314
2398
st T T []
@@ -2827,11 +2911,11 @@ fn foo() {
2827
2911
}
2828
2912
"# ,
2829
2913
expect ! [ [ r#"
2914
+ ev Foo::B Foo::B [type_could_unify]
2915
+ ev Foo::A(…) Foo::A(T) [type_could_unify]
2830
2916
lc foo Foo<u32> [type+local]
2831
2917
ex foo [type]
2832
2918
ex Foo::B [type]
2833
- ev Foo::A(…) Foo::A(T) [type_could_unify]
2834
- ev Foo::B Foo::B [type_could_unify]
2835
2919
en Foo Foo<{unknown}> [type_could_unify]
2836
2920
fn foo() fn() []
2837
2921
fn bar() fn() -> Foo<u8> []
0 commit comments