interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / tests / universal / translation / fixtures-f2-rust.json

1200 lines · 41349 bytes Raw Blame History
1{
2 "schema": "omega.universal.fixtures.v1",
3 "set": "F2-rust",
4 "contract": "spec/universal/translation-compose-v1.md",
5 "profile": "spec/universal/rust-u64-v1.md",
6 "from": "tests/universal/translation/fixtures-f1.json",
7 "note": "Every F1 positive is expressible in rust-u64-wrapping-pure-v1; not_in_profile is empty. Refusals are new Rust-profile fixtures, not F1 refusals.",
8 "positives": [
9 {
10 "id": "F2-rust-F1-P00",
11 "f1_id": "F1-P00",
12 "f1_sha256": "250e3228f00b4c0cd60df70092f50106dce54f081cc77d4f3a24f7d2b5af8c4c",
13 "name": "calc",
14 "inputs": 2,
15 "sha256": "b685de43eaeb694db52b110974283d469687f34452d47f49c2529d3cb507a051",
16 "source": "fn calc(a: u64, b: u64) -> u64 { a }\n"
17 },
18 {
19 "id": "F2-rust-F1-P01",
20 "f1_id": "F1-P01",
21 "f1_sha256": "cc4a3ac6374b8c68eb99de6540e6896ef4c41aea9eb5fb5c1f0ae4be52662456",
22 "name": "calc",
23 "inputs": 2,
24 "sha256": "b349af35563087f9a4e2508b61bb0dd6a82d96f5941ac13e748fdb20da2884e0",
25 "source": "pub fn calc(a: u64, b: u64) -> u64 { b }\n"
26 },
27 {
28 "id": "F2-rust-F1-P02",
29 "f1_id": "F1-P02",
30 "f1_sha256": "2ab81c70d64699c9afe59cda7d49edcb577e10a57e32f2402af6ad67a0632c3e",
31 "name": "calc",
32 "inputs": 2,
33 "sha256": "b519c406a899996f0221e052803991e7393b20122337f50dd3502805afe47442",
34 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(b) }\n"
35 },
36 {
37 "id": "F2-rust-F1-P03",
38 "f1_id": "F1-P03",
39 "f1_sha256": "ce4e5d1d53ed51443e3b940939a21b8fff9bb35db202438920f398938c0f7fb6",
40 "name": "calc",
41 "inputs": 2,
42 "sha256": "f79ecee05bfca06123725ece4d389d9c76d203f589d4947b956fa0f098356ef9",
43 "source": "fn calc(a: u64, b: u64) -> u64 { a.wrapping_sub(b) }\n"
44 },
45 {
46 "id": "F2-rust-F1-P04",
47 "f1_id": "F1-P04",
48 "f1_sha256": "78db75440f5b5da2dafb59d0f771b696171c24d2698677f959e2ab430a2ebfd6",
49 "name": "calc",
50 "inputs": 2,
51 "sha256": "c4cb1f97bd0e0b84e7df9f84c1c404ab91f7b4ec55e7846443e61725257da8b7",
52 "source": "pub fn calc(a: u64, b: u64) -> u64 { u64::wrapping_mul(a, b) }\n"
53 },
54 {
55 "id": "F2-rust-F1-P05",
56 "f1_id": "F1-P05",
57 "f1_sha256": "277232cc9416a0c4f06004c5b00dbaab33952fc411c7e42f505f324026ca1765",
58 "name": "calc",
59 "inputs": 2,
60 "sha256": "84db06c9c87ce272ba23432130d766df5f5430ae02b0a622ba606f1cae77dc9e",
61 "source": "pub fn calc(a: u64, b: u64) -> u64 { (a.wrapping_add(b)).wrapping_mul(a.wrapping_sub(b)) }\n"
62 },
63 {
64 "id": "F2-rust-F1-P06",
65 "f1_id": "F1-P06",
66 "f1_sha256": "4332e4105d4442afba0b586e9574f1f192d7ed740099228eae26ad15473a5099",
67 "name": "calc",
68 "inputs": 2,
69 "sha256": "fa8b158a44793735919838ffbc914835a08713901eaeb81fdc7792a453717ac1",
70 "source": "fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(0u64) }\n"
71 },
72 {
73 "id": "F2-rust-F1-P07",
74 "f1_id": "F1-P07",
75 "f1_sha256": "7339bf648758434626305006d637470ca6d97399010515134dd4358940641451",
76 "name": "calc",
77 "inputs": 2,
78 "sha256": "b50f65667d2b5ac1e960e21095ae637dbadcf5c01bd205eb4eb4974041c0f4a6",
79 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_sub(1u64) }\n"
80 },
81 {
82 "id": "F2-rust-F1-P08",
83 "f1_id": "F1-P08",
84 "f1_sha256": "9bb734b9718ebfbfac521731fa2bbd0ea59b201afc77ca385bcce151fa76a703",
85 "name": "calc",
86 "inputs": 2,
87 "sha256": "4447b915245bb31845e688801445b09ccab1b2063d4b3d98f6e528739aebc1d4",
88 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_mul(2u64) }\n"
89 },
90 {
91 "id": "F2-rust-F1-P09",
92 "f1_id": "F1-P09",
93 "f1_sha256": "9d409851a2558cf54315c84c4917ec67d1bee299ff7d371557d707416542b631",
94 "name": "calc",
95 "inputs": 2,
96 "sha256": "bf8f36cdda5f2ecadbbf8987a241069da8facaf385fdcddf5161fca8ad09968b",
97 "source": "fn calc(a: u64, b: u64) -> u64 { 0u64.wrapping_sub(a) }\n"
98 },
99 {
100 "id": "F2-rust-F1-P10",
101 "f1_id": "F1-P10",
102 "f1_sha256": "aa0163f4a11aa259d38605ed3d26a56cbd80b381b32a9a20ffa10f82dbcd68ea",
103 "name": "calc",
104 "inputs": 2,
105 "sha256": "ba6f54c93e54c5df5fc4a1c720364b109167c5ffc49d7361b676a80c93f6aad3",
106 "source": "pub fn calc(a: u64, b: u64) -> u64 { 18446744073709551615u64.wrapping_add(a) }\n"
107 },
108 {
109 "id": "F2-rust-F1-P11",
110 "f1_id": "F1-P11",
111 "f1_sha256": "83d8dadc4e596492af0bd7c79b865fd5c5cb6b8536370706f95efd5c59f261d5",
112 "name": "calc",
113 "inputs": 2,
114 "sha256": "60dfed45688a08ef5e865c2f4bb648a4851e4b54e60010f9d391dea58ab435ed",
115 "source": "pub fn calc(a: u64, b: u64) -> u64 { u64::wrapping_add(u64::wrapping_mul(a, b), 3u64) }\n"
116 },
117 {
118 "id": "F2-rust-F1-P12",
119 "f1_id": "F1-P12",
120 "f1_sha256": "a23775feb8d8822fc987bc087356a2dec17d4a85dd9a8fceb36606dac6e28572",
121 "name": "calc",
122 "inputs": 2,
123 "sha256": "18e8e77cb3bdea16d4541b3baf011a0c9ee521a9e46c546c982e3eabc1885a62",
124 "source": "fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(a).wrapping_add(b) }\n"
125 },
126 {
127 "id": "F2-rust-F1-P13",
128 "f1_id": "F1-P13",
129 "f1_sha256": "23bc6a271dbba691f7a87f0f37e15ab125cecf8be229ab965777342266252ad2",
130 "name": "calc",
131 "inputs": 2,
132 "sha256": "5ed1320ee6ffc691ac2ca1eeafcfa730d318661729f0d41c0175ce4c94c929aa",
133 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(a.wrapping_add(b)) }\n"
134 },
135 {
136 "id": "F2-rust-F1-P14",
137 "f1_id": "F1-P14",
138 "f1_sha256": "11c77e44f631b68afbf893f347a6e94498aae6213af99950deb03eea53f6da05",
139 "name": "calc",
140 "inputs": 2,
141 "sha256": "7e49f78825adeb1e7e188e8144b27efb3bf70fd7fd3e340e06b1fac512b96030",
142 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_sub(b).wrapping_sub(b) }\n"
143 },
144 {
145 "id": "F2-rust-F1-P15",
146 "f1_id": "F1-P15",
147 "f1_sha256": "c5f7c9fdc269761e8ad7a4a3fa9ed0a2a2ccd7115cd2721a503203c778a2da2f",
148 "name": "calc",
149 "inputs": 2,
150 "sha256": "2e100f78d2607bb9d6c0b8074d94c7c0adec498220b2cb56fbe825e52db15d6f",
151 "source": "fn calc(a: u64, b: u64) -> u64 { a.wrapping_sub(b.wrapping_sub(b)) }\n"
152 },
153 {
154 "id": "F2-rust-F1-P16",
155 "f1_id": "F1-P16",
156 "f1_sha256": "d17614f4cb5234a2234af049027f78f1f49a5f6f03d5f2e5c7c2b4b580f263c5",
157 "name": "calc",
158 "inputs": 2,
159 "sha256": "887862614d2fc7777046e5bf50195d626e983b83fd903a5f8fbea7f13eba62c7",
160 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_mul(b).wrapping_mul(a) }\n"
161 },
162 {
163 "id": "F2-rust-F1-P17",
164 "f1_id": "F1-P17",
165 "f1_sha256": "a686cff8ae29e41a88bd4904c479806fec36f691e87d5732de68f59f319c694d",
166 "name": "calc",
167 "inputs": 2,
168 "sha256": "3539a1e5efe0475da05c74c8f1d793380cddf4f9b51d52716cd1f336baa44fe9",
169 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_mul(b.wrapping_mul(a)) }\n"
170 },
171 {
172 "id": "F2-rust-F1-P18",
173 "f1_id": "F1-P18",
174 "f1_sha256": "262e9b705e8ba8c433e540f49209540cc7406bacb7e3b95c0b1cd5ad869af607",
175 "name": "calc",
176 "inputs": 2,
177 "sha256": "6d923e4b67da4618d4ab11e94275c383c1cb389db4826230284b8965c8f10160",
178 "source": "fn calc(a: u64, b: u64) -> u64 { 123u64 }\n"
179 },
180 {
181 "id": "F2-rust-F1-P19",
182 "f1_id": "F1-P19",
183 "f1_sha256": "0b7ae5fc5fcacdd7b3040571e1838c324ba755ab1e9ecf7ba363e4d05d118511",
184 "name": "calc",
185 "inputs": 2,
186 "sha256": "0acb6d1a4eb64d032f96e1d653aa2c8eaf2971fd295fc225051f79c1efbe8dd6",
187 "source": "pub fn calc(a: u64, b: u64) -> u64 { ((a)) }\n"
188 },
189 {
190 "id": "F2-rust-F1-P20",
191 "f1_id": "F1-P20",
192 "f1_sha256": "e83ba5c9beccb2a5639359cbca57afd15b7a508aa86d912ce861d7b14b335d50",
193 "name": "calc",
194 "inputs": 2,
195 "sha256": "e70abd32cea7f72853d2f1c955ca6c7a080e5ee19b788c1e97799605e6fc1ab3",
196 "source": "pub fn calc(a: u64, b: u64) -> u64 { (a.wrapping_add(b)).wrapping_mul(b.wrapping_add(1u64)) }\n"
197 },
198 {
199 "id": "F2-rust-F1-P21",
200 "f1_id": "F1-P21",
201 "f1_sha256": "62ddab9112329da4fb6a45eb8ca1939e51c8bbfe0db85ba3784c4df0b078e757",
202 "name": "calc",
203 "inputs": 2,
204 "sha256": "aa2a24b4c3442bde2406c71e826d84faec5bc44ffa76f11f9b77f57e1480887b",
205 "source": "fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(b.wrapping_mul(2u64)) }\n"
206 },
207 {
208 "id": "F2-rust-F1-P22",
209 "f1_id": "F1-P22",
210 "f1_sha256": "f2472d246de322a108e5bc3098e7d7e359e7511b9ca07723c2560130ffc86656",
211 "name": "calc",
212 "inputs": 2,
213 "sha256": "bfa125cfdce91921995815bff7f73e430a3c07e628d328d8045a56dc85359be1",
214 "source": "pub fn calc(a: u64, b: u64) -> u64 { (a.wrapping_add(b)).wrapping_mul(2u64) }\n"
215 },
216 {
217 "id": "F2-rust-F1-P23",
218 "f1_id": "F1-P23",
219 "f1_sha256": "6ac071f7821d7d29ca2e3961b90a89471e3f8f1a3150e06b1ab4642183ff6121",
220 "name": "calc",
221 "inputs": 2,
222 "sha256": "df9a7cabd30141df81253badcaf0ea50f806f3f0995658500efcf6c466a151ac",
223 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_sub(2u64.wrapping_mul(b)) }\n"
224 },
225 {
226 "id": "F2-rust-F1-P24",
227 "f1_id": "F1-P24",
228 "f1_sha256": "f844f1cd780ee05f2e0218ce28afef6ae528d7d89c570253cdb8d82084784511",
229 "name": "calc",
230 "inputs": 2,
231 "sha256": "dc072033aa2584514b64efd5b3ab356e2a88edf7278853c977478851246cd8d6",
232 "source": "fn calc(a: u64, b: u64) -> u64 { (a.wrapping_sub(2u64)).wrapping_mul(b) }\n"
233 },
234 {
235 "id": "F2-rust-F1-P25",
236 "f1_id": "F1-P25",
237 "f1_sha256": "e446180a9b2462c5508e23bbd94371e2c0ee409a6b540a219a70026fe15fb568",
238 "name": "calc",
239 "inputs": 2,
240 "sha256": "0124b146c563f1a295a3372cf5bbad0995da957aabbc7b4c8170e973ea38bf96",
241 "source": "pub fn calc(a: u64, b: u64) -> u64 { u64::wrapping_add(a, u64::wrapping_mul(18446744073709551615u64, b)) }\n"
242 },
243 {
244 "id": "F2-rust-F1-P26",
245 "f1_id": "F1-P26",
246 "f1_sha256": "26762c67b1d44a63563289ecd4c80ee13655629a93ac95bc727a9d59d74eccf7",
247 "name": "calc",
248 "inputs": 2,
249 "sha256": "0df7d760f65ad50146e592ce724842acb2c6929bf6a3d215dfb7b98c3325d944",
250 "source": "pub fn calc(a: u64, b: u64) -> u64 { 2u64.wrapping_mul(3u64).wrapping_add(4u64) }\n"
251 },
252 {
253 "id": "F2-rust-F1-P27",
254 "f1_id": "F1-P27",
255 "f1_sha256": "412ea121023c650878fc8e0dc12146e7dc9a083b3c9fde4adf813ace9baec525",
256 "name": "calc",
257 "inputs": 2,
258 "sha256": "103e3df3d8aaaa6f7dd3a11d338ccdb55e6da60155e3cf120ad5eb5fea962bb3",
259 "source": "fn calc(a: u64, b: u64) -> u64 { u64::wrapping_mul(2u64, u64::wrapping_add(3u64, 4u64)) }\n"
260 },
261 {
262 "id": "F2-rust-F1-P28",
263 "f1_id": "F1-P28",
264 "f1_sha256": "e8b386f48e1ae8e8d91a073518e0c792e7c54e1a9cca283b37662aa66f636392",
265 "name": "calc",
266 "inputs": 2,
267 "sha256": "0122327442e4549429c6cc0e81e5c04de5cc9b06f91058e6b9704e235b1f3954",
268 "source": "pub fn calc(a: u64, b: u64) -> u64 { u64::wrapping_add(a.wrapping_sub(b), a.wrapping_mul(b)) }\n"
269 },
270 {
271 "id": "F2-rust-F1-P29",
272 "f1_id": "F1-P29",
273 "f1_sha256": "5ccf53bf81d312f299d2b5e916447830417b61a1e1a696460d7121dabb941106",
274 "name": "calc",
275 "inputs": 2,
276 "sha256": "7bd14800d34ef70dc0a0ba1d02abcb98e56a7d0fdb62ebd731685325e6042237",
277 "source": "pub fn calc(a: u64, b: u64) -> u64 { (a.wrapping_add(a)).wrapping_mul(b.wrapping_add(b)) }\n"
278 },
279 {
280 "id": "F2-rust-F1-P30",
281 "f1_id": "F1-P30",
282 "f1_sha256": "01332f15d4dc15b52bfb8f1ad9ee7c5eeb1e9cbeec229e1ebe790678b28d7963",
283 "name": "calc",
284 "inputs": 0,
285 "sha256": "ef8127c696758c03b728e134cc0136cbae2b82508351b5acbd1ae7ba710d7a72",
286 "source": "pub fn calc() -> u64 { 7u64 }\n"
287 },
288 {
289 "id": "F2-rust-F1-P31",
290 "f1_id": "F1-P31",
291 "f1_sha256": "255692046d239f102f700df892a5519525d7615e3cba14517be1f383e2aa5644",
292 "name": "calc",
293 "inputs": 1,
294 "sha256": "576b1fadee6f313027c6ea2979cbae1c8962190d68a7d436471d86c317d37683",
295 "source": "fn calc(x: u64) -> u64 { x }\n"
296 },
297 {
298 "id": "F2-rust-F1-P32",
299 "f1_id": "F1-P32",
300 "f1_sha256": "14daf8acaa708f00035d3d6dcc7bb5ce341a4f859cb9fc89517d6a5a6b18bf5b",
301 "name": "calc",
302 "inputs": 6,
303 "sha256": "56b519f18bb7991b6f4f4c2ffcbef0e7d80710a54ff449ee4491d6802f190121",
304 "source": "pub fn calc(a:u64,b:u64,c:u64,d:u64,e:u64,f:u64) -> u64 { a.wrapping_add(b).wrapping_add(c).wrapping_add(d).wrapping_add(e).wrapping_add(f) }\n"
305 },
306 {
307 "id": "F2-rust-F1-P33",
308 "f1_id": "F1-P33",
309 "f1_sha256": "48d398126ae85ad37b7fa9b96acd0d84a3bc980bed9c176843da4dc52ed4b6ef",
310 "name": "calc",
311 "inputs": 2,
312 "sha256": "6063228c423c3f43db6626de74f2818503275f0298ed593631c67502df46bdee",
313 "source": "/* α comment retained */\nfn calc(left:u64,right:u64)->u64 { /* keep */ left.wrapping_mul(right) }\r\n"
314 },
315 {
316 "id": "F2-rust-F1-P34",
317 "f1_id": "F1-P34",
318 "f1_sha256": "7c48737aa01323118ce87f9c95ed39edf11b554cd9fd9e8741b30fa548555dc6",
319 "name": "omega_fold",
320 "inputs": 2,
321 "sha256": "bf7bfe13143add24f254acc74000eb2238411fa1894b6b13ebc2a81b43687037",
322 "source": "pub fn omega_fold(a:u64,b:u64)->u64{a.wrapping_mul(b).wrapping_add(42u64)}\n"
323 }
324 ],
325 "not_in_profile": [],
326 "refusals": [
327 {
328 "id": "F2-rust-N000",
329 "name": "plain-add",
330 "status": 68,
331 "reason": "plain + panics in debug builds and wraps in release builds; refused, use wrapping_add",
332 "sha256": "f0d60a1c9409fb142878099738188c4682c91b50344dcddc20de5cef42a52fb6",
333 "source": "pub fn calc(a: u64, b: u64) -> u64 { a + b }\n"
334 },
335 {
336 "id": "F2-rust-N001",
337 "name": "plain-sub",
338 "status": 68,
339 "reason": "plain - is build-mode dependent (debug overflow panic)",
340 "sha256": "9c79dda52c7b71758a1259b29dda832fb6c77612af5d9a8dad7e2d121770d9e8",
341 "source": "pub fn calc(a: u64, b: u64) -> u64 { a - b }\n"
342 },
343 {
344 "id": "F2-rust-N002",
345 "name": "plain-mul",
346 "status": 68,
347 "reason": "plain * is build-mode dependent (debug overflow panic)",
348 "sha256": "fac95e944c808452200ac30e9f2dbbcda8607a2ee985b838ed808791333d007b",
349 "source": "pub fn calc(a: u64, b: u64) -> u64 { a * b }\n"
350 },
351 {
352 "id": "F2-rust-N003",
353 "name": "plain-add-after-call",
354 "status": 68,
355 "reason": "plain + after a wrapping call",
356 "sha256": "2e173e2777ae8f216599e4fb539102f849ea51acc6f67fdc6a1a0bf569bafceb",
357 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(b) + 1u64 }\n"
358 },
359 {
360 "id": "F2-rust-N004",
361 "name": "plain-add-in-arg",
362 "status": 68,
363 "reason": "plain + inside a call argument",
364 "sha256": "a20961a668d96fe3e9f8e5286ca9505d467082eff391937a08b96fe1f39d4faa",
365 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(b + 1u64) }\n"
366 },
367 {
368 "id": "F2-rust-N005",
369 "name": "plain-add-in-parens",
370 "status": 68,
371 "reason": "plain + inside parentheses",
372 "sha256": "4f5f8fb4de7430b5527b93e0157c03bbc23e98af4288b6e957b37bf0adcf1ff5",
373 "source": "pub fn calc(a: u64, b: u64) -> u64 { (a + b) }\n"
374 },
375 {
376 "id": "F2-rust-N006",
377 "name": "compound-assign-form",
378 "status": 68,
379 "reason": "compound assignment operator",
380 "sha256": "5c4c2cf301ad317a38ec05bbcdaf5adcb5f1236db88eb912b00ce65832fea198",
381 "source": "pub fn calc(a: u64, b: u64) -> u64 { a += b }\n"
382 },
383 {
384 "id": "F2-rust-N007",
385 "name": "div",
386 "status": 68,
387 "reason": "division is not in S1",
388 "sha256": "fca7b957130d75cb78af9149e3d1b9551f873cbb031c01752cf93a89f46fd3f7",
389 "source": "pub fn calc(a: u64, b: u64) -> u64 { a / b }\n"
390 },
391 {
392 "id": "F2-rust-N008",
393 "name": "rem",
394 "status": 68,
395 "reason": "remainder is not in S1",
396 "sha256": "1a587207bfcd4dfee2680e52d1243d6da3522fb7d4d4fa3eb49d3f6d7c444a84",
397 "source": "pub fn calc(a: u64, b: u64) -> u64 { a % b }\n"
398 },
399 {
400 "id": "F2-rust-N009",
401 "name": "shl",
402 "status": 68,
403 "reason": "shift is not in S1",
404 "sha256": "24900c52892dca8773b811364227087ae60d965ea178536a9f74d5cffd058669",
405 "source": "pub fn calc(a: u64, b: u64) -> u64 { a << b }\n"
406 },
407 {
408 "id": "F2-rust-N010",
409 "name": "shr",
410 "status": 68,
411 "reason": "shift is not in S1",
412 "sha256": "20dfa80de7b4ac21cc6636cf767c40d7c172693ef959e5589def1c1cf01082b6",
413 "source": "pub fn calc(a: u64, b: u64) -> u64 { a >> b }\n"
414 },
415 {
416 "id": "F2-rust-N011",
417 "name": "and",
418 "status": 68,
419 "reason": "bitwise and is not in S1",
420 "sha256": "f167cce690bfb521310d1331169f97aadd06096bc57b4de5b822c683b5a3cefa",
421 "source": "pub fn calc(a: u64, b: u64) -> u64 { a & b }\n"
422 },
423 {
424 "id": "F2-rust-N012",
425 "name": "or",
426 "status": 68,
427 "reason": "bitwise or is not in S1",
428 "sha256": "6bc654eae5a52124e8d6a62df4efd2fb2cea3921fb184240c5857187bd1469a2",
429 "source": "pub fn calc(a: u64, b: u64) -> u64 { a | b }\n"
430 },
431 {
432 "id": "F2-rust-N013",
433 "name": "xor",
434 "status": 68,
435 "reason": "bitwise xor is not in S1",
436 "sha256": "4e15b02d42c9f03d6fbfa23dc494f3e0c8494b12df0b34f65cc809e975ef9beb",
437 "source": "pub fn calc(a: u64, b: u64) -> u64 { a ^ b }\n"
438 },
439 {
440 "id": "F2-rust-N014",
441 "name": "not",
442 "status": 68,
443 "reason": "bitwise not is not in S1",
444 "sha256": "b8f2a5f18fe8c63d721d766288d35749b72d2490625ac1ee9e7ffd3288ee198d",
445 "source": "pub fn calc(a: u64, b: u64) -> u64 { !a }\n"
446 },
447 {
448 "id": "F2-rust-N015",
449 "name": "neg",
450 "status": 68,
451 "reason": "unary minus",
452 "sha256": "820577cc431d4bc34c1e194a25c6dd8087b54246c7da45348227ac4dd7b9407b",
453 "source": "pub fn calc(a: u64, b: u64) -> u64 { -a }\n"
454 },
455 {
456 "id": "F2-rust-N016",
457 "name": "compare",
458 "status": 68,
459 "reason": "comparison",
460 "sha256": "e9b37902e9520a7fc14f837b4c6f0a5af17e85e01d3a539a6342b00e13e3ea1f",
461 "source": "pub fn calc(a: u64, b: u64) -> u64 { a < b }\n"
462 },
463 {
464 "id": "F2-rust-N017",
465 "name": "cast",
466 "status": 68,
467 "reason": "as cast",
468 "sha256": "28c73e5f38aaf5795285ff26934effa1e7393e6a58e10705bb91c2c2cd31a2d5",
469 "source": "pub fn calc(a: u64, b: u64) -> u64 { a as u64 }\n"
470 },
471 {
472 "id": "F2-rust-N018",
473 "name": "wrapping-div",
474 "status": 68,
475 "reason": "wrapping_div is not in S1",
476 "sha256": "07c21aa8bd67dcfe95fe3b7c78c9324e7553539086a53e5b668a8a20117812fa",
477 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_div(b) }\n"
478 },
479 {
480 "id": "F2-rust-N019",
481 "name": "wrapping-neg",
482 "status": 68,
483 "reason": "wrapping_neg is not in S1",
484 "sha256": "be53c15060da062b5f9661b858ec2a768ad78af98d4fd4cb9607148a4c2d7c5e",
485 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_neg() }\n"
486 },
487 {
488 "id": "F2-rust-N020",
489 "name": "wrapping-shl",
490 "status": 68,
491 "reason": "wrapping_shl is not in S1",
492 "sha256": "8e080c2a6b4a2407cffee5eb15a1cadcc8da39ae57d3b774226e77db92e2b5d0",
493 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_shl(1u32) }\n"
494 },
495 {
496 "id": "F2-rust-N021",
497 "name": "checked-add",
498 "status": 68,
499 "reason": "checked_add is not in S1",
500 "sha256": "86d41f61a9c1bf9873e95a53c2503b06946ecb2f8589b8665f408ca58c5774da",
501 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.checked_add(b).unwrap() }\n"
502 },
503 {
504 "id": "F2-rust-N022",
505 "name": "overflowing-add",
506 "status": 68,
507 "reason": "overflowing_add is not in S1",
508 "sha256": "06a0373b57a970f58a13b70164d49d0bc18d9df223cfcd131fbf9ccfd321539d",
509 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.overflowing_add(b).0 }\n"
510 },
511 {
512 "id": "F2-rust-N023",
513 "name": "saturating-add",
514 "status": 68,
515 "reason": "saturating_add is not in S1",
516 "sha256": "191dc72b70001d01a1be237cbb0793cf0b0c2a97746e37779ec89f6f093abbd4",
517 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.saturating_add(b) }\n"
518 },
519 {
520 "id": "F2-rust-N024",
521 "name": "pow",
522 "status": 68,
523 "reason": "pow is not in S1",
524 "sha256": "b92f6d758da05ebfbd2aebcfb9e4c9d6cbced147a6cbb3e739294fb901e47d7a",
525 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.pow(2u32) }\n"
526 },
527 {
528 "id": "F2-rust-N025",
529 "name": "qualified-other",
530 "status": 68,
531 "reason": "associated item other than the three wrapping operations",
532 "sha256": "edf17cf747addea0a3ef23572bc59b766c19c278de722fb1dcc70d5639801f61",
533 "source": "pub fn calc(a: u64, b: u64) -> u64 { u64::MAX }\n"
534 },
535 {
536 "id": "F2-rust-N026",
537 "name": "unsuffixed-literal",
538 "status": 68,
539 "reason": "literal without the u64 suffix",
540 "sha256": "67aec0f5acf05218cf08fd11be266d4128314b4bc65de651c6533063b90949f5",
541 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(1) }\n"
542 },
543 {
544 "id": "F2-rust-N027",
545 "name": "hex-literal",
546 "status": 68,
547 "reason": "hexadecimal literal",
548 "sha256": "453a19e39fb375814eeeafffccbcc362e3336da4c006002078cb9d98faeffd64",
549 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(0x10u64) }\n"
550 },
551 {
552 "id": "F2-rust-N028",
553 "name": "octal-literal",
554 "status": 68,
555 "reason": "octal literal",
556 "sha256": "7e865640993054d24aea72d036f723406dd4995184d8490eb9b2e6d85a98221a",
557 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(0o10u64) }\n"
558 },
559 {
560 "id": "F2-rust-N029",
561 "name": "binary-literal",
562 "status": 68,
563 "reason": "binary literal",
564 "sha256": "280b889a5f9b8342c0ea257fd01a512e2b7af3415bc63e8028403f14ee7106ff",
565 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(0b10u64) }\n"
566 },
567 {
568 "id": "F2-rust-N030",
569 "name": "underscore-literal",
570 "status": 68,
571 "reason": "underscore digit separator",
572 "sha256": "cf66d0a104af794c4049e45276cbbb8903df2f260a3cf0948c2f6194e53b73b4",
573 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(1_000u64) }\n"
574 },
575 {
576 "id": "F2-rust-N031",
577 "name": "underscore-suffix",
578 "status": 68,
579 "reason": "underscore before the suffix",
580 "sha256": "57903b5cff2a11c322aed4a48ddf6d58bf7a6f23a5c687f3a10d8c32c473b315",
581 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(1_u64) }\n"
582 },
583 {
584 "id": "F2-rust-N032",
585 "name": "leading-zero",
586 "status": 68,
587 "reason": "leading zero (one spelling per value)",
588 "sha256": "3f8afa2c5d619f9df19348e7793aa609822e7fae90656c3ad563509942b98e3f",
589 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(010u64) }\n"
590 },
591 {
592 "id": "F2-rust-N033",
593 "name": "double-zero",
594 "status": 68,
595 "reason": "leading zero",
596 "sha256": "fc78111127e0d37cb2ed3a46e4408db359d259bfdd4bbc3438ac20d2ff56c310",
597 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(00u64) }\n"
598 },
599 {
600 "id": "F2-rust-N034",
601 "name": "u32-suffix",
602 "status": 68,
603 "reason": "u32 literal",
604 "sha256": "7ccd2c1d07b58f0aea5e936f7fa42b096d85226b1476b138fc7cd1856ecbc908",
605 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(1u32) }\n"
606 },
607 {
608 "id": "F2-rust-N035",
609 "name": "i64-suffix",
610 "status": 68,
611 "reason": "i64 literal",
612 "sha256": "2d1d26aeb1a940f1d3381f362b929f78a842ba7296394075b0d90c6c2898db30",
613 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(1i64) }\n"
614 },
615 {
616 "id": "F2-rust-N036",
617 "name": "usize-suffix",
618 "status": 68,
619 "reason": "usize literal",
620 "sha256": "e533f370648f0cee930574d9454b0a81888d120567da1fe3241741a407cabd67",
621 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(1usize) }\n"
622 },
623 {
624 "id": "F2-rust-N037",
625 "name": "long-suffix",
626 "status": 68,
627 "reason": "suffix continues past u64",
628 "sha256": "11034b9f7123a02dea2576ab95e33a1590d1a38f74846ca3f5c3f914e26973a1",
629 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(1u64x) }\n"
630 },
631 {
632 "id": "F2-rust-N038",
633 "name": "float-literal",
634 "status": 68,
635 "reason": "float literal",
636 "sha256": "a021bcdf3226b9ad8594fe1fa6a9b91114de6cc1c474f9d82b947650c5b75160",
637 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(1.0) }\n"
638 },
639 {
640 "id": "F2-rust-N039",
641 "name": "literal-overflow",
642 "status": 67,
643 "reason": "literal above u64::MAX",
644 "sha256": "2eca9808cfa364c21fff1183e9bab9a7bd4612af648fea83121c4a37faa5a66e",
645 "source": "pub fn calc(a: u64, b: u64) -> u64 { 18446744073709551616u64 }\n"
646 },
647 {
648 "id": "F2-rust-N040",
649 "name": "seven-params",
650 "status": 67,
651 "reason": "more than six parameters",
652 "sha256": "afdc5b281c7f3d3f5c90547bcbb44b272a8a14ba281f98c15c3b48145b3d34be",
653 "source": "pub fn calc(a: u64, b: u64, c: u64, d: u64, e: u64, f: u64, g: u64) -> u64 { a }\n"
654 },
655 {
656 "id": "F2-rust-N041",
657 "name": "unsafe-fn",
658 "status": 69,
659 "reason": "unsafe",
660 "sha256": "34dc4b6eb1e5abf9d9fbf735bb89501a2d81770438a9a8f3e1ab3711088f0f4d",
661 "source": "pub unsafe fn calc(a: u64) -> u64 { a }\n"
662 },
663 {
664 "id": "F2-rust-N042",
665 "name": "unsafe-block",
666 "status": 69,
667 "reason": "unsafe block",
668 "sha256": "92c6639b0be4eee865242398b600892b7ddb72d8bc78b99f8d84457bae7bc916",
669 "source": "pub fn calc(a: u64, b: u64) -> u64 { unsafe { a } }\n"
670 },
671 {
672 "id": "F2-rust-N043",
673 "name": "attribute",
674 "status": 69,
675 "reason": "attribute",
676 "sha256": "9b819d99f0d2f8befce5dee2f60ff9c65651657dfbf704f4f256e56cc3b44fc3",
677 "source": "#[inline]\npub fn calc(a: u64) -> u64 { a }\n"
678 },
679 {
680 "id": "F2-rust-N044",
681 "name": "inner-attribute",
682 "status": 69,
683 "reason": "inner attribute",
684 "sha256": "8237f91315fd07cb3fad68e94b91c6a8e87fb5b8c422898cd87df059c7af2b77",
685 "source": "#![no_std]\npub fn calc(a: u64) -> u64 { a }\n"
686 },
687 {
688 "id": "F2-rust-N045",
689 "name": "generics",
690 "status": 69,
691 "reason": "generic parameters",
692 "sha256": "0735e4e3a942e25c71a530e1111b02ad09d4bcfcaf23f08543d5fb4e76672d0f",
693 "source": "pub fn calc<T>(a: u64) -> u64 { a }\n"
694 },
695 {
696 "id": "F2-rust-N046",
697 "name": "where-clause",
698 "status": 69,
699 "reason": "where clause",
700 "sha256": "92371bc0077dc4002766b89a5a5163ea35d0ae06f3b6279893f084a82b5ccf91",
701 "source": "pub fn calc(a: u64) -> u64 where u64: Copy { a }\n"
702 },
703 {
704 "id": "F2-rust-N047",
705 "name": "const-fn",
706 "status": 69,
707 "reason": "const fn",
708 "sha256": "e7096942f368c7d97bc39cf671d8107073df60e1e417ddc4a7fb2b86bcd3dd1c",
709 "source": "pub const fn calc(a: u64) -> u64 { a }\n"
710 },
711 {
712 "id": "F2-rust-N048",
713 "name": "extern-fn",
714 "status": 69,
715 "reason": "extern ABI",
716 "sha256": "95b4e592be71a33d9ddf5405102f63a61fa0b1322add358b6e4a9f1ee6db1b9f",
717 "source": "pub extern \"C\" fn calc(a: u64) -> u64 { a }\n"
718 },
719 {
720 "id": "F2-rust-N049",
721 "name": "async-fn",
722 "status": 69,
723 "reason": "async fn",
724 "sha256": "8d1822ccd7dad0fd36c1c4c7dd807ebfd881f92b584a5d84cb9a0bf756d7649f",
725 "source": "pub async fn calc(a: u64) -> u64 { a }\n"
726 },
727 {
728 "id": "F2-rust-N050",
729 "name": "pub-crate",
730 "status": 69,
731 "reason": "restricted visibility",
732 "sha256": "9bdcc82dbbc380a7f244cb0c0e49aa966c867d1867a76c1d7754bad85717078c",
733 "source": "pub(crate) fn calc(a: u64) -> u64 { a }\n"
734 },
735 {
736 "id": "F2-rust-N051",
737 "name": "let",
738 "status": 69,
739 "reason": "let statement",
740 "sha256": "090fb19f34d3b5054f0e840f8a3315b7e93bada1c9ea547397919a07cf9c572d",
741 "source": "pub fn calc(a: u64, b: u64) -> u64 { let x = a; x }\n"
742 },
743 {
744 "id": "F2-rust-N052",
745 "name": "return-tail",
746 "status": 69,
747 "reason": "return: the body is exactly one tail expression",
748 "sha256": "40aa1eaeea48cde175192f82fa7e0d940d20d9677ab165997b40fca2a6b082e3",
749 "source": "pub fn calc(a: u64, b: u64) -> u64 { return a; }\n"
750 },
751 {
752 "id": "F2-rust-N053",
753 "name": "return-expr",
754 "status": 69,
755 "reason": "return expression",
756 "sha256": "b5d57fdc761f95f1c17ea4eb37dff2768fc30a40d5896aad8b18af0075676bfc",
757 "source": "pub fn calc(a: u64, b: u64) -> u64 { return a }\n"
758 },
759 {
760 "id": "F2-rust-N054",
761 "name": "statement",
762 "status": 69,
763 "reason": "statement instead of tail expression",
764 "sha256": "d1c6a11eba45e9974eee3e04b11ccec10825947bc33a580b8de9bbca569ee686",
765 "source": "pub fn calc(a: u64, b: u64) -> u64 { a; }\n"
766 },
767 {
768 "id": "F2-rust-N055",
769 "name": "nested-fn",
770 "status": 69,
771 "reason": "nested fn item",
772 "sha256": "8cbc96aa81a129546bb1f3dc6f6c6f43a528cba0c7c62e85acbfc9822fb452f3",
773 "source": "pub fn calc(a: u64, b: u64) -> u64 { fn g() -> u64 { 1u64 } a }\n"
774 },
775 {
776 "id": "F2-rust-N056",
777 "name": "use",
778 "status": 69,
779 "reason": "use declaration",
780 "sha256": "04834cb01bd93a4e78c23304f255b9e276dfedc3c9d221234e466ed7e70397c9",
781 "source": "use std::num::Wrapping;\npub fn calc(a: u64) -> u64 { a }\n"
782 },
783 {
784 "id": "F2-rust-N057",
785 "name": "macro",
786 "status": 69,
787 "reason": "macro invocation",
788 "sha256": "65c2b0ca60ec5bcb4c99eb760d9504bbbfba1c789ef01d5a92445084e645fdb6",
789 "source": "pub fn calc(a: u64, b: u64) -> u64 { println!(\"x\") }\n"
790 },
791 {
792 "id": "F2-rust-N058",
793 "name": "param-macro",
794 "status": 69,
795 "reason": "macro-like invocation after parameter",
796 "sha256": "768ae8656663e5ed129dff138083fc2800d6adcf0b4a07142518125cbde649f6",
797 "source": "pub fn calc(a: u64, b: u64) -> u64 { a!() }\n"
798 },
799 {
800 "id": "F2-rust-N059",
801 "name": "if",
802 "status": 69,
803 "reason": "control flow",
804 "sha256": "b99048c289e0f5e61e8011aa05fd2dc77b7f9dff9d0416c4a771536fbb6c446c",
805 "source": "pub fn calc(a: u64, b: u64) -> u64 { if a == b { a } else { b } }\n"
806 },
807 {
808 "id": "F2-rust-N060",
809 "name": "loop",
810 "status": 69,
811 "reason": "control flow",
812 "sha256": "9d6d86bf2b1befc7cc57fb11d5b9a148f2e7bd2743617978692bb1bcb892e8ff",
813 "source": "pub fn calc(a: u64, b: u64) -> u64 { loop { } }\n"
814 },
815 {
816 "id": "F2-rust-N061",
817 "name": "block-expr",
818 "status": 69,
819 "reason": "nested block expression",
820 "sha256": "155302e2d05eb9ac99eb6c07b62188f5e492a2639a4b0b85dce4e6fe62ea0409",
821 "source": "pub fn calc(a: u64, b: u64) -> u64 { { a } }\n"
822 },
823 {
824 "id": "F2-rust-N062",
825 "name": "turbofish",
826 "status": 69,
827 "reason": "turbofish",
828 "sha256": "3decb787e8bd9c1947e93e36f9e656fbe770bf7e243e3d54cf5fdf2be8fef1ed",
829 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add::<u64>(b) }\n"
830 },
831 {
832 "id": "F2-rust-N063",
833 "name": "field",
834 "status": 69,
835 "reason": "method path without call",
836 "sha256": "fc8d7364d840d3eed0156e0aec76fbd7dd4a2767280017ad600e4b7c34af80bc",
837 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add }\n"
838 },
839 {
840 "id": "F2-rust-N064",
841 "name": "qualified-turbofish",
842 "status": 69,
843 "reason": "turbofish",
844 "sha256": "5cd15c8fc708f51be2a87ed0b4e7735b152f0f85e66ce0461f590fefdea6b058",
845 "source": "pub fn calc(a: u64, b: u64) -> u64 { u64::wrapping_add::<>(a, b) }\n"
846 },
847 {
848 "id": "F2-rust-N065",
849 "name": "angle-qualified",
850 "status": 69,
851 "reason": "qualified path syntax",
852 "sha256": "a240caa2f4af1d58486d5d8d56a9e5ebe8e9836bcf6abb026ed13ca133572428",
853 "source": "pub fn calc(a: u64, b: u64) -> u64 { <u64>::wrapping_add(a, b) }\n"
854 },
855 {
856 "id": "F2-rust-N066",
857 "name": "second-item",
858 "status": 69,
859 "reason": "additional item",
860 "sha256": "ef14816358f392f440940a64a0ba541631d98faf62bd682bcdf84bdafc623b31",
861 "source": "pub fn calc(a: u64) -> u64 { a }\nfn main() {}\n"
862 },
863 {
864 "id": "F2-rust-N067",
865 "name": "non-ascii-identifier",
866 "status": 69,
867 "reason": "non-ASCII outside comments",
868 "sha256": "918424c605a25982a594bf54a662c4d968c64452022302b5eeaf4141bfdfb2a3",
869 "source": "pub fn calc(é: u64) -> u64 { é }\n"
870 },
871 {
872 "id": "F2-rust-N068",
873 "name": "closure",
874 "status": 69,
875 "reason": "closure",
876 "sha256": "83ac7b429293e4cbfed325fccfdfe4a327ab4433ca187076005d9f179a4189b2",
877 "source": "pub fn calc(a: u64, b: u64) -> u64 { |x| x }\n"
878 },
879 {
880 "id": "F2-rust-N069",
881 "name": "reference-param",
882 "status": 69,
883 "reason": "reference",
884 "sha256": "5f9f13beb92feb6c876d2855d7a970ee3cddc27e1da2f88e35b9aea921d529a4",
885 "source": "pub fn calc(a: u64) -> u64 { &a }\n"
886 },
887 {
888 "id": "F2-rust-N070",
889 "name": "tuple-pattern",
890 "status": 69,
891 "reason": "pattern parameter",
892 "sha256": "9ba6d5afd74e9d0c39a6af93ff711783731d83dc8caaa4fa69722f3db7885d25",
893 "source": "pub fn calc((a, b): (u64, u64)) -> u64 { a }\n"
894 },
895 {
896 "id": "F2-rust-N071",
897 "name": "i64-param",
898 "status": 66,
899 "reason": "i64",
900 "sha256": "aef9630e482bc9dbf98ceedf16d6032929a93e618c76b0878928b736bda4307c",
901 "source": "pub fn calc(a: i64) -> u64 { a }\n"
902 },
903 {
904 "id": "F2-rust-N072",
905 "name": "usize-param",
906 "status": 66,
907 "reason": "usize",
908 "sha256": "9ddbcfda37f152d85f84f76481681c05ef032fcc0e7ca217f94e48ddfa307172",
909 "source": "pub fn calc(a: usize) -> u64 { a }\n"
910 },
911 {
912 "id": "F2-rust-N073",
913 "name": "i64-return",
914 "status": 66,
915 "reason": "i64 return",
916 "sha256": "975a67aa86dcfa87b7958927d169a7f854f98911a2828c4bd6137512bcc1da60",
917 "source": "pub fn calc(a: u64) -> i64 { a }\n"
918 },
919 {
920 "id": "F2-rust-N074",
921 "name": "wrapping-type",
922 "status": 66,
923 "reason": "Wrapping<u64>",
924 "sha256": "1fcc695756bc0a1a5a9537b3a33d0318ad41ea6a2da379d71b59f17f20a1799d",
925 "source": "pub fn calc(a: Wrapping<u64>) -> u64 { a }\n"
926 },
927 {
928 "id": "F2-rust-N075",
929 "name": "ref-type",
930 "status": 66,
931 "reason": "reference type",
932 "sha256": "2832c978acb5d7f8c097dfdd8a53f539679d74bb9353ffe4f644c06f8d70fa17",
933 "source": "pub fn calc(a: &u64) -> u64 { a }\n"
934 },
935 {
936 "id": "F2-rust-N076",
937 "name": "i64-qualified",
938 "status": 66,
939 "reason": "i64 path in body",
940 "sha256": "6190c7c0d7b2ccec5512a297abaf75a8d0a72db62224f39f159480198fd16a8c",
941 "source": "pub fn calc(a: u64, b: u64) -> u64 { i64::wrapping_add(a, b) }\n"
942 },
943 {
944 "id": "F2-rust-N077",
945 "name": "usize-qualified",
946 "status": 66,
947 "reason": "usize path in body",
948 "sha256": "7e9302838642886885a79dfb9d06747e97f05f4310f4b7d866b5ffa653f9c0aa",
949 "source": "pub fn calc(a: u64, b: u64) -> u64 { usize::wrapping_add(a, b) }\n"
950 },
951 {
952 "id": "F2-rust-N078",
953 "name": "unknown-input",
954 "status": 70,
955 "reason": "undeclared identifier",
956 "sha256": "f033096f3cfbf71e6d436afe9f7f9ead2321a24f4dd292eeab9bdb3b2548cc98",
957 "source": "pub fn calc(a: u64, b: u64) -> u64 { c }\n"
958 },
959 {
960 "id": "F2-rust-N079",
961 "name": "unknown-path",
962 "status": 70,
963 "reason": "undeclared path root",
964 "sha256": "cd24ff4f49dd870130f1742e9bff488c788f7b4b94120936de41c6e5e199bde2",
965 "source": "pub fn calc(a: u64, b: u64) -> u64 { std::u64::MAX }\n"
966 },
967 {
968 "id": "F2-rust-N080",
969 "name": "no-return-type",
970 "status": 71,
971 "reason": "missing -> u64",
972 "sha256": "f3c7a3764fc72bd97d3a6761f1be2376a0c3eb845886bf5250b09101bdcd39f8",
973 "source": "pub fn calc(a: u64) { a }\n"
974 },
975 {
976 "id": "F2-rust-N081",
977 "name": "other-name",
978 "status": 71,
979 "reason": "entry name is calc or omega_*",
980 "sha256": "4a01447be39aac7ca2e0eb39dc530da30ad05581447321dec569d47ac6ba623c",
981 "source": "pub fn foo(a: u64) -> u64 { a }\n"
982 },
983 {
984 "id": "F2-rust-N082",
985 "name": "main-name",
986 "status": 71,
987 "reason": "main reserved",
988 "sha256": "d978e3355fa5282797a26b9b0e0400d73c57ebd87fd98a3bd1df2cf030d4ca79",
989 "source": "pub fn main() -> u64 { 1u64 }\n"
990 },
991 {
992 "id": "F2-rust-N083",
993 "name": "omega-bare",
994 "status": 71,
995 "reason": "omega_ needs a following character",
996 "sha256": "edd3d069a8fea2b736985753ae4f772fd9ef255cd2486c05293e64a8ba5e0ce7",
997 "source": "pub fn omega_() -> u64 { 1u64 }\n"
998 },
999 {
1000 "id": "F2-rust-N084",
1001 "name": "uppercase-name",
1002 "status": 71,
1003 "reason": "names start lowercase",
1004 "sha256": "f59812341cbbe9fa3aed5fafe4324b1615a0ffe13ed17c5bef25f8e685848b12",
1005 "source": "pub fn Calc() -> u64 { 1u64 }\n"
1006 },
1007 {
1008 "id": "F2-rust-N085",
1009 "name": "mut-param",
1010 "status": 71,
1011 "reason": "mut binding",
1012 "sha256": "4b83154f14f8bc47d60f4ac3678faddd53ceae71a922a2f35fff554ce4d1c8a1",
1013 "source": "pub fn calc(mut a: u64) -> u64 { a }\n"
1014 },
1015 {
1016 "id": "F2-rust-N086",
1017 "name": "duplicate-param",
1018 "status": 71,
1019 "reason": "duplicate parameter",
1020 "sha256": "468c52fc5885265df6c2af3c42e69b98af7d96ac59cbc4a90e183fb7059cafad",
1021 "source": "pub fn calc(a: u64, a: u64) -> u64 { a }\n"
1022 },
1023 {
1024 "id": "F2-rust-N087",
1025 "name": "keyword-param",
1026 "status": 71,
1027 "reason": "keyword as parameter",
1028 "sha256": "b170dcb7a01c9bc4a3e3873bb8817909d85d23aec3a4b0a9bca049dcbb8c2aeb",
1029 "source": "pub fn calc(self) -> u64 { 1u64 }\n"
1030 },
1031 {
1032 "id": "F2-rust-N088",
1033 "name": "prim-param",
1034 "status": 71,
1035 "reason": "primitive type name as parameter",
1036 "sha256": "89dc80e6c06d51a0ab344d94f3b49bf615ef7d9ef30c9820f44affe0fbfddde2",
1037 "source": "pub fn calc(u8: u64) -> u64 { u8 }\n"
1038 },
1039 {
1040 "id": "F2-rust-N089",
1041 "name": "long-identifier",
1042 "status": 71,
1043 "reason": "identifier longer than 32 bytes",
1044 "sha256": "ebf563744f561375e33106dccf41343a94c564c2cb40956d4b92695e786488f4",
1045 "source": "pub fn calc(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa: u64) -> u64 { 1u64 }\n"
1046 },
1047 {
1048 "id": "F2-rust-N090",
1049 "name": "trailing-comma-call",
1050 "status": 65,
1051 "reason": "trailing comma in call (one spelling)",
1052 "sha256": "45887adfc8ce30db375246a9e5389c2d896930f4770bc5cb8e1534021f443a5b",
1053 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(b,) }\n"
1054 },
1055 {
1056 "id": "F2-rust-N091",
1057 "name": "trailing-comma-param",
1058 "status": 65,
1059 "reason": "trailing comma in parameters",
1060 "sha256": "de2f292ddefa4d3309b19dc3945f81c66a7f742c124a4b1a6bab6e8edcc7eb1e",
1061 "source": "pub fn calc(a: u64, b: u64,) -> u64 { a }\n"
1062 },
1063 {
1064 "id": "F2-rust-N092",
1065 "name": "extra-arg",
1066 "status": 65,
1067 "reason": "two arguments to a method",
1068 "sha256": "c04469a8a4c90304d4c3c1c8c777878bb1eff67ce93bae46cd7b6dfbe3cfe2af",
1069 "source": "pub fn calc(a: u64, b: u64) -> u64 { a.wrapping_add(b, a) }\n"
1070 },
1071 {
1072 "id": "F2-rust-N093",
1073 "name": "qualified-one-arg",
1074 "status": 65,
1075 "reason": "one argument to the qualified form",
1076 "sha256": "11d48782870b5cc4365f59661dc823e486e29928d0686ada8980a6ebfe9c4779",
1077 "source": "pub fn calc(a: u64, b: u64) -> u64 { u64::wrapping_add(a) }\n"
1078 },
1079 {
1080 "id": "F2-rust-N094",
1081 "name": "empty-body",
1082 "status": 65,
1083 "reason": "no tail expression",
1084 "sha256": "0a82ed691b5633585b3c50633a4199b2145e4dd5be376f08ffa6fb83473827fd",
1085 "source": "pub fn calc(a: u64, b: u64) -> u64 { }\n"
1086 },
1087 {
1088 "id": "F2-rust-N095",
1089 "name": "spaced-path",
1090 "status": 69,
1091 "reason": "path separator must be one token",
1092 "sha256": "9cc7cb7b00d533ab8dd0d4f055c2d1c895ad924323456e8780f63971ce32f62c",
1093 "source": "pub fn calc(a: u64, b: u64) -> u64 { u64: :wrapping_add(a, b) }\n"
1094 },
1095 {
1096 "id": "F2-rust-N096",
1097 "name": "unterminated-comment",
1098 "status": 65,
1099 "reason": "unterminated block comment",
1100 "sha256": "d9ba697e840bd87bd57e52749e7271d551147803f47b97b2af1e4de65990cf25",
1101 "source": "pub fn calc(a: u64) -> u64 { a } /* open"
1102 },
1103 {
1104 "id": "F2-rust-N097",
1105 "name": "unterminated-nested-comment",
1106 "status": 65,
1107 "reason": "Rust block comments nest",
1108 "sha256": "ef3f8846080691429b6a06a25c16d913be7db7b324a154779973fe4713b27e40",
1109 "source": "pub fn calc(a: u64) -> u64 { a } /* x /* y */"
1110 },
1111 {
1112 "id": "F2-rust-N098",
1113 "name": "nul",
1114 "status": 65,
1115 "reason": "NUL byte",
1116 "sha256": "fb113c1d997f4f63fcf52e23723cd334736325be8e77ced3bff024b0c8ad9e98",
1117 "source_hex": "70756220666e2063616c6328613a2075363429202d3e20753634207b2061207d00"
1118 },
1119 {
1120 "id": "F2-rust-N099",
1121 "name": "doc-line",
1122 "status": 72,
1123 "reason": "doc comment (attribute sugar)",
1124 "sha256": "e187210777cb8c27bef2b3f2776f1f6fa6fc00a474fa6ee5ba7f2b3992af943f",
1125 "source": "/// doc\npub fn calc(a: u64) -> u64 { a }\n"
1126 },
1127 {
1128 "id": "F2-rust-N100",
1129 "name": "doc-inner-line",
1130 "status": 72,
1131 "reason": "inner doc comment",
1132 "sha256": "2b607b43b31e30094d4ddc2a49d13470720f87fdacc1d6dd7e5317ae4ab9889a",
1133 "source": "//! doc\npub fn calc(a: u64) -> u64 { a }\n"
1134 },
1135 {
1136 "id": "F2-rust-N101",
1137 "name": "doc-block",
1138 "status": 72,
1139 "reason": "block doc comment",
1140 "sha256": "6e737d65364e495665d97e685d8cdacb9137bd26ace411b12f15a10b0ea69246",
1141 "source": "/** doc */\npub fn calc(a: u64) -> u64 { a }\n"
1142 },
1143 {
1144 "id": "F2-rust-N102",
1145 "name": "doc-inner-block",
1146 "status": 72,
1147 "reason": "inner block doc comment",
1148 "sha256": "dbe23cd2b5fba13ff6603217e759bbeefeae6fcf2187aea8949c55ec1e770445",
1149 "source": "/*! doc */\npub fn calc(a: u64) -> u64 { a }\n"
1150 },
1151 {
1152 "id": "F2-rust-N103",
1153 "name": "invalid-utf8",
1154 "status": 72,
1155 "reason": "invalid UTF-8",
1156 "sha256": "8c45e4abf00ba7a63f16aaf790682d98d9a82ed9dd9ca1d5331e3a42b53cde9d",
1157 "source_hex": "70756220666e2063616c6328613a2075363429202d3e20753634207b2061207d202f2a20ff202a2f0a"
1158 },
1159 {
1160 "id": "F2-rust-N104",
1161 "name": "overlong-utf8",
1162 "status": 72,
1163 "reason": "overlong UTF-8",
1164 "sha256": "8c2572db31222fff81e70f7845f0a6ae45f20ba90fbe2f7476f53799932cbaf9",
1165 "source_hex": "70756220666e2063616c6328613a2075363429202d3e20753634207b2061207d202f2f20c0af0a"
1166 },
1167 {
1168 "id": "F2-rust-N105",
1169 "name": "surrogate-utf8",
1170 "status": 72,
1171 "reason": "UTF-16 surrogate in UTF-8",
1172 "sha256": "0e7f08d1c3a40a2759c487a728791566ee6c8320b46da15e49ce33e01bb26cdb",
1173 "source_hex": "70756220666e2063616c6328613a2075363429202d3e20753634207b2061207d202f2f20eda0800a"
1174 },
1175 {
1176 "id": "F2-rust-N106",
1177 "name": "above-max-utf8",
1178 "status": 72,
1179 "reason": "above U+10FFFF",
1180 "sha256": "152eb6e918eae643c658c6ba73ecde8507b43653fe18f50fdb7d8ba9825e908b",
1181 "source_hex": "70756220666e2063616c6328613a2075363429202d3e20753634207b2061207d202f2f20f49080800a"
1182 },
1183 {
1184 "id": "F2-rust-N107",
1185 "name": "truncated-utf8",
1186 "status": 72,
1187 "reason": "truncated UTF-8",
1188 "sha256": "5341f41acf138a7152dcc26273893e7fdc1e2b613d17e6b53af0dce4414668b4",
1189 "source_hex": "70756220666e2063616c6328613a2075363429202d3e20753634207b2061207d202f2f20e282"
1190 },
1191 {
1192 "id": "F2-rust-N108",
1193 "name": "bom",
1194 "status": 72,
1195 "reason": "byte-order mark",
1196 "sha256": "7c709b57c95440585d9afabd2d18cb5975eea242a10156d35f97e6043db21eeb",
1197 "source": "pub fn calc(a: u64) -> u64 { a }\n"
1198 }
1199 ]
1200}