-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit c006eb7
authored
Rollup merge of #140348 - ehuss:lint-docs-edition, r=compiler-errors
Update lint-docs to default to Rust 2024
This updates the lint-docs tool to default to the 2024 edition. The lint docs are supposed to illustrate the code with the latest edition, and I just forgot to update this in #133349.
Some docs needed to add the `edition` attribute since they were assuming a particular edition, but were missing the explicit annotation.
This also includes a commit to simplify the edition handling in lint-docs.File tree
4 files changed
+12
-18
lines changed- compiler
- rustc_lint_defs/src
- rustc_lint/src
- src/tools/lint-docs/src
4 files changed
+12
-18
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
948 | 948 |
| |
949 | 949 |
| |
950 | 950 |
| |
951 | - | ||
951 | + | ||
952 | 952 |
| |
953 | 953 |
| |
954 | 954 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 | - | ||
44 | + | ||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1424 | 1424 |
| |
1425 | 1425 |
| |
1426 | 1426 |
| |
1427 | - | ||
1427 | + | ||
1428 | 1428 |
| |
1429 | 1429 |
| |
1430 | 1430 |
| |
| |||
4128 | 4128 |
| |
4129 | 4129 |
| |
4130 | 4130 |
| |
4131 | - | ||
4131 | + | ||
4132 | 4132 |
| |
4133 | 4133 |
| |
4134 | 4134 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
444 | 444 |
| |
445 | 445 |
| |
446 | 446 |
| |
447 | - | ||
448 | - | ||
449 | - | ||
450 | - | ||
451 | - | ||
452 | - | ||
453 | - | ||
454 | - | ||
455 | - | ||
456 | - | ||
457 | - | ||
458 | - | ||
447 | + | ||
448 | + | ||
449 | + | ||
450 | + | ||
459 | 451 |
| |
460 | - | ||
461 | - | ||
452 | + | ||
453 | + | ||
454 | + | ||
455 | + | ||
462 | 456 |
| |
463 | 457 |
| |
464 | 458 |
| |
|
0 commit comments