• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/compiler/ty/select.rs",
11            query: None,
12            fragment: None,
13        },
14        diagnostic: Diagnostic {
15            range: Range {
16                start: Position {
17                    line: 103,
18                    character: 17,
19                },
20                end: Position {
21                    line: 103,
22                    character: 29,
23                },
24            },
25            severity: Some(
26                Error,
27            ),
28            code: Some(
29                String(
30                    "E0061",
31                ),
32            ),
33            code_description: Some(
34                CodeDescription {
35                    href: Url {
36                        scheme: "https",
37                        cannot_be_a_base: false,
38                        username: "",
39                        password: None,
40                        host: Some(
41                            Domain(
42                                "doc.rust-lang.org",
43                            ),
44                        ),
45                        port: None,
46                        path: "/error-index.html",
47                        query: None,
48                        fragment: Some(
49                            "E0061",
50                        ),
51                    },
52                },
53            ),
54            source: Some(
55                "rustc",
56            ),
57            message: "this function takes 2 parameters but 3 parameters were supplied\nexpected 2 parameters",
58            related_information: Some(
59                [
60                    DiagnosticRelatedInformation {
61                        location: Location {
62                            uri: Url {
63                                scheme: "file",
64                                cannot_be_a_base: false,
65                                username: "",
66                                password: None,
67                                host: None,
68                                port: None,
69                                path: "/test/compiler/ty/select.rs",
70                                query: None,
71                                fragment: None,
72                            },
73                            range: Range {
74                                start: Position {
75                                    line: 218,
76                                    character: 4,
77                                },
78                                end: Position {
79                                    line: 230,
80                                    character: 5,
81                                },
82                            },
83                        },
84                        message: "defined here",
85                    },
86                ],
87            ),
88            tags: None,
89            data: None,
90        },
91        fix: None,
92    },
93    MappedRustDiagnostic {
94        url: Url {
95            scheme: "file",
96            cannot_be_a_base: false,
97            username: "",
98            password: None,
99            host: None,
100            port: None,
101            path: "/test/compiler/ty/select.rs",
102            query: None,
103            fragment: None,
104        },
105        diagnostic: Diagnostic {
106            range: Range {
107                start: Position {
108                    line: 218,
109                    character: 4,
110                },
111                end: Position {
112                    line: 230,
113                    character: 5,
114                },
115            },
116            severity: Some(
117                Hint,
118            ),
119            code: Some(
120                String(
121                    "E0061",
122                ),
123            ),
124            code_description: Some(
125                CodeDescription {
126                    href: Url {
127                        scheme: "https",
128                        cannot_be_a_base: false,
129                        username: "",
130                        password: None,
131                        host: Some(
132                            Domain(
133                                "doc.rust-lang.org",
134                            ),
135                        ),
136                        port: None,
137                        path: "/error-index.html",
138                        query: None,
139                        fragment: Some(
140                            "E0061",
141                        ),
142                    },
143                },
144            ),
145            source: Some(
146                "rustc",
147            ),
148            message: "defined here",
149            related_information: Some(
150                [
151                    DiagnosticRelatedInformation {
152                        location: Location {
153                            uri: Url {
154                                scheme: "file",
155                                cannot_be_a_base: false,
156                                username: "",
157                                password: None,
158                                host: None,
159                                port: None,
160                                path: "/test/compiler/ty/select.rs",
161                                query: None,
162                                fragment: None,
163                            },
164                            range: Range {
165                                start: Position {
166                                    line: 103,
167                                    character: 17,
168                                },
169                                end: Position {
170                                    line: 103,
171                                    character: 29,
172                                },
173                            },
174                        },
175                        message: "original diagnostic",
176                    },
177                ],
178            ),
179            tags: None,
180            data: None,
181        },
182        fix: None,
183    },
184]
185