forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 0dcc130
Auto merge of rust-lang#116016 - jhpratt:kill-rustc-serialize, r=ehuss
Soft-destabilize `RustcEncodable` & `RustcDecodable`, remove from prelude in next edition
cc rust-lang/libs-team#272
Any use of `RustcEncodable` and `RustcDecodable` now triggers a deny-by-default lint. The derives have been removed from the 2024 prelude. I specifically chose **not** to document this in the module-level documentation, as the presence in existing preludes is not documented (which I presume is intentional).
This does not implement the proposed change for `rustfix`, which I will be looking into shortly.
With regard to the items in the preludes being stable, this should not be an issue because rust-lang#15702 has been resolved.
r? libs-apiFile tree
8 files changed
+156
-40
lines changed- library
- core/src
- macros
- prelude
- std/src/prelude
- tests
- run-make-fulldeps/pretty-expanded
- ui/feature-gates
8 files changed
+156
-40
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1726 | 1726 |
| |
1727 | 1727 |
| |
1728 | 1728 |
| |
1729 | - | ||
1729 | + | ||
1730 | 1730 |
| |
1731 | - | ||
1732 | - | ||
1731 | + | ||
1732 | + | ||
1733 | + | ||
1734 | + | ||
1735 | + | ||
1736 | + | ||
1733 | 1737 |
| |
1734 | 1738 |
| |
1735 | 1739 |
| |
1736 | 1740 |
| |
1737 | 1741 |
| |
1738 | 1742 |
| |
1739 | - | ||
1743 | + | ||
1740 | 1744 |
| |
1741 | - | ||
1742 | - | ||
1745 | + | ||
1746 | + | ||
1747 | + | ||
1748 | + | ||
1749 | + | ||
1750 | + | ||
1743 | 1751 |
| |
1744 | 1752 |
| |
1745 | 1753 |
| |
|
Lines changed: 1 addition & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | - | ||
6 | - | ||
7 | 5 |
| |
8 | 6 |
| |
9 | 7 |
| |
| |||
68 | 66 |
| |
69 | 67 |
| |
70 | 68 |
| |
71 | - | ||
72 | - | ||
73 | - | ||
74 | - | ||
75 | - | ||
76 | 69 |
| |
77 | 70 |
| |
78 | 71 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | - | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
10 | 29 |
| |
11 | 30 |
| |
12 | 31 |
| |
| |||
46 | 65 |
| |
47 | 66 |
| |
48 | 67 |
| |
49 | - | ||
68 | + | ||
50 | 69 |
| |
51 | 70 |
| |
52 | 71 |
| |
53 | 72 |
| |
54 | - | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
55 | 81 |
| |
56 | - | ||
82 | + | ||
57 | 83 |
| |
58 | 84 |
| |
59 | 85 |
| |
|
Lines changed: 1 addition & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | - | ||
6 | - | ||
7 | 5 |
| |
8 | 6 |
| |
9 | 7 |
| |
| |||
52 | 50 |
| |
53 | 51 |
| |
54 | 52 |
| |
55 | - | ||
56 | - | ||
57 | - | ||
58 | - | ||
59 | - | ||
60 | 53 |
| |
61 | 54 |
| |
62 | 55 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
96 | - | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
114 | + | ||
115 | + | ||
97 | 116 |
| |
98 | 117 |
| |
99 | 118 |
| |
| |||
134 | 153 |
| |
135 | 154 |
| |
136 | 155 |
| |
137 | - | ||
138 | - | ||
139 | - | ||
156 | + | ||
157 | + | ||
140 | 158 |
| |
141 | 159 |
| |
142 | 160 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
2 | - | ||
3 | 1 |
| |
4 | 2 |
| |
5 | - | ||
6 | - | ||
7 | - | ||
8 | - | ||
9 | - | ||
10 | - | ||
11 | - | ||
12 | - | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + |
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + |
Lines changed: 66 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + |
0 commit comments