Skip to content

Commit 9c4edfc

Browse files
update tests
1 parent f8fd2d8 commit 9c4edfc

13 files changed

Lines changed: 732 additions & 764 deletions

crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt

Lines changed: 132 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
[
22
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/mir/tagset.rs",
11-
query: None,
12-
fragment: None,
13-
},
3+
url: Uri(
4+
Uri {
5+
scheme: None,
6+
authority: None,
7+
path: "/test/compiler/mir/tagset.rs",
8+
query: None,
9+
fragment: None,
10+
},
11+
),
1412
diagnostic: Diagnostic {
1513
range: Range {
1614
start: Position {
@@ -32,23 +30,30 @@
3230
),
3331
code_description: Some(
3432
CodeDescription {
35-
href: Url {
36-
scheme: "https",
37-
cannot_be_a_base: false,
38-
username: "",
39-
password: None,
40-
host: Some(
41-
Domain(
42-
"rust-lang.github.io",
33+
href: Uri(
34+
Uri {
35+
scheme: Some(
36+
"https",
4337
),
44-
),
45-
port: None,
46-
path: "/rust-clippy/master/index.html",
47-
query: None,
48-
fragment: Some(
49-
"trivially_copy_pass_by_ref",
50-
),
51-
},
38+
authority: Some(
39+
Authority {
40+
userinfo: None,
41+
host: Host {
42+
text: "rust-lang.github.io",
43+
data: RegName(
44+
"rust-lang.github.io",
45+
),
46+
},
47+
port: None,
48+
},
49+
),
50+
path: "/rust-clippy/master/index.html",
51+
query: None,
52+
fragment: Some(
53+
"trivially_copy_pass_by_ref",
54+
),
55+
},
56+
),
5257
},
5358
),
5459
source: Some(
@@ -59,17 +64,15 @@
5964
[
6065
DiagnosticRelatedInformation {
6166
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/lib.rs",
70-
query: None,
71-
fragment: None,
72-
},
67+
uri: Uri(
68+
Uri {
69+
scheme: None,
70+
authority: None,
71+
path: "/test/compiler/lib.rs",
72+
query: None,
73+
fragment: None,
74+
},
75+
),
7376
range: Range {
7477
start: Position {
7578
line: 0,
@@ -85,17 +88,15 @@
8588
},
8689
DiagnosticRelatedInformation {
8790
location: Location {
88-
uri: Url {
89-
scheme: "file",
90-
cannot_be_a_base: false,
91-
username: "",
92-
password: None,
93-
host: None,
94-
port: None,
95-
path: "/test/compiler/mir/tagset.rs",
96-
query: None,
97-
fragment: None,
98-
},
91+
uri: Uri(
92+
Uri {
93+
scheme: None,
94+
authority: None,
95+
path: "/test/compiler/mir/tagset.rs",
96+
query: None,
97+
fragment: None,
98+
},
99+
),
99100
range: Range {
100101
start: Position {
101102
line: 41,
@@ -117,17 +118,15 @@
117118
fix: None,
118119
},
119120
MappedRustDiagnostic {
120-
url: Url {
121-
scheme: "file",
122-
cannot_be_a_base: false,
123-
username: "",
124-
password: None,
125-
host: None,
126-
port: None,
127-
path: "/test/compiler/lib.rs",
128-
query: None,
129-
fragment: None,
130-
},
121+
url: Uri(
122+
Uri {
123+
scheme: None,
124+
authority: None,
125+
path: "/test/compiler/lib.rs",
126+
query: None,
127+
fragment: None,
128+
},
129+
),
131130
diagnostic: Diagnostic {
132131
range: Range {
133132
start: Position {
@@ -149,23 +148,30 @@
149148
),
150149
code_description: Some(
151150
CodeDescription {
152-
href: Url {
153-
scheme: "https",
154-
cannot_be_a_base: false,
155-
username: "",
156-
password: None,
157-
host: Some(
158-
Domain(
159-
"rust-lang.github.io",
151+
href: Uri(
152+
Uri {
153+
scheme: Some(
154+
"https",
160155
),
161-
),
162-
port: None,
163-
path: "/rust-clippy/master/index.html",
164-
query: None,
165-
fragment: Some(
166-
"trivially_copy_pass_by_ref",
167-
),
168-
},
156+
authority: Some(
157+
Authority {
158+
userinfo: None,
159+
host: Host {
160+
text: "rust-lang.github.io",
161+
data: RegName(
162+
"rust-lang.github.io",
163+
),
164+
},
165+
port: None,
166+
},
167+
),
168+
path: "/rust-clippy/master/index.html",
169+
query: None,
170+
fragment: Some(
171+
"trivially_copy_pass_by_ref",
172+
),
173+
},
174+
),
169175
},
170176
),
171177
source: Some(
@@ -176,17 +182,15 @@
176182
[
177183
DiagnosticRelatedInformation {
178184
location: Location {
179-
uri: Url {
180-
scheme: "file",
181-
cannot_be_a_base: false,
182-
username: "",
183-
password: None,
184-
host: None,
185-
port: None,
186-
path: "/test/compiler/mir/tagset.rs",
187-
query: None,
188-
fragment: None,
189-
},
185+
uri: Uri(
186+
Uri {
187+
scheme: None,
188+
authority: None,
189+
path: "/test/compiler/mir/tagset.rs",
190+
query: None,
191+
fragment: None,
192+
},
193+
),
190194
range: Range {
191195
start: Position {
192196
line: 41,
@@ -208,17 +212,15 @@
208212
fix: None,
209213
},
210214
MappedRustDiagnostic {
211-
url: Url {
212-
scheme: "file",
213-
cannot_be_a_base: false,
214-
username: "",
215-
password: None,
216-
host: None,
217-
port: None,
218-
path: "/test/compiler/mir/tagset.rs",
219-
query: None,
220-
fragment: None,
221-
},
215+
url: Uri(
216+
Uri {
217+
scheme: None,
218+
authority: None,
219+
path: "/test/compiler/mir/tagset.rs",
220+
query: None,
221+
fragment: None,
222+
},
223+
),
222224
diagnostic: Diagnostic {
223225
range: Range {
224226
start: Position {
@@ -240,23 +242,30 @@
240242
),
241243
code_description: Some(
242244
CodeDescription {
243-
href: Url {
244-
scheme: "https",
245-
cannot_be_a_base: false,
246-
username: "",
247-
password: None,
248-
host: Some(
249-
Domain(
250-
"rust-lang.github.io",
245+
href: Uri(
246+
Uri {
247+
scheme: Some(
248+
"https",
251249
),
252-
),
253-
port: None,
254-
path: "/rust-clippy/master/index.html",
255-
query: None,
256-
fragment: Some(
257-
"trivially_copy_pass_by_ref",
258-
),
259-
},
250+
authority: Some(
251+
Authority {
252+
userinfo: None,
253+
host: Host {
254+
text: "rust-lang.github.io",
255+
data: RegName(
256+
"rust-lang.github.io",
257+
),
258+
},
259+
port: None,
260+
},
261+
),
262+
path: "/rust-clippy/master/index.html",
263+
query: None,
264+
fragment: Some(
265+
"trivially_copy_pass_by_ref",
266+
),
267+
},
268+
),
260269
},
261270
),
262271
source: Some(
@@ -267,17 +276,15 @@
267276
[
268277
DiagnosticRelatedInformation {
269278
location: Location {
270-
uri: Url {
271-
scheme: "file",
272-
cannot_be_a_base: false,
273-
username: "",
274-
password: None,
275-
host: None,
276-
port: None,
277-
path: "/test/compiler/mir/tagset.rs",
278-
query: None,
279-
fragment: None,
280-
},
279+
uri: Uri(
280+
Uri {
281+
scheme: None,
282+
authority: None,
283+
path: "/test/compiler/mir/tagset.rs",
284+
query: None,
285+
fragment: None,
286+
},
287+
),
281288
range: Range {
282289
start: Position {
283290
line: 41,

0 commit comments

Comments
 (0)