]> git.lizzy.rs Git - rust.git/blob - crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt
Fix tests
[rust.git] / crates / rust-analyzer / src / diagnostics / test_data / macro_compiler_error.txt
1 [
2     MappedRustDiagnostic {
3         url: Url {
4             scheme: "file",
5             cannot_be_a_base: false,
6             username: "",
7             password: None,
8             host: None,
9             port: None,
10             path: "/test/crates/hir_def/src/path.rs",
11             query: None,
12             fragment: None,
13         },
14         diagnostic: Diagnostic {
15             range: Range {
16                 start: Position {
17                     line: 271,
18                     character: 8,
19                 },
20                 end: Position {
21                     line: 271,
22                     character: 50,
23                 },
24             },
25             severity: Some(
26                 DiagnosticSeverity(
27                     4,
28                 ),
29             ),
30             code: None,
31             code_description: None,
32             source: Some(
33                 "rustc",
34             ),
35             message: "Please register your known path in the path module",
36             related_information: Some(
37                 [
38                     DiagnosticRelatedInformation {
39                         location: Location {
40                             uri: Url {
41                                 scheme: "file",
42                                 cannot_be_a_base: false,
43                                 username: "",
44                                 password: None,
45                                 host: None,
46                                 port: None,
47                                 path: "/test/crates/hir_def/src/path.rs",
48                                 query: None,
49                                 fragment: None,
50                             },
51                             range: Range {
52                                 start: Position {
53                                     line: 264,
54                                     character: 8,
55                                 },
56                                 end: Position {
57                                     line: 264,
58                                     character: 76,
59                                 },
60                             },
61                         },
62                         message: "Exact error occurred here",
63                     },
64                 ],
65             ),
66             tags: None,
67             data: None,
68         },
69         fixes: [],
70     },
71     MappedRustDiagnostic {
72         url: Url {
73             scheme: "file",
74             cannot_be_a_base: false,
75             username: "",
76             password: None,
77             host: None,
78             port: None,
79             path: "/test/crates/hir_def/src/data.rs",
80             query: None,
81             fragment: None,
82         },
83         diagnostic: Diagnostic {
84             range: Range {
85                 start: Position {
86                     line: 79,
87                     character: 15,
88                 },
89                 end: Position {
90                     line: 79,
91                     character: 41,
92                 },
93             },
94             severity: Some(
95                 DiagnosticSeverity(
96                     4,
97                 ),
98             ),
99             code: None,
100             code_description: None,
101             source: Some(
102                 "rustc",
103             ),
104             message: "Please register your known path in the path module",
105             related_information: Some(
106                 [
107                     DiagnosticRelatedInformation {
108                         location: Location {
109                             uri: Url {
110                                 scheme: "file",
111                                 cannot_be_a_base: false,
112                                 username: "",
113                                 password: None,
114                                 host: None,
115                                 port: None,
116                                 path: "/test/crates/hir_def/src/path.rs",
117                                 query: None,
118                                 fragment: None,
119                             },
120                             range: Range {
121                                 start: Position {
122                                     line: 264,
123                                     character: 8,
124                                 },
125                                 end: Position {
126                                     line: 264,
127                                     character: 76,
128                                 },
129                             },
130                         },
131                         message: "Exact error occurred here",
132                     },
133                 ],
134             ),
135             tags: None,
136             data: None,
137         },
138         fixes: [],
139     },
140     MappedRustDiagnostic {
141         url: Url {
142             scheme: "file",
143             cannot_be_a_base: false,
144             username: "",
145             password: None,
146             host: None,
147             port: None,
148             path: "/test/crates/hir_def/src/path.rs",
149             query: None,
150             fragment: None,
151         },
152         diagnostic: Diagnostic {
153             range: Range {
154                 start: Position {
155                     line: 264,
156                     character: 8,
157                 },
158                 end: Position {
159                     line: 264,
160                     character: 76,
161                 },
162             },
163             severity: Some(
164                 DiagnosticSeverity(
165                     1,
166                 ),
167             ),
168             code: None,
169             code_description: None,
170             source: Some(
171                 "rustc",
172             ),
173             message: "Please register your known path in the path module",
174             related_information: Some(
175                 [
176                     DiagnosticRelatedInformation {
177                         location: Location {
178                             uri: Url {
179                                 scheme: "file",
180                                 cannot_be_a_base: false,
181                                 username: "",
182                                 password: None,
183                                 host: None,
184                                 port: None,
185                                 path: "/test/crates/hir_def/src/path.rs",
186                                 query: None,
187                                 fragment: None,
188                             },
189                             range: Range {
190                                 start: Position {
191                                     line: 271,
192                                     character: 8,
193                                 },
194                                 end: Position {
195                                     line: 271,
196                                     character: 50,
197                                 },
198                             },
199                         },
200                         message: "Error originated from macro call here",
201                     },
202                     DiagnosticRelatedInformation {
203                         location: Location {
204                             uri: Url {
205                                 scheme: "file",
206                                 cannot_be_a_base: false,
207                                 username: "",
208                                 password: None,
209                                 host: None,
210                                 port: None,
211                                 path: "/test/crates/hir_def/src/data.rs",
212                                 query: None,
213                                 fragment: None,
214                             },
215                             range: Range {
216                                 start: Position {
217                                     line: 79,
218                                     character: 15,
219                                 },
220                                 end: Position {
221                                     line: 79,
222                                     character: 41,
223                                 },
224                             },
225                         },
226                         message: "Error originated from macro call here",
227                     },
228                 ],
229             ),
230             tags: None,
231             data: None,
232         },
233         fixes: [],
234     },
235 ]