Commit 0a0734e
committed
Auto merge of #66820 - dtolnay:fmt3, r=Dylan-DPC
Format libstd with rustfmt
(Same strategy as #66691.)
This commit applies rustfmt with rust-lang/rust's default settings to files in src/libstd *that are not involved in any currently open PR* to minimize merge conflicts, and are not part of libstd/os (#66818) or libstd/sys (#66819). The list of files involved in open PRs was determined by querying GitHub's GraphQL API [with this script](https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8).
With the list of files from the script in outstanding_files, the relevant commands were:
$ find src/libstd -name '*.rs' \
| xargs rustfmt --edition=2018 --unstable-features --skip-children
$ rg libstd outstanding_files | xargs git checkout --
Repeating this process several months apart should get us coverage of most of the rest of libstd.
To confirm no funny business:
$ git checkout $THIS_COMMIT^
$ git show --pretty= --name-only $THIS_COMMIT \
| xargs rustfmt --edition=2018 --unstable-features --skip-children
$ git diff $THIS_COMMIT # there should be no differenceFile tree
50 files changed
+2889
-2637
lines changed- src
- libstd
- benches/hash
- collections
- ffi
- io
- net
- prelude
- sync
- mpsc
- sys_common
- tests
- thread
- test/ui/issues
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
50 files changed
+2889
-2637
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | | - | |
101 | 100 | | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | 416 | | |
421 | 417 | | |
422 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| |||
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
| 197 | + | |
200 | 198 | | |
201 | 199 | | |
202 | 200 | | |
| |||
277 | 275 | | |
278 | 276 | | |
279 | 277 | | |
280 | | - | |
| 278 | + | |
281 | 279 | | |
282 | 280 | | |
283 | 281 | | |
| |||
310 | 308 | | |
311 | 309 | | |
312 | 310 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
| 311 | + | |
318 | 312 | | |
319 | 313 | | |
320 | | - | |
321 | 314 | | |
322 | 315 | | |
323 | 316 | | |
| |||
383 | 376 | | |
384 | 377 | | |
385 | 378 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
| 379 | + | |
391 | 380 | | |
392 | 381 | | |
393 | 382 | | |
| |||
486 | 475 | | |
487 | 476 | | |
488 | 477 | | |
489 | | - | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
490 | 481 | | |
491 | 482 | | |
492 | 483 | | |
| |||
559 | 550 | | |
560 | 551 | | |
561 | 552 | | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
570 | 563 | | |
571 | 564 | | |
572 | 565 | | |
| |||
967 | 960 | | |
968 | 961 | | |
969 | 962 | | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
| 963 | + | |
975 | 964 | | |
976 | 965 | | |
977 | 966 | | |
| |||
1022 | 1011 | | |
1023 | 1012 | | |
1024 | 1013 | | |
1025 | | - | |
1026 | | - | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
1027 | 1020 | | |
1028 | 1021 | | |
1029 | | - | |
1030 | 1022 | | |
1031 | 1023 | | |
1032 | 1024 | | |
1033 | 1025 | | |
1034 | 1026 | | |
1035 | 1027 | | |
1036 | | - | |
1037 | 1028 | | |
| 1029 | + | |
1038 | 1030 | | |
1039 | 1031 | | |
1040 | 1032 | | |
| |||
1279 | 1271 | | |
1280 | 1272 | | |
1281 | 1273 | | |
1282 | | - | |
| 1274 | + | |
1283 | 1275 | | |
1284 | 1276 | | |
1285 | 1277 | | |
| |||
1291 | 1283 | | |
1292 | 1284 | | |
1293 | 1285 | | |
1294 | | - | |
| 1286 | + | |
1295 | 1287 | | |
1296 | 1288 | | |
1297 | 1289 | | |
| |||
1303 | 1295 | | |
1304 | 1296 | | |
1305 | 1297 | | |
1306 | | - | |
| 1298 | + | |
1307 | 1299 | | |
1308 | 1300 | | |
1309 | 1301 | | |
| |||
1316 | 1308 | | |
1317 | 1309 | | |
1318 | 1310 | | |
1319 | | - | |
| 1311 | + | |
1320 | 1312 | | |
1321 | 1313 | | |
1322 | 1314 | | |
| |||
0 commit comments