-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
separate.json
120 lines (120 loc) · 4.26 KB
/
separate.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"$message_type": "diagnostic",
"message": "octal-looking escape in string literal",
"code": {
"code": "clippy::octal_escapes",
"explanation": null
},
"level": "warning",
"spans": [
{
"file_name": "./tests/separate/separate.rs",
"byte_start": 24,
"byte_end": 33,
"line_start": 2,
"line_end": 2,
"column_start": 13,
"column_end": 22,
"is_primary": true,
"text": [
{
"text": " let _ = \"\\033[0m\";",
"highlight_start": 13,
"highlight_end": 22
}
],
"label": null,
"suggested_replacement": null,
"suggestion_applicability": null,
"expansion": null
}
],
"children": [
{
"message": "octal escapes are not supported, `\\0` is always a null character",
"code": null,
"level": "help",
"spans": [],
"children": [],
"rendered": null
},
{
"message": "`#[warn(clippy::octal_escapes)]` on by default",
"code": null,
"level": "note",
"spans": [],
"children": [],
"rendered": null
},
{
"message": "if an octal escape was intended, use the hexadecimal representation instead",
"code": null,
"level": "help",
"spans": [
{
"file_name": "./tests/separate/separate.rs",
"byte_start": 24,
"byte_end": 33,
"line_start": 2,
"line_end": 2,
"column_start": 13,
"column_end": 22,
"is_primary": true,
"text": [
{
"text": " let _ = \"\\033[0m\";",
"highlight_start": 13,
"highlight_end": 22
}
],
"label": null,
"suggested_replacement": "\"\\x1b[0m\"",
"suggestion_applicability": "MaybeIncorrect",
"expansion": null
}
],
"children": [],
"rendered": null
},
{
"message": "if the null character is intended, disambiguate using",
"code": null,
"level": "help",
"spans": [
{
"file_name": "./tests/separate/separate.rs",
"byte_start": 24,
"byte_end": 33,
"line_start": 2,
"line_end": 2,
"column_start": 13,
"column_end": 22,
"is_primary": true,
"text": [
{
"text": " let _ = \"\\033[0m\";",
"highlight_start": 13,
"highlight_end": 22
}
],
"label": null,
"suggested_replacement": "\"\\x0033[0m\"",
"suggestion_applicability": "MaybeIncorrect",
"expansion": null
}
],
"children": [],
"rendered": null
}
],
"rendered": "warning: octal-looking escape in string literal\n --> ./tests/separate/separate.rs:2:13\n |\n2 | let _ = \"\\033[0m\";\n | ^^^^^^^^^\n |\n = help: octal escapes are not supported, `\\0` is always a null character\n = note: `#[warn(clippy::octal_escapes)]` on by default\nhelp: if an octal escape was intended, use the hexadecimal representation instead\n |\n2 | let _ = \"\\x1b[0m\";\n | ~~~~~~~~~\nhelp: if the null character is intended, disambiguate using\n |\n2 | let _ = \"\\x0033[0m\";\n | ~~~~~~~~~~~\n\n"
}
{
"$message_type": "diagnostic",
"message": "1 warning emitted",
"code": null,
"level": "warning",
"spans": [],
"children": [],
"rendered": "warning: 1 warning emitted\n\n"
}