-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit 1f108fe
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.1 parent 8608a3f commit 1f108fe
File tree
4 files changed
+5
-5
lines changed- compiler
- rustc_lint_defs/src
- rustc_lint/src
- src/tools/lint-docs/src
4 files changed
+5
-5
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 | |
---|---|---|---|
| |||
449 | 449 |
| |
450 | 450 |
| |
451 | 451 |
| |
452 | - | ||
452 | + | ||
453 | 453 |
| |
454 | 454 |
| |
455 | 455 |
| |
|
0 commit comments