Update test fixtures

This commit is contained in:
Lukas Wirth 2024-07-18 09:09:31 +02:00
parent 5264f86242
commit ef462ca88e
6 changed files with 301 additions and 195 deletions

View File

@ -20,9 +20,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STRUCT,
range: 83..119,
@ -50,9 +53,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STRUCT,
range: 0..81,
@ -80,9 +86,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STRUCT,
range: 0..81,
@ -110,9 +119,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STRUCT,
range: 0..81,
@ -140,9 +152,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STRUCT,
range: 0..81,
@ -170,9 +185,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STRUCT,
range: 83..119,
@ -200,9 +218,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STRUCT,
range: 0..81,

View File

@ -18,9 +18,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: TYPE_ALIAS,
range: 470..490,
@ -46,9 +49,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: CONST,
range: 413..434,
@ -74,9 +80,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: CONST,
range: 593..665,
@ -104,9 +113,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: ENUM,
range: 185..207,
@ -134,9 +146,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: USE_TREE,
range: 727..749,
@ -164,9 +179,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: MACRO_DEF,
range: 153..168,
@ -192,9 +210,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STATIC,
range: 435..469,
@ -222,9 +243,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STRUCT,
range: 170..184,
@ -282,9 +306,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STRUCT,
range: 391..409,
@ -314,9 +341,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STRUCT,
range: 628..654,
@ -346,9 +376,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STRUCT,
range: 552..580,
@ -376,9 +409,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STRUCT,
range: 261..279,
@ -404,9 +440,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: TRAIT,
range: 334..373,
@ -434,9 +473,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: USE_TREE,
range: 755..769,
@ -464,9 +506,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: UNION,
range: 208..222,
@ -494,9 +539,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: MODULE,
range: 492..530,
@ -524,9 +572,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: MODULE,
range: 667..677,
@ -554,9 +605,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: MACRO_RULES,
range: 51..131,
@ -582,9 +636,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: FN,
range: 307..330,
@ -612,9 +669,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: FN,
range: 242..257,
@ -644,9 +704,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: MACRO_RULES,
range: 1..48,
@ -672,9 +735,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: FN,
range: 375..411,
@ -702,9 +768,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: USE_TREE,
range: 684..721,
@ -730,9 +799,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: FN,
range: 352..371,
@ -773,9 +845,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
0,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STRUCT,
range: 508..528,
@ -814,9 +889,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
1,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: USE_TREE,
range: 111..143,
@ -844,9 +922,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
1,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: STRUCT,
range: 0..20,
@ -874,9 +955,12 @@
},
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
1,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: USE_TREE,
range: 25..59,
@ -904,9 +988,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
1,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: USE_TREE,
range: 65..105,
@ -934,9 +1021,12 @@
),
),
loc: DeclarationLocation {
hir_file_id: FileId(
hir_file_id: EditionedFileId(
FileId(
1,
),
Edition2021,
),
ptr: SyntaxNodePtr {
kind: USE_TREE,
range: 65..105,

View File

@ -254,7 +254,7 @@ fn main() {
Annotation {
range: 6..10,
kind: HasReferences {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -262,7 +262,7 @@ fn main() {
},
data: Some(
[
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -275,7 +275,7 @@ fn main() {
Annotation {
range: 30..36,
kind: HasReferences {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -308,7 +308,7 @@ fn main() {
Annotation {
range: 53..57,
kind: HasReferences {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -339,7 +339,7 @@ fn main() {
Annotation {
range: 7..11,
kind: HasReferences {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -347,7 +347,7 @@ fn main() {
},
data: Some(
[
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -360,7 +360,7 @@ fn main() {
Annotation {
range: 7..11,
kind: HasImpls {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -393,7 +393,7 @@ fn main() {
Annotation {
range: 17..21,
kind: HasReferences {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -428,7 +428,7 @@ fn main() {
Annotation {
range: 7..11,
kind: HasReferences {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -436,13 +436,13 @@ fn main() {
},
data: Some(
[
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
range: 57..61,
},
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -455,7 +455,7 @@ fn main() {
Annotation {
range: 7..11,
kind: HasImpls {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -479,7 +479,7 @@ fn main() {
Annotation {
range: 20..31,
kind: HasImpls {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -503,7 +503,7 @@ fn main() {
Annotation {
range: 20..31,
kind: HasReferences {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -511,7 +511,7 @@ fn main() {
},
data: Some(
[
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -524,7 +524,7 @@ fn main() {
Annotation {
range: 69..73,
kind: HasReferences {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -589,7 +589,7 @@ fn main() {}
Annotation {
range: 3..7,
kind: HasReferences {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -624,7 +624,7 @@ fn main() {
Annotation {
range: 7..11,
kind: HasReferences {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -632,13 +632,13 @@ fn main() {
},
data: Some(
[
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
range: 19..23,
},
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -651,7 +651,7 @@ fn main() {
Annotation {
range: 7..11,
kind: HasImpls {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -675,7 +675,7 @@ fn main() {
Annotation {
range: 33..44,
kind: HasReferences {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -683,7 +683,7 @@ fn main() {
},
data: Some(
[
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -696,7 +696,7 @@ fn main() {
Annotation {
range: 61..65,
kind: HasReferences {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -747,7 +747,7 @@ mod tests {
Annotation {
range: 3..7,
kind: HasReferences {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -877,7 +877,7 @@ struct Foo;
Annotation {
range: 0..71,
kind: HasReferences {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),
@ -891,7 +891,7 @@ struct Foo;
Annotation {
range: 0..71,
kind: HasImpls {
pos: FilePosition {
pos: FilePositionWrapper {
file_id: FileId(
0,
),

View File

@ -2360,7 +2360,7 @@ fn test_hover_trait_show_qualifiers() {
expect![[r#"
[
Implementation(
FilePosition {
FilePositionWrapper {
file_id: FileId(
0,
),
@ -2927,7 +2927,7 @@ fn test_hover_trait_has_impl_action() {
expect![[r#"
[
Implementation(
FilePosition {
FilePositionWrapper {
file_id: FileId(
0,
),
@ -2946,7 +2946,7 @@ fn test_hover_struct_has_impl_action() {
expect![[r#"
[
Implementation(
FilePosition {
FilePositionWrapper {
file_id: FileId(
0,
),
@ -2965,7 +2965,7 @@ fn test_hover_union_has_impl_action() {
expect![[r#"
[
Implementation(
FilePosition {
FilePositionWrapper {
file_id: FileId(
0,
),
@ -2984,7 +2984,7 @@ fn test_hover_enum_has_impl_action() {
expect![[r#"
[
Implementation(
FilePosition {
FilePositionWrapper {
file_id: FileId(
0,
),
@ -3003,7 +3003,7 @@ fn test_hover_self_has_impl_action() {
expect![[r#"
[
Implementation(
FilePosition {
FilePositionWrapper {
file_id: FileId(
0,
),
@ -3025,7 +3025,7 @@ fn foo_$0test() {}
expect![[r#"
[
Reference(
FilePosition {
FilePositionWrapper {
file_id: FileId(
0,
),
@ -8450,7 +8450,7 @@ impl Iterator for S {
expect![[r#"
[
Implementation(
FilePosition {
FilePositionWrapper {
file_id: FileId(
0,
),

View File

@ -143,7 +143,7 @@ fn main() {
InlayHintLabelPart {
text: "B",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -162,7 +162,7 @@ fn main() {
InlayHintLabelPart {
text: "A",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -226,7 +226,7 @@ fn main() {
InlayHintLabelPart {
text: "C",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -245,7 +245,7 @@ fn main() {
InlayHintLabelPart {
text: "B",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -293,7 +293,7 @@ fn main() {
InlayHintLabelPart {
text: "C",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -312,7 +312,7 @@ fn main() {
InlayHintLabelPart {
text: "B",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -361,7 +361,7 @@ fn main() {
InlayHintLabelPart {
text: "B",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -374,7 +374,7 @@ fn main() {
InlayHintLabelPart {
text: "X",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -393,7 +393,7 @@ fn main() {
InlayHintLabelPart {
text: "A",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -406,7 +406,7 @@ fn main() {
InlayHintLabelPart {
text: "X",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -457,7 +457,7 @@ fn main() {
InlayHintLabelPart {
text: "Iterator",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
1,
),
@ -470,7 +470,7 @@ fn main() {
InlayHintLabelPart {
text: "Item",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
1,
),
@ -489,7 +489,7 @@ fn main() {
InlayHintLabelPart {
text: "Iterator",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
1,
),
@ -502,7 +502,7 @@ fn main() {
InlayHintLabelPart {
text: "Item",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
1,
),
@ -521,7 +521,7 @@ fn main() {
InlayHintLabelPart {
text: "Iterator",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
1,
),
@ -534,7 +534,7 @@ fn main() {
InlayHintLabelPart {
text: "Item",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
1,
),
@ -553,7 +553,7 @@ fn main() {
InlayHintLabelPart {
text: "MyIter",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -601,7 +601,7 @@ fn main() {
InlayHintLabelPart {
text: "Struct",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -620,7 +620,7 @@ fn main() {
InlayHintLabelPart {
text: "Struct",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -639,7 +639,7 @@ fn main() {
InlayHintLabelPart {
text: "Struct",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),
@ -657,7 +657,7 @@ fn main() {
InlayHintLabelPart {
text: "self",
linked_location: Some(
FileRange {
FileRangeWrapper {
file_id: FileId(
0,
),

View File

@ -310,11 +310,6 @@
"command": "rust-analyzer.openWalkthrough",
"title": "Open Walkthrough",
"category": "rust-analyzer"
},
{
"command": "rust-analyzer.openFAQ",
"title": "Open FAQ",
"category": "rust-analyzer"
}
],
"keybindings": [