Repository navigation
Commit 64a8aa5
authored
Rollup merge of #164607 - mejrs:lint_name, r=JonathanBrouwer
destringlyfy lint infrastructure
Currently, lints are passed as strings and parsed/split/reformatted/compared/etc in many many places. It's not always clear whether that string includes the tool or not.
Instead, they are passed around as:
```rust
pub struct LintName {
pub tool: Option<Symbol>,
pub name: Symbol,
}
```
r? @JonathanBrouwer30 files changed
Lines changed: 424 additions & 396 deletions
File tree
- compiler
- rustc_attr_ir/src
- rustc_attr_parsing/src/attributes
- rustc_driver_impl/src
- rustc_lint/src
- rustc_middle/src
- rustc_passes/src
- rustc_session/src
- rustc_span/src
- rustc_structures/src
- src/tools/clippy
- clippy_lints/src
- cargo
- returns
- clippy_utils/src
- tests/ui
- tests
- pretty
- delegation
- ui
- eii
- unpretty
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 48 | + | |
61 | 49 | | |
62 | 50 | | |
63 | 51 | | |
| |||
68 | 56 | | |
69 | 57 | | |
70 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
71 | 65 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
223 | 225 | | |
224 | 226 | | |
225 | 227 | | |
| 228 | + | |
226 | 229 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
82 | 70 | | |
83 | 71 | | |
84 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
993 | | - | |
994 | | - | |
995 | | - | |
| 993 | + | |
996 | 994 | | |
997 | | - | |
| 995 | + | |
998 | 996 | | |
999 | 997 | | |
1000 | 998 | | |
| |||
1041 | 1039 | | |
1042 | 1040 | | |
1043 | 1041 | | |
1044 | | - | |
| 1042 | + | |
1045 | 1043 | | |
1046 | 1044 | | |
1047 | 1045 | | |
| |||
1054 | 1052 | | |
1055 | 1053 | | |
1056 | 1054 | | |
1057 | | - | |
| 1055 | + | |
1058 | 1056 | | |
1059 | 1057 | | |
1060 | 1058 | | |
| |||
1063 | 1061 | | |
1064 | 1062 | | |
1065 | 1063 | | |
1066 | | - | |
| 1064 | + | |
1067 | 1065 | | |
1068 | 1066 | | |
1069 | 1067 | | |
| |||
0 commit comments