Skip to content

Commit b5e2451

Browse files
committed
make erase_regions_ty query anonymous
1 parent 7a4f394 commit b5e2451

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/librustc/dep_graph/dep_node.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,14 @@ define_dep_nodes!( <'tcx>
610610
[] PostorderCnums,
611611
[] HasCloneClosures(CrateNum),
612612
[] HasCopyClosures(CrateNum),
613-
[] EraseRegionsTy { ty: Ty<'tcx> },
613+
614+
// This query is not expected to have inputs -- as a result, it's
615+
// not a good candidate for "replay" because it's essentially a
616+
// pure function of its input (and hence the expectation is that
617+
// no caller would be green **apart** from just this
618+
// query). Making it anonymous avoids hashing the result, which
619+
// may save a bit of time.
620+
[anon] EraseRegionsTy { ty: Ty<'tcx> },
614621

615622
[] Freevars(DefId),
616623
[] MaybeUnusedTraitImport(DefId),

0 commit comments

Comments
 (0)