rust/src/test/ui/lint/unused_parens_json_suggestion.stderr

104 lines
2.5 KiB
Plaintext
Raw Normal View History

2017-11-03 07:38:26 -05:00
{
"message": "unnecessary parentheses around assigned value",
"code": {
"code": "unused_parens",
"explanation": null
},
"level": "warning",
"spans": [
{
"file_name": "$DIR/unused_parens_json_suggestion.rs",
2017-12-10 15:12:28 -06:00
"byte_start": 1056,
"byte_end": 1069,
"line_start": 25,
"line_end": 25,
2017-11-03 07:38:26 -05:00
"column_start": 14,
"column_end": 27,
"is_primary": true,
"text": [
{
"text": " let _a = (1 / (2 + 3));",
"highlight_start": 14,
"highlight_end": 27
}
],
"label": null,
"suggested_replacement": null,
"expansion": null
}
],
"children": [
{
"message": "lint level defined here",
"code": null,
"level": "note",
"spans": [
{
"file_name": "$DIR/unused_parens_json_suggestion.rs",
2017-12-10 15:12:28 -06:00
"byte_start": 902,
"byte_end": 915,
"line_start": 20,
"line_end": 20,
2017-11-03 07:38:26 -05:00
"column_start": 9,
"column_end": 22,
"is_primary": true,
"text": [
{
"text": "#![warn(unused_parens)]",
"highlight_start": 9,
"highlight_end": 22
}
],
"label": null,
"suggested_replacement": null,
"expansion": null
}
],
"children": [],
"rendered": null
},
{
"message": "remove these parentheses",
"code": null,
"level": "help",
"spans": [
{
"file_name": "$DIR/unused_parens_json_suggestion.rs",
2017-12-10 15:12:28 -06:00
"byte_start": 1056,
"byte_end": 1069,
"line_start": 25,
"line_end": 25,
2017-11-03 07:38:26 -05:00
"column_start": 14,
"column_end": 27,
"is_primary": true,
"text": [
{
"text": " let _a = (1 / (2 + 3));",
"highlight_start": 14,
"highlight_end": 27
}
],
"label": null,
"suggested_replacement": "1 / (2 + 3)",
"expansion": null
}
],
"children": [],
"rendered": null
}
],
2017-11-17 01:55:22 -06:00
"rendered": "warning: unnecessary parentheses around assigned value
2017-12-10 15:12:28 -06:00
--> $DIR/unused_parens_json_suggestion.rs:25:14
2017-11-17 01:55:22 -06:00
|
2017-12-10 15:12:28 -06:00
25 | let _a = (1 / (2 + 3));
2017-11-17 01:55:22 -06:00
| ^^^^^^^^^^^^^ help: remove these parentheses
|
note: lint level defined here
2017-12-10 15:12:28 -06:00
--> $DIR/unused_parens_json_suggestion.rs:20:9
2017-11-17 01:55:22 -06:00
|
2017-12-10 15:12:28 -06:00
20 | #![warn(unused_parens)]
2017-11-17 01:55:22 -06:00
| ^^^^^^^^^^^^^
"
2017-11-03 07:38:26 -05:00
}