Skip to content

Commit 5c6a43a

Browse files
committed
Don't test json with color codes on windows
1 parent 325936a commit 5c6a43a

File tree

2 files changed

+54
-53
lines changed

2 files changed

+54
-53
lines changed

src/test/ui/lint/use_suggestion_json.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// ignore-cloudabi
2+
// ignore-windows
23
// compile-flags: --error-format pretty-json -Zunstable-options --json-rendered=termcolor
34

45
// The output for humans should just highlight the whole span without showing

src/test/ui/lint/use_suggestion_json.stderr

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ mod foo {
7373
"spans": [
7474
{
7575
"file_name": "$DIR/use_suggestion_json.rs",
76-
"byte_start": 466,
77-
"byte_end": 470,
78-
"line_start": 11,
79-
"line_end": 11,
76+
"byte_start": 484,
77+
"byte_end": 488,
78+
"line_start": 12,
79+
"line_end": 12,
8080
"column_start": 12,
8181
"column_end": 16,
8282
"is_primary": true,
@@ -101,10 +101,10 @@ mod foo {
101101
"spans": [
102102
{
103103
"file_name": "$DIR/use_suggestion_json.rs",
104-
"byte_start": 443,
105-
"byte_end": 443,
106-
"line_start": 10,
107-
"line_end": 10,
104+
"byte_start": 461,
105+
"byte_end": 461,
106+
"line_start": 11,
107+
"line_end": 11,
108108
"column_start": 1,
109109
"column_end": 1,
110110
"is_primary": true,
@@ -124,10 +124,10 @@ mod foo {
124124
},
125125
{
126126
"file_name": "$DIR/use_suggestion_json.rs",
127-
"byte_start": 443,
128-
"byte_end": 443,
129-
"line_start": 10,
130-
"line_end": 10,
127+
"byte_start": 461,
128+
"byte_end": 461,
129+
"line_start": 11,
130+
"line_end": 11,
131131
"column_start": 1,
132132
"column_end": 1,
133133
"is_primary": true,
@@ -147,10 +147,10 @@ mod foo {
147147
},
148148
{
149149
"file_name": "$DIR/use_suggestion_json.rs",
150-
"byte_start": 443,
151-
"byte_end": 443,
152-
"line_start": 10,
153-
"line_end": 10,
150+
"byte_start": 461,
151+
"byte_end": 461,
152+
"line_start": 11,
153+
"line_end": 11,
154154
"column_start": 1,
155155
"column_end": 1,
156156
"is_primary": true,
@@ -170,10 +170,10 @@ mod foo {
170170
},
171171
{
172172
"file_name": "$DIR/use_suggestion_json.rs",
173-
"byte_start": 443,
174-
"byte_end": 443,
175-
"line_start": 10,
176-
"line_end": 10,
173+
"byte_start": 461,
174+
"byte_end": 461,
175+
"line_start": 11,
176+
"line_end": 11,
177177
"column_start": 1,
178178
"column_end": 1,
179179
"is_primary": true,
@@ -193,10 +193,10 @@ mod foo {
193193
},
194194
{
195195
"file_name": "$DIR/use_suggestion_json.rs",
196-
"byte_start": 443,
197-
"byte_end": 443,
198-
"line_start": 10,
199-
"line_end": 10,
196+
"byte_start": 461,
197+
"byte_end": 461,
198+
"line_start": 11,
199+
"line_end": 11,
200200
"column_start": 1,
201201
"column_end": 1,
202202
"is_primary": true,
@@ -216,10 +216,10 @@ mod foo {
216216
},
217217
{
218218
"file_name": "$DIR/use_suggestion_json.rs",
219-
"byte_start": 443,
220-
"byte_end": 443,
221-
"line_start": 10,
222-
"line_end": 10,
219+
"byte_start": 461,
220+
"byte_end": 461,
221+
"line_start": 11,
222+
"line_end": 11,
223223
"column_start": 1,
224224
"column_end": 1,
225225
"is_primary": true,
@@ -239,10 +239,10 @@ mod foo {
239239
},
240240
{
241241
"file_name": "$DIR/use_suggestion_json.rs",
242-
"byte_start": 443,
243-
"byte_end": 443,
244-
"line_start": 10,
245-
"line_end": 10,
242+
"byte_start": 461,
243+
"byte_end": 461,
244+
"line_start": 11,
245+
"line_end": 11,
246246
"column_start": 1,
247247
"column_end": 1,
248248
"is_primary": true,
@@ -262,10 +262,10 @@ mod foo {
262262
},
263263
{
264264
"file_name": "$DIR/use_suggestion_json.rs",
265-
"byte_start": 443,
266-
"byte_end": 443,
267-
"line_start": 10,
268-
"line_end": 10,
265+
"byte_start": 461,
266+
"byte_end": 461,
267+
"line_start": 11,
268+
"line_end": 11,
269269
"column_start": 1,
270270
"column_end": 1,
271271
"is_primary": true,
@@ -285,10 +285,10 @@ mod foo {
285285
},
286286
{
287287
"file_name": "$DIR/use_suggestion_json.rs",
288-
"byte_start": 443,
289-
"byte_end": 443,
290-
"line_start": 10,
291-
"line_end": 10,
288+
"byte_start": 461,
289+
"byte_end": 461,
290+
"line_start": 11,
291+
"line_end": 11,
292292
"column_start": 1,
293293
"column_end": 1,
294294
"is_primary": true,
@@ -308,10 +308,10 @@ mod foo {
308308
},
309309
{
310310
"file_name": "$DIR/use_suggestion_json.rs",
311-
"byte_start": 443,
312-
"byte_end": 443,
313-
"line_start": 10,
314-
"line_end": 10,
311+
"byte_start": 461,
312+
"byte_end": 461,
313+
"line_start": 11,
314+
"line_end": 11,
315315
"column_start": 1,
316316
"column_end": 1,
317317
"is_primary": true,
@@ -331,10 +331,10 @@ mod foo {
331331
},
332332
{
333333
"file_name": "$DIR/use_suggestion_json.rs",
334-
"byte_start": 443,
335-
"byte_end": 443,
336-
"line_start": 10,
337-
"line_end": 10,
334+
"byte_start": 461,
335+
"byte_end": 461,
336+
"line_start": 11,
337+
"line_end": 11,
338338
"column_start": 1,
339339
"column_end": 1,
340340
"is_primary": true,
@@ -354,10 +354,10 @@ mod foo {
354354
},
355355
{
356356
"file_name": "$DIR/use_suggestion_json.rs",
357-
"byte_start": 443,
358-
"byte_end": 443,
359-
"line_start": 10,
360-
"line_end": 10,
357+
"byte_start": 461,
358+
"byte_end": 461,
359+
"line_start": 11,
360+
"line_end": 11,
361361
"column_start": 1,
362362
"column_end": 1,
363363
"is_primary": true,
@@ -381,7 +381,7 @@ mod foo {
381381
}
382382
],
383383
"rendered": "\u001b[0m\u001b[1m\u001b[38;5;9merror[E0412]\u001b[0m\u001b[0m\u001b[1m: cannot find type `Iter` in this scope\u001b[0m
384-
\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0m$DIR/use_suggestion_json.rs:11:12\u001b[0m
384+
\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0m$DIR/use_suggestion_json.rs:12:12\u001b[0m
385385
\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m
386386
\u001b[0m\u001b[1m\u001b[38;5;12mLL\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m let x: Iter;\u001b[0m
387387
\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9mnot found in this scope\u001b[0m

0 commit comments

Comments
 (0)