@@ -56,30 +56,15 @@ pub enum DepNode<D: Clone + Debug> {
56
56
WorkProduct ( Arc < WorkProductId > ) ,
57
57
58
58
// Represents different phases in the compiler.
59
- CollectLanguageItems ,
60
- ResolveLifetimes ,
61
59
RegionResolveCrate ,
62
- PluginRegistrar ,
63
- StabilityIndex ,
64
- CollectItem ( D ) ,
65
- CollectItemSig ( D ) ,
66
60
Coherence ,
67
61
Resolve ,
68
- EntryPoint ,
69
- CheckEntryFn ,
70
62
CoherenceCheckTrait ( D ) ,
71
63
CoherenceCheckImpl ( D ) ,
72
64
CoherenceOverlapCheck ( D ) ,
73
65
CoherenceOverlapCheckSpecial ( D ) ,
74
- CoherenceOrphanCheck ( D ) ,
75
66
Variance ,
76
- WfCheck ( D ) ,
77
- TypeckItemType ( D ) ,
78
- UnusedTraitCheck ,
79
- CheckConst ( D ) ,
80
67
PrivacyAccessLevels ( CrateNum ) ,
81
- IntrinsicCheck ( D ) ,
82
- MatchCheck ( D ) ,
83
68
84
69
// Represents the MIR for a fn; also used as the task node for
85
70
// things read/modify that MIR.
@@ -91,14 +76,10 @@ pub enum DepNode<D: Clone + Debug> {
91
76
BorrowCheck ( D ) ,
92
77
RvalueCheck ( D ) ,
93
78
Reachability ,
94
- DeadCheck ,
95
- StabilityCheck ( D ) ,
96
79
LateLintCheck ,
97
- TransCrate ,
98
80
TransCrateItem ( D ) ,
99
81
TransInlinedItem ( D ) ,
100
82
TransWriteMetadata ,
101
- LinkBinary ,
102
83
103
84
// Nodes representing bits of computed IR in the tcx. Each shared
104
85
// table in the tcx (or elsewhere) maps to one of these
@@ -184,12 +165,10 @@ impl<D: Clone + Debug> DepNode<D> {
184
165
}
185
166
186
167
check ! {
187
- CollectItem ,
188
168
BorrowCheck ,
189
169
Hir ,
190
170
HirBody ,
191
171
TransCrateItem ,
192
- TypeckItemType ,
193
172
AssociatedItems ,
194
173
ItemSignature ,
195
174
AssociatedItemDefIds ,
@@ -211,24 +190,14 @@ impl<D: Clone + Debug> DepNode<D> {
211
190
BorrowCheckKrate => Some ( BorrowCheckKrate ) ,
212
191
MirKrate => Some ( MirKrate ) ,
213
192
TypeckBodiesKrate => Some ( TypeckBodiesKrate ) ,
214
- CollectLanguageItems => Some ( CollectLanguageItems ) ,
215
- ResolveLifetimes => Some ( ResolveLifetimes ) ,
216
193
RegionResolveCrate => Some ( RegionResolveCrate ) ,
217
- PluginRegistrar => Some ( PluginRegistrar ) ,
218
- StabilityIndex => Some ( StabilityIndex ) ,
219
194
Coherence => Some ( Coherence ) ,
220
195
Resolve => Some ( Resolve ) ,
221
- EntryPoint => Some ( EntryPoint ) ,
222
- CheckEntryFn => Some ( CheckEntryFn ) ,
223
196
Variance => Some ( Variance ) ,
224
- UnusedTraitCheck => Some ( UnusedTraitCheck ) ,
225
197
PrivacyAccessLevels ( k) => Some ( PrivacyAccessLevels ( k) ) ,
226
198
Reachability => Some ( Reachability ) ,
227
- DeadCheck => Some ( DeadCheck ) ,
228
199
LateLintCheck => Some ( LateLintCheck ) ,
229
- TransCrate => Some ( TransCrate ) ,
230
200
TransWriteMetadata => Some ( TransWriteMetadata ) ,
231
- LinkBinary => Some ( LinkBinary ) ,
232
201
233
202
// work product names do not need to be mapped, because
234
203
// they are always absolute.
@@ -237,26 +206,17 @@ impl<D: Clone + Debug> DepNode<D> {
237
206
Hir ( ref d) => op ( d) . map ( Hir ) ,
238
207
HirBody ( ref d) => op ( d) . map ( HirBody ) ,
239
208
MetaData ( ref d) => op ( d) . map ( MetaData ) ,
240
- CollectItem ( ref d) => op ( d) . map ( CollectItem ) ,
241
- CollectItemSig ( ref d) => op ( d) . map ( CollectItemSig ) ,
242
209
CoherenceCheckTrait ( ref d) => op ( d) . map ( CoherenceCheckTrait ) ,
243
210
CoherenceCheckImpl ( ref d) => op ( d) . map ( CoherenceCheckImpl ) ,
244
211
CoherenceOverlapCheck ( ref d) => op ( d) . map ( CoherenceOverlapCheck ) ,
245
212
CoherenceOverlapCheckSpecial ( ref d) => op ( d) . map ( CoherenceOverlapCheckSpecial ) ,
246
- CoherenceOrphanCheck ( ref d) => op ( d) . map ( CoherenceOrphanCheck ) ,
247
- WfCheck ( ref d) => op ( d) . map ( WfCheck ) ,
248
- TypeckItemType ( ref d) => op ( d) . map ( TypeckItemType ) ,
249
- CheckConst ( ref d) => op ( d) . map ( CheckConst ) ,
250
- IntrinsicCheck ( ref d) => op ( d) . map ( IntrinsicCheck ) ,
251
- MatchCheck ( ref d) => op ( d) . map ( MatchCheck ) ,
252
213
Mir ( ref d) => op ( d) . map ( Mir ) ,
253
214
MirShim ( ref def_ids) => {
254
215
let def_ids: Option < Vec < E > > = def_ids. iter ( ) . map ( op) . collect ( ) ;
255
216
def_ids. map ( MirShim )
256
217
}
257
218
BorrowCheck ( ref d) => op ( d) . map ( BorrowCheck ) ,
258
219
RvalueCheck ( ref d) => op ( d) . map ( RvalueCheck ) ,
259
- StabilityCheck ( ref d) => op ( d) . map ( StabilityCheck ) ,
260
220
TransCrateItem ( ref d) => op ( d) . map ( TransCrateItem ) ,
261
221
TransInlinedItem ( ref d) => op ( d) . map ( TransInlinedItem ) ,
262
222
AssociatedItems ( ref d) => op ( d) . map ( AssociatedItems ) ,
0 commit comments