Skip to content

Commit 6413e2f

Browse files
committed
fix render::tests::score_fn_type_and_name_match
1 parent 223e6d9 commit 6413e2f

File tree

5 files changed

+32
-32
lines changed

5 files changed

+32
-32
lines changed

crates/ide-completion/src/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2042,8 +2042,8 @@ fn f() { A { bar: b$0 }; }
20422042
expect![[r#"
20432043
fn bar() fn() -> u8 [type+name]
20442044
fn baz() fn() -> u8 [type]
2045-
ex bar() [type]
20462045
ex baz() [type]
2046+
ex bar() [type]
20472047
st A A []
20482048
fn f() fn() []
20492049
"#]],

crates/ide-db/src/test_data/test_symbol_index_collection.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@
10131013
Struct(
10141014
Struct {
10151015
id: StructId(
1016-
4,
1016+
5c04,
10171017
),
10181018
},
10191019
),

crates/mbe/src/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ fn unbalanced_brace() {
109109
"#,
110110
r#""#,
111111
expect![[r#"
112-
113-
112+
SUBTREE $$ 1:[email protected]#4294967037 1:[email protected]#4294967037
113+
SUBTREE {} 0:[email protected]#4294967037 0:[email protected]#4294967037
114114
115115
{}"#]],
116116
);

docs/book/src/configuration_generated.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -375,10 +375,10 @@ Note that the trait themselves can still be completed.
375375
Default:
376376

377377
```{
378-
"Ok": {
379-
"postfix": "ok",
380-
"body": "Ok(${receiver})",
381-
"description": "Wrap the expression in a `Result::Ok`",
378+
"Some": {
379+
"postfix": "some",
380+
"body": "Some(${receiver})",
381+
"description": "Wrap the expression in an `Option::Some`",
382382
"scope": "expr"
383383
},
384384
"Box::pin": {
@@ -395,16 +395,10 @@ Default:
395395
"description": "Put the expression into an `Arc`",
396396
"scope": "expr"
397397
},
398-
"Some": {
399-
"postfix": "some",
400-
"body": "Some(${receiver})",
401-
"description": "Wrap the expression in an `Option::Some`",
402-
"scope": "expr"
403-
},
404-
"Err": {
405-
"postfix": "err",
406-
"body": "Err(${receiver})",
407-
"description": "Wrap the expression in a `Result::Err`",
398+
"Ok": {
399+
"postfix": "ok",
400+
"body": "Ok(${receiver})",
401+
"description": "Wrap the expression in a `Result::Ok`",
408402
"scope": "expr"
409403
},
410404
"Rc::new": {
@@ -413,6 +407,12 @@ Default:
413407
"requires": "std::rc::Rc",
414408
"description": "Put the expression into an `Rc`",
415409
"scope": "expr"
410+
},
411+
"Err": {
412+
"postfix": "err",
413+
"body": "Err(${receiver})",
414+
"description": "Wrap the expression in a `Result::Err`",
415+
"scope": "expr"
416416
}
417417
}
418418

editors/code/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,10 +1332,10 @@
13321332
"rust-analyzer.completion.snippets.custom": {
13331333
"markdownDescription": "Custom completion snippets.",
13341334
"default": {
1335-
"Ok": {
1336-
"postfix": "ok",
1337-
"body": "Ok(${receiver})",
1338-
"description": "Wrap the expression in a `Result::Ok`",
1335+
"Some": {
1336+
"postfix": "some",
1337+
"body": "Some(${receiver})",
1338+
"description": "Wrap the expression in an `Option::Some`",
13391339
"scope": "expr"
13401340
},
13411341
"Box::pin": {
@@ -1352,16 +1352,10 @@
13521352
"description": "Put the expression into an `Arc`",
13531353
"scope": "expr"
13541354
},
1355-
"Some": {
1356-
"postfix": "some",
1357-
"body": "Some(${receiver})",
1358-
"description": "Wrap the expression in an `Option::Some`",
1359-
"scope": "expr"
1360-
},
1361-
"Err": {
1362-
"postfix": "err",
1363-
"body": "Err(${receiver})",
1364-
"description": "Wrap the expression in a `Result::Err`",
1355+
"Ok": {
1356+
"postfix": "ok",
1357+
"body": "Ok(${receiver})",
1358+
"description": "Wrap the expression in a `Result::Ok`",
13651359
"scope": "expr"
13661360
},
13671361
"Rc::new": {
@@ -1370,6 +1364,12 @@
13701364
"requires": "std::rc::Rc",
13711365
"description": "Put the expression into an `Rc`",
13721366
"scope": "expr"
1367+
},
1368+
"Err": {
1369+
"postfix": "err",
1370+
"body": "Err(${receiver})",
1371+
"description": "Wrap the expression in a `Result::Err`",
1372+
"scope": "expr"
13731373
}
13741374
},
13751375
"type": "object"

0 commit comments

Comments
 (0)