Skip to content

Commit

Permalink
Don't test json with color codes on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Apr 16, 2019
1 parent 325936a commit 5c6a43a
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 53 deletions.
1 change: 1 addition & 0 deletions src/test/ui/lint/use_suggestion_json.rs
@@ -1,4 +1,5 @@
// ignore-cloudabi
// ignore-windows
// compile-flags: --error-format pretty-json -Zunstable-options --json-rendered=termcolor

// The output for humans should just highlight the whole span without showing
Expand Down
106 changes: 53 additions & 53 deletions src/test/ui/lint/use_suggestion_json.stderr
Expand Up @@ -73,10 +73,10 @@ mod foo {
"spans": [
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 466,
"byte_end": 470,
"line_start": 11,
"line_end": 11,
"byte_start": 484,
"byte_end": 488,
"line_start": 12,
"line_end": 12,
"column_start": 12,
"column_end": 16,
"is_primary": true,
Expand All @@ -101,10 +101,10 @@ mod foo {
"spans": [
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 443,
"byte_end": 443,
"line_start": 10,
"line_end": 10,
"byte_start": 461,
"byte_end": 461,
"line_start": 11,
"line_end": 11,
"column_start": 1,
"column_end": 1,
"is_primary": true,
Expand All @@ -124,10 +124,10 @@ mod foo {
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 443,
"byte_end": 443,
"line_start": 10,
"line_end": 10,
"byte_start": 461,
"byte_end": 461,
"line_start": 11,
"line_end": 11,
"column_start": 1,
"column_end": 1,
"is_primary": true,
Expand All @@ -147,10 +147,10 @@ mod foo {
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 443,
"byte_end": 443,
"line_start": 10,
"line_end": 10,
"byte_start": 461,
"byte_end": 461,
"line_start": 11,
"line_end": 11,
"column_start": 1,
"column_end": 1,
"is_primary": true,
Expand All @@ -170,10 +170,10 @@ mod foo {
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 443,
"byte_end": 443,
"line_start": 10,
"line_end": 10,
"byte_start": 461,
"byte_end": 461,
"line_start": 11,
"line_end": 11,
"column_start": 1,
"column_end": 1,
"is_primary": true,
Expand All @@ -193,10 +193,10 @@ mod foo {
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 443,
"byte_end": 443,
"line_start": 10,
"line_end": 10,
"byte_start": 461,
"byte_end": 461,
"line_start": 11,
"line_end": 11,
"column_start": 1,
"column_end": 1,
"is_primary": true,
Expand All @@ -216,10 +216,10 @@ mod foo {
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 443,
"byte_end": 443,
"line_start": 10,
"line_end": 10,
"byte_start": 461,
"byte_end": 461,
"line_start": 11,
"line_end": 11,
"column_start": 1,
"column_end": 1,
"is_primary": true,
Expand All @@ -239,10 +239,10 @@ mod foo {
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 443,
"byte_end": 443,
"line_start": 10,
"line_end": 10,
"byte_start": 461,
"byte_end": 461,
"line_start": 11,
"line_end": 11,
"column_start": 1,
"column_end": 1,
"is_primary": true,
Expand All @@ -262,10 +262,10 @@ mod foo {
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 443,
"byte_end": 443,
"line_start": 10,
"line_end": 10,
"byte_start": 461,
"byte_end": 461,
"line_start": 11,
"line_end": 11,
"column_start": 1,
"column_end": 1,
"is_primary": true,
Expand All @@ -285,10 +285,10 @@ mod foo {
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 443,
"byte_end": 443,
"line_start": 10,
"line_end": 10,
"byte_start": 461,
"byte_end": 461,
"line_start": 11,
"line_end": 11,
"column_start": 1,
"column_end": 1,
"is_primary": true,
Expand All @@ -308,10 +308,10 @@ mod foo {
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 443,
"byte_end": 443,
"line_start": 10,
"line_end": 10,
"byte_start": 461,
"byte_end": 461,
"line_start": 11,
"line_end": 11,
"column_start": 1,
"column_end": 1,
"is_primary": true,
Expand All @@ -331,10 +331,10 @@ mod foo {
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 443,
"byte_end": 443,
"line_start": 10,
"line_end": 10,
"byte_start": 461,
"byte_end": 461,
"line_start": 11,
"line_end": 11,
"column_start": 1,
"column_end": 1,
"is_primary": true,
Expand All @@ -354,10 +354,10 @@ mod foo {
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 443,
"byte_end": 443,
"line_start": 10,
"line_end": 10,
"byte_start": 461,
"byte_end": 461,
"line_start": 11,
"line_end": 11,
"column_start": 1,
"column_end": 1,
"is_primary": true,
Expand All @@ -381,7 +381,7 @@ mod foo {
}
],
"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
\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
\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
\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m
\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
\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
Expand Down

0 comments on commit 5c6a43a

Please sign in to comment.