File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,9 @@ pub enum DepNode<D: Clone + Debug> {
154
154
DefSpan ( D ) ,
155
155
Stability ( D ) ,
156
156
Deprecation ( D ) ,
157
+ ItemBodyNestedBodies ( D ) ,
158
+ ConstIsRvaluePromotableToStatic ( D ) ,
159
+ IsMirAvailable ( D ) ,
157
160
}
158
161
159
162
impl < D : Clone + Debug > DepNode < D > {
@@ -264,6 +267,9 @@ impl<D: Clone + Debug> DepNode<D> {
264
267
DefSpan ( ref d) => op ( d) . map ( DefSpan ) ,
265
268
Stability ( ref d) => op ( d) . map ( Stability ) ,
266
269
Deprecation ( ref d) => op ( d) . map ( Deprecation ) ,
270
+ ItemBodyNestedBodies ( ref d) => op ( d) . map ( ItemBodyNestedBodies ) ,
271
+ ConstIsRvaluePromotableToStatic ( ref d) => op ( d) . map ( ConstIsRvaluePromotableToStatic ) ,
272
+ IsMirAvailable ( ref d) => op ( d) . map ( IsMirAvailable ) ,
267
273
}
268
274
}
269
275
}
Original file line number Diff line number Diff line change @@ -783,9 +783,9 @@ define_maps! { <'tcx>
783
783
[ ] def_span: DefSpan ( DefId ) -> Span ,
784
784
[ ] stability: Stability ( DefId ) -> Option <attr:: Stability >,
785
785
[ ] deprecation: Deprecation ( DefId ) -> Option <attr:: Deprecation >,
786
- [ ] item_body_nested_bodies: metadata_dep_node ( DefId ) -> Rc <BTreeMap <hir:: BodyId , hir:: Body >>,
787
- [ ] const_is_rvalue_promotable_to_static: metadata_dep_node ( DefId ) -> bool ,
788
- [ ] is_mir_available: metadata_dep_node ( DefId ) -> bool ,
786
+ [ ] item_body_nested_bodies: ItemBodyNestedBodies ( DefId ) -> Rc <BTreeMap <hir:: BodyId , hir:: Body >>,
787
+ [ ] const_is_rvalue_promotable_to_static: ConstIsRvaluePromotableToStatic ( DefId ) -> bool ,
788
+ [ ] is_mir_available: IsMirAvailable ( DefId ) -> bool ,
789
789
}
790
790
791
791
fn coherent_trait_dep_node ( ( _, def_id) : ( CrateNum , DefId ) ) -> DepNode < DefId > {
@@ -800,10 +800,6 @@ fn reachability_dep_node(_: CrateNum) -> DepNode<DefId> {
800
800
DepNode :: Reachability
801
801
}
802
802
803
- fn metadata_dep_node ( def_id : DefId ) -> DepNode < DefId > {
804
- DepNode :: MetaData ( def_id)
805
- }
806
-
807
803
fn mir_shim_dep_node ( instance : ty:: InstanceDef ) -> DepNode < DefId > {
808
804
instance. dep_node ( )
809
805
}
You can’t perform that action at this time.
0 commit comments