Commit 574f77f
Merge #351
351: Cleanup defmt tags r=japaric a=jonas-schievink
This adds a `write` tag to identify format strings from user-defined `write!` invocations, and splits up the `fmt` tag into `prim` for primitives, and `derived` for `#[derive(Format)]`-generated strings. This allows tools to distinguish user-controlled format strings from generated ones.
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>3 files changed
Lines changed: 18 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
1349 | 1351 | | |
1350 | 1352 | | |
1351 | 1353 | | |
1352 | | - | |
| 1354 | + | |
1353 | 1355 | | |
1354 | 1356 | | |
1355 | 1357 | | |
| |||
1391 | 1393 | | |
1392 | 1394 | | |
1393 | 1395 | | |
1394 | | - | |
| 1396 | + | |
1395 | 1397 | | |
1396 | 1398 | | |
1397 | 1399 | | |
| |||
1544 | 1546 | | |
1545 | 1547 | | |
1546 | 1548 | | |
1547 | | - | |
| 1549 | + | |
1548 | 1550 | | |
1549 | 1551 | | |
1550 | 1552 | | |
| |||
1826 | 1828 | | |
1827 | 1829 | | |
1828 | 1830 | | |
1829 | | - | |
| 1831 | + | |
1830 | 1832 | | |
1831 | 1833 | | |
1832 | 1834 | | |
1833 | | - | |
| 1835 | + | |
1834 | 1836 | | |
1835 | 1837 | | |
1836 | 1838 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| |||
1023 | 1023 | | |
1024 | 1024 | | |
1025 | 1025 | | |
1026 | | - | |
1027 | | - | |
| 1026 | + | |
1028 | 1027 | | |
1029 | 1028 | | |
1030 | 1029 | | |
| |||
0 commit comments