Skip to content

Pretty print json in ui tests #45737

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 6, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Adjust json errors to byte changes
  • Loading branch information
oli-obk committed Nov 6, 2017
commit 6d6fb2ef97b81cd5fd39c86b881879d16ecd31c0
12 changes: 6 additions & 6 deletions src/test/ui/lint/unused_parens_json_suggestion.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"spans": [
{
"file_name": "$DIR/unused_parens_json_suggestion.rs",
"byte_start": 1035,
"byte_end": 1048,
"byte_start": 1027,
"byte_end": 1040,
"line_start": 24,
"line_end": 24,
"column_start": 14,
Expand All @@ -35,8 +35,8 @@
"spans": [
{
"file_name": "$DIR/unused_parens_json_suggestion.rs",
"byte_start": 881,
"byte_end": 894,
"byte_start": 873,
"byte_end": 886,
"line_start": 19,
"line_end": 19,
"column_start": 9,
Expand Down Expand Up @@ -64,8 +64,8 @@
"spans": [
{
"file_name": "$DIR/unused_parens_json_suggestion.rs",
"byte_start": 1035,
"byte_end": 1048,
"byte_start": 1027,
"byte_end": 1040,
"line_start": 24,
"line_end": 24,
"column_start": 14,
Expand Down
52 changes: 26 additions & 26 deletions src/test/ui/lint/use_suggestion_json.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"spans": [
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 896,
"byte_end": 900,
"byte_start": 888,
"byte_end": 892,
"line_start": 20,
"line_end": 20,
"column_start": 12,
Expand All @@ -35,8 +35,8 @@
"spans": [
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 873,
"byte_end": 873,
"byte_start": 865,
"byte_end": 865,
"line_start": 19,
"line_end": 19,
"column_start": 1,
Expand All @@ -55,8 +55,8 @@
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 873,
"byte_end": 873,
"byte_start": 865,
"byte_end": 865,
"line_start": 19,
"line_end": 19,
"column_start": 1,
Expand All @@ -75,8 +75,8 @@
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 873,
"byte_end": 873,
"byte_start": 865,
"byte_end": 865,
"line_start": 19,
"line_end": 19,
"column_start": 1,
Expand All @@ -95,8 +95,8 @@
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 873,
"byte_end": 873,
"byte_start": 865,
"byte_end": 865,
"line_start": 19,
"line_end": 19,
"column_start": 1,
Expand All @@ -115,8 +115,8 @@
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 873,
"byte_end": 873,
"byte_start": 865,
"byte_end": 865,
"line_start": 19,
"line_end": 19,
"column_start": 1,
Expand All @@ -135,8 +135,8 @@
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 873,
"byte_end": 873,
"byte_start": 865,
"byte_end": 865,
"line_start": 19,
"line_end": 19,
"column_start": 1,
Expand All @@ -155,8 +155,8 @@
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 873,
"byte_end": 873,
"byte_start": 865,
"byte_end": 865,
"line_start": 19,
"line_end": 19,
"column_start": 1,
Expand All @@ -175,8 +175,8 @@
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 873,
"byte_end": 873,
"byte_start": 865,
"byte_end": 865,
"line_start": 19,
"line_end": 19,
"column_start": 1,
Expand All @@ -195,8 +195,8 @@
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 873,
"byte_end": 873,
"byte_start": 865,
"byte_end": 865,
"line_start": 19,
"line_end": 19,
"column_start": 1,
Expand All @@ -215,8 +215,8 @@
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 873,
"byte_end": 873,
"byte_start": 865,
"byte_end": 865,
"line_start": 19,
"line_end": 19,
"column_start": 1,
Expand All @@ -235,8 +235,8 @@
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 873,
"byte_end": 873,
"byte_start": 865,
"byte_end": 865,
"line_start": 19,
"line_end": 19,
"column_start": 1,
Expand All @@ -255,8 +255,8 @@
},
{
"file_name": "$DIR/use_suggestion_json.rs",
"byte_start": 873,
"byte_end": 873,
"byte_start": 865,
"byte_end": 865,
"line_start": 19,
"line_end": 19,
"column_start": 1,
Expand Down