Skip to content

Commit 6a136f6

Browse files
committed
Auto merge of #45364 - nikomatsakis:issue-44137-anon, r=michaelwoerister
make `erase_regions_ty` query anonymous r? @michaelwoerister
2 parents 6511b4f + b5e2451 commit 6a136f6

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)