2019-08-02 12:46:09 -05:00
|
|
|
{
|
|
|
|
"message": "unnecessary parentheses around `if` condition",
|
|
|
|
"code": {
|
|
|
|
"code": "unused_parens",
|
|
|
|
"explanation": null
|
|
|
|
},
|
2019-10-17 12:27:55 -05:00
|
|
|
"level": "error",
|
2019-08-02 12:46:09 -05:00
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 507,
|
|
|
|
"byte_end": 511,
|
|
|
|
"line_start": 17,
|
|
|
|
"line_end": 17,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 8,
|
|
|
|
"column_end": 12,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " if (_b) {
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 8,
|
|
|
|
"highlight_end": 12
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": null,
|
|
|
|
"suggestion_applicability": null,
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"message": "lint level defined here",
|
|
|
|
"code": null,
|
|
|
|
"level": "note",
|
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 421,
|
|
|
|
"byte_end": 434,
|
|
|
|
"line_start": 10,
|
|
|
|
"line_end": 10,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 9,
|
|
|
|
"column_end": 22,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": "#![deny(unused_parens)]",
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 9,
|
|
|
|
"highlight_end": 22
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": null,
|
|
|
|
"suggestion_applicability": null,
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [],
|
|
|
|
"rendered": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"message": "remove these parentheses",
|
|
|
|
"code": null,
|
|
|
|
"level": "help",
|
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 507,
|
|
|
|
"byte_end": 511,
|
|
|
|
"line_start": 17,
|
|
|
|
"line_end": 17,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 8,
|
|
|
|
"column_end": 12,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " if (_b) {
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 8,
|
|
|
|
"highlight_end": 12
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": "_b",
|
|
|
|
"suggestion_applicability": "MachineApplicable",
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [],
|
|
|
|
"rendered": null
|
|
|
|
}
|
|
|
|
],
|
2019-10-17 12:27:55 -05:00
|
|
|
"rendered": "error: unnecessary parentheses around `if` condition
|
|
|
|
--> $DIR/unused_parens_remove_json_suggestion.rs:17:8
|
2019-08-02 12:46:09 -05:00
|
|
|
|
|
|
|
|
LL | if (_b) {
|
|
|
|
| ^^^^ help: remove these parentheses
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2019-10-17 12:27:55 -05:00
|
|
|
--> $DIR/unused_parens_remove_json_suggestion.rs:10:9
|
2019-08-02 12:46:09 -05:00
|
|
|
|
|
2019-10-17 12:27:55 -05:00
|
|
|
LL | #![deny(unused_parens)]
|
2019-08-02 12:46:09 -05:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
"
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"message": "unnecessary parentheses around `if` condition",
|
|
|
|
"code": {
|
|
|
|
"code": "unused_parens",
|
|
|
|
"explanation": null
|
|
|
|
},
|
2019-10-17 12:27:55 -05:00
|
|
|
"level": "error",
|
2019-08-02 12:46:09 -05:00
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 614,
|
|
|
|
"byte_end": 617,
|
|
|
|
"line_start": 28,
|
|
|
|
"line_end": 28,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 7,
|
|
|
|
"column_end": 10,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " if(c) {
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 7,
|
|
|
|
"highlight_end": 10
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": null,
|
|
|
|
"suggestion_applicability": null,
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"message": "remove these parentheses",
|
|
|
|
"code": null,
|
|
|
|
"level": "help",
|
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 614,
|
|
|
|
"byte_end": 617,
|
|
|
|
"line_start": 28,
|
|
|
|
"line_end": 28,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 7,
|
|
|
|
"column_end": 10,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " if(c) {
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 7,
|
|
|
|
"highlight_end": 10
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": " c",
|
|
|
|
"suggestion_applicability": "MachineApplicable",
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [],
|
|
|
|
"rendered": null
|
|
|
|
}
|
|
|
|
],
|
2019-10-17 12:27:55 -05:00
|
|
|
"rendered": "error: unnecessary parentheses around `if` condition
|
|
|
|
--> $DIR/unused_parens_remove_json_suggestion.rs:28:7
|
2019-08-02 12:46:09 -05:00
|
|
|
|
|
|
|
|
LL | if(c) {
|
|
|
|
| ^^^ help: remove these parentheses
|
|
|
|
|
|
|
|
"
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"message": "unnecessary parentheses around `if` condition",
|
|
|
|
"code": {
|
|
|
|
"code": "unused_parens",
|
|
|
|
"explanation": null
|
|
|
|
},
|
2019-10-17 12:27:55 -05:00
|
|
|
"level": "error",
|
2019-08-02 12:46:09 -05:00
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 670,
|
|
|
|
"byte_end": 673,
|
|
|
|
"line_start": 32,
|
|
|
|
"line_end": 32,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 8,
|
|
|
|
"column_end": 11,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " if (c){
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 8,
|
|
|
|
"highlight_end": 11
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": null,
|
|
|
|
"suggestion_applicability": null,
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"message": "remove these parentheses",
|
|
|
|
"code": null,
|
|
|
|
"level": "help",
|
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 670,
|
|
|
|
"byte_end": 673,
|
|
|
|
"line_start": 32,
|
|
|
|
"line_end": 32,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 8,
|
|
|
|
"column_end": 11,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " if (c){
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 8,
|
|
|
|
"highlight_end": 11
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": "c ",
|
|
|
|
"suggestion_applicability": "MachineApplicable",
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [],
|
|
|
|
"rendered": null
|
|
|
|
}
|
|
|
|
],
|
2019-10-17 12:27:55 -05:00
|
|
|
"rendered": "error: unnecessary parentheses around `if` condition
|
|
|
|
--> $DIR/unused_parens_remove_json_suggestion.rs:32:8
|
2019-08-02 12:46:09 -05:00
|
|
|
|
|
|
|
|
LL | if (c){
|
|
|
|
| ^^^ help: remove these parentheses
|
|
|
|
|
|
|
|
"
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"message": "unnecessary parentheses around `while` condition",
|
|
|
|
"code": {
|
|
|
|
"code": "unused_parens",
|
|
|
|
"explanation": null
|
|
|
|
},
|
2019-10-17 12:27:55 -05:00
|
|
|
"level": "error",
|
2019-08-02 12:46:09 -05:00
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 728,
|
|
|
|
"byte_end": 743,
|
|
|
|
"line_start": 36,
|
|
|
|
"line_end": 36,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 11,
|
|
|
|
"column_end": 26,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
|
|
|
"text": " while (false && true){",
|
|
|
|
"highlight_start": 11,
|
|
|
|
"highlight_end": 26
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": null,
|
|
|
|
"suggestion_applicability": null,
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"message": "remove these parentheses",
|
|
|
|
"code": null,
|
|
|
|
"level": "help",
|
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 728,
|
|
|
|
"byte_end": 743,
|
|
|
|
"line_start": 36,
|
|
|
|
"line_end": 36,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 11,
|
|
|
|
"column_end": 26,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
|
|
|
"text": " while (false && true){",
|
|
|
|
"highlight_start": 11,
|
|
|
|
"highlight_end": 26
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": "false && true ",
|
|
|
|
"suggestion_applicability": "MachineApplicable",
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [],
|
|
|
|
"rendered": null
|
|
|
|
}
|
|
|
|
],
|
2019-10-17 12:27:55 -05:00
|
|
|
"rendered": "error: unnecessary parentheses around `while` condition
|
|
|
|
--> $DIR/unused_parens_remove_json_suggestion.rs:36:11
|
2019-08-02 12:46:09 -05:00
|
|
|
|
|
|
|
|
LL | while (false && true){
|
|
|
|
| ^^^^^^^^^^^^^^^ help: remove these parentheses
|
|
|
|
|
|
|
|
"
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"message": "unnecessary parentheses around `if` condition",
|
|
|
|
"code": {
|
|
|
|
"code": "unused_parens",
|
|
|
|
"explanation": null
|
|
|
|
},
|
2019-10-17 12:27:55 -05:00
|
|
|
"level": "error",
|
2019-08-02 12:46:09 -05:00
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 756,
|
|
|
|
"byte_end": 759,
|
|
|
|
"line_start": 37,
|
|
|
|
"line_end": 37,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 12,
|
|
|
|
"column_end": 15,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " if (c) {
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 12,
|
|
|
|
"highlight_end": 15
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": null,
|
|
|
|
"suggestion_applicability": null,
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"message": "remove these parentheses",
|
|
|
|
"code": null,
|
|
|
|
"level": "help",
|
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 756,
|
|
|
|
"byte_end": 759,
|
|
|
|
"line_start": 37,
|
|
|
|
"line_end": 37,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 12,
|
|
|
|
"column_end": 15,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " if (c) {
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 12,
|
|
|
|
"highlight_end": 15
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": "c",
|
|
|
|
"suggestion_applicability": "MachineApplicable",
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [],
|
|
|
|
"rendered": null
|
|
|
|
}
|
|
|
|
],
|
2019-10-17 12:27:55 -05:00
|
|
|
"rendered": "error: unnecessary parentheses around `if` condition
|
|
|
|
--> $DIR/unused_parens_remove_json_suggestion.rs:37:12
|
2019-08-02 12:46:09 -05:00
|
|
|
|
|
|
|
|
LL | if (c) {
|
|
|
|
| ^^^ help: remove these parentheses
|
|
|
|
|
|
|
|
"
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"message": "unnecessary parentheses around `while` condition",
|
|
|
|
"code": {
|
|
|
|
"code": "unused_parens",
|
|
|
|
"explanation": null
|
|
|
|
},
|
2019-10-17 12:27:55 -05:00
|
|
|
"level": "error",
|
2019-08-02 12:46:09 -05:00
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 829,
|
|
|
|
"byte_end": 844,
|
|
|
|
"line_start": 43,
|
|
|
|
"line_end": 43,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 10,
|
|
|
|
"column_end": 25,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " while(true && false) {
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 10,
|
|
|
|
"highlight_end": 25
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": null,
|
|
|
|
"suggestion_applicability": null,
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"message": "remove these parentheses",
|
|
|
|
"code": null,
|
|
|
|
"level": "help",
|
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 829,
|
|
|
|
"byte_end": 844,
|
|
|
|
"line_start": 43,
|
|
|
|
"line_end": 43,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 10,
|
|
|
|
"column_end": 25,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " while(true && false) {
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 10,
|
|
|
|
"highlight_end": 25
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": " true && false",
|
|
|
|
"suggestion_applicability": "MachineApplicable",
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [],
|
|
|
|
"rendered": null
|
|
|
|
}
|
|
|
|
],
|
2019-10-17 12:27:55 -05:00
|
|
|
"rendered": "error: unnecessary parentheses around `while` condition
|
|
|
|
--> $DIR/unused_parens_remove_json_suggestion.rs:43:10
|
2019-08-02 12:46:09 -05:00
|
|
|
|
|
|
|
|
LL | while(true && false) {
|
|
|
|
| ^^^^^^^^^^^^^^^ help: remove these parentheses
|
|
|
|
|
|
|
|
"
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"message": "unnecessary parentheses around `for` head expression",
|
|
|
|
"code": {
|
|
|
|
"code": "unused_parens",
|
|
|
|
"explanation": null
|
|
|
|
},
|
2019-10-17 12:27:55 -05:00
|
|
|
"level": "error",
|
2019-08-02 12:46:09 -05:00
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 874,
|
|
|
|
"byte_end": 882,
|
|
|
|
"line_start": 44,
|
|
|
|
"line_end": 44,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 18,
|
|
|
|
"column_end": 26,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " for _ in (0 .. 3){
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 18,
|
|
|
|
"highlight_end": 26
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": null,
|
|
|
|
"suggestion_applicability": null,
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"message": "remove these parentheses",
|
|
|
|
"code": null,
|
|
|
|
"level": "help",
|
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 874,
|
|
|
|
"byte_end": 882,
|
|
|
|
"line_start": 44,
|
|
|
|
"line_end": 44,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 18,
|
|
|
|
"column_end": 26,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " for _ in (0 .. 3){
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 18,
|
|
|
|
"highlight_end": 26
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": "0 .. 3 ",
|
|
|
|
"suggestion_applicability": "MachineApplicable",
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [],
|
|
|
|
"rendered": null
|
|
|
|
}
|
|
|
|
],
|
2019-10-17 12:27:55 -05:00
|
|
|
"rendered": "error: unnecessary parentheses around `for` head expression
|
|
|
|
--> $DIR/unused_parens_remove_json_suggestion.rs:44:18
|
2019-08-02 12:46:09 -05:00
|
|
|
|
|
2019-08-06 03:00:13 -05:00
|
|
|
LL | for _ in (0 .. 3){
|
2019-08-02 12:46:09 -05:00
|
|
|
| ^^^^^^^^ help: remove these parentheses
|
|
|
|
|
|
|
|
"
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"message": "unnecessary parentheses around `for` head expression",
|
|
|
|
"code": {
|
|
|
|
"code": "unused_parens",
|
|
|
|
"explanation": null
|
|
|
|
},
|
2019-10-17 12:27:55 -05:00
|
|
|
"level": "error",
|
2019-08-02 12:46:09 -05:00
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 951,
|
|
|
|
"byte_end": 959,
|
|
|
|
"line_start": 49,
|
|
|
|
"line_end": 49,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 14,
|
|
|
|
"column_end": 22,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " for _ in (0 .. 3) {
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 14,
|
|
|
|
"highlight_end": 22
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": null,
|
|
|
|
"suggestion_applicability": null,
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"message": "remove these parentheses",
|
|
|
|
"code": null,
|
|
|
|
"level": "help",
|
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 951,
|
|
|
|
"byte_end": 959,
|
|
|
|
"line_start": 49,
|
|
|
|
"line_end": 49,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 14,
|
|
|
|
"column_end": 22,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " for _ in (0 .. 3) {
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 14,
|
|
|
|
"highlight_end": 22
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": "0 .. 3",
|
|
|
|
"suggestion_applicability": "MachineApplicable",
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [],
|
|
|
|
"rendered": null
|
|
|
|
}
|
|
|
|
],
|
2019-10-17 12:27:55 -05:00
|
|
|
"rendered": "error: unnecessary parentheses around `for` head expression
|
|
|
|
--> $DIR/unused_parens_remove_json_suggestion.rs:49:14
|
2019-08-02 12:46:09 -05:00
|
|
|
|
|
2019-08-06 03:00:13 -05:00
|
|
|
LL | for _ in (0 .. 3) {
|
2019-08-02 12:46:09 -05:00
|
|
|
| ^^^^^^^^ help: remove these parentheses
|
|
|
|
|
|
|
|
"
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"message": "unnecessary parentheses around `while` condition",
|
|
|
|
"code": {
|
|
|
|
"code": "unused_parens",
|
|
|
|
"explanation": null
|
|
|
|
},
|
2019-10-17 12:27:55 -05:00
|
|
|
"level": "error",
|
2019-08-02 12:46:09 -05:00
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 986,
|
|
|
|
"byte_end": 1001,
|
|
|
|
"line_start": 50,
|
|
|
|
"line_end": 50,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 15,
|
|
|
|
"column_end": 30,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " while (true && false) {
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 15,
|
|
|
|
"highlight_end": 30
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": null,
|
|
|
|
"suggestion_applicability": null,
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"message": "remove these parentheses",
|
|
|
|
"code": null,
|
|
|
|
"level": "help",
|
|
|
|
"spans": [
|
|
|
|
{
|
2019-08-06 03:00:13 -05:00
|
|
|
"file_name": "$DIR/unused_parens_remove_json_suggestion.rs",
|
2019-10-17 12:27:55 -05:00
|
|
|
"byte_start": 986,
|
|
|
|
"byte_end": 1001,
|
|
|
|
"line_start": 50,
|
|
|
|
"line_end": 50,
|
2019-08-02 12:46:09 -05:00
|
|
|
"column_start": 15,
|
|
|
|
"column_end": 30,
|
|
|
|
"is_primary": true,
|
|
|
|
"text": [
|
|
|
|
{
|
2019-10-17 12:27:55 -05:00
|
|
|
"text": " while (true && false) {
|
2019-08-02 12:46:09 -05:00
|
|
|
"highlight_start": 15,
|
|
|
|
"highlight_end": 30
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"label": null,
|
|
|
|
"suggested_replacement": "true && false",
|
|
|
|
"suggestion_applicability": "MachineApplicable",
|
|
|
|
"expansion": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"children": [],
|
|
|
|
"rendered": null
|
|
|
|
}
|
|
|
|
],
|
2019-10-17 12:27:55 -05:00
|
|
|
"rendered": "error: unnecessary parentheses around `while` condition
|
|
|
|
--> $DIR/unused_parens_remove_json_suggestion.rs:50:15
|
2019-08-02 12:46:09 -05:00
|
|
|
|
|
|
|
|
LL | while (true && false) {
|
|
|
|
| ^^^^^^^^^^^^^^^ help: remove these parentheses
|
|
|
|
|
|
|
|
"
|
|
|
|
}
|
2019-10-17 12:27:55 -05:00
|
|
|
{
|
|
|
|
"message": "aborting due to 9 previous errors",
|
|
|
|
"code": null,
|
|
|
|
"level": "error",
|
|
|
|
"spans": [],
|
|
|
|
"children": [],
|
|
|
|
"rendered": "error: aborting due to 9 previous errors
|
|
|
|
|
|
|
|
"
|
|
|
|
}
|