Skip to content

Commit ce754ba

Browse files
author
toidiu
committed
add a new dep node for outlives
1 parent fe5cb1a commit ce754ba

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/librustc/dep_graph/dep_node.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ define_dep_nodes!( <'tcx>
476476
[] TypeOfItem(DefId),
477477
[] GenericsOfItem(DefId),
478478
[] PredicatesOfItem(DefId),
479+
[] InferredOutlivesOf(DefId),
479480
[] SuperPredicatesOfItem(DefId),
480481
[] TraitDefOfItem(DefId),
481482
[] AdtDefOfItem(DefId),

src/librustc/ty/maps/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ define_maps! { <'tcx>
122122
[] fn variances_of: ItemVariances(DefId) -> Rc<Vec<ty::Variance>>,
123123

124124
/// Maps from def-id of a type to its (inferred) outlives.
125-
[] fn inferred_outlives_of: PredicatesOfItem(DefId) -> Vec<ty::Predicate<'tcx>>,
125+
[] fn inferred_outlives_of: InferredOutlivesOf(DefId) -> Vec<ty::Predicate<'tcx>>,
126126

127127
/// Maps from an impl/trait def-id to a list of the def-ids of its items
128128
[] fn associated_item_def_ids: AssociatedItemDefIds(DefId) -> Rc<Vec<DefId>>,

src/librustc/ty/maps/plumbing.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@ pub fn force_from_dep_node<'a, 'gcx, 'lcx>(tcx: TyCtxt<'a, 'gcx, 'lcx>,
736736
DepKind::TypeOfItem => { force!(type_of, def_id!()); }
737737
DepKind::GenericsOfItem => { force!(generics_of, def_id!()); }
738738
DepKind::PredicatesOfItem => { force!(predicates_of, def_id!()); }
739+
DepKind::InferredOutlivesOf => { force!(outlives_of, def_id!()); }
739740
DepKind::SuperPredicatesOfItem => { force!(super_predicates_of, def_id!()); }
740741
DepKind::TraitDefOfItem => { force!(trait_def, def_id!()); }
741742
DepKind::AdtDefOfItem => { force!(adt_def, def_id!()); }

0 commit comments

Comments
 (0)