Skip to content

Commit 3bb25d6

Browse files
incr.comp.: Add some missing DepNode [input] annotations.
1 parent 687e099 commit 3bb25d6

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/librustc/dep_graph/dep_node.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ define_dep_nodes!( <'tcx>
562562
[] IsPanicRuntime(CrateNum),
563563
[] IsCompilerBuiltins(CrateNum),
564564
[] HasGlobalAllocator(CrateNum),
565-
[] ExternCrate(DefId),
565+
[input] ExternCrate(DefId),
566566
[eval_always] LintLevels,
567567
[] Specializes { impl1: DefId, impl2: DefId },
568568
[input] InScopeTraits(DefIndex),
@@ -602,8 +602,8 @@ define_dep_nodes!( <'tcx>
602602
[] MissingLangItems(CrateNum),
603603
[] ExternConstBody(DefId),
604604
[] VisibleParentMap,
605-
[] MissingExternCrateItem(CrateNum),
606-
[] UsedCrateSource(CrateNum),
605+
[input] MissingExternCrateItem(CrateNum),
606+
[input] UsedCrateSource(CrateNum),
607607
[input] PostorderCnums,
608608
[input] HasCloneClosures(CrateNum),
609609
[input] HasCopyClosures(CrateNum),
@@ -619,7 +619,7 @@ define_dep_nodes!( <'tcx>
619619
[input] Freevars(DefId),
620620
[input] MaybeUnusedTraitImport(DefId),
621621
[input] MaybeUnusedExternCrates,
622-
[] StabilityIndex,
622+
[eval_always] StabilityIndex,
623623
[input] AllCrateNums,
624624
[] ExportedSymbols(CrateNum),
625625
[eval_always] CollectAndPartitionTranslationItems,

src/librustc/ty/context.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1124,11 +1124,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
11241124
}
11251125

11261126
pub fn stability(self) -> Rc<stability::Index<'tcx>> {
1127-
// FIXME(#42293) we should actually track this, but fails too many tests
1128-
// today.
1129-
self.dep_graph.with_ignore(|| {
1130-
self.stability_index(LOCAL_CRATE)
1131-
})
1127+
self.stability_index(LOCAL_CRATE)
11321128
}
11331129

11341130
pub fn crates(self) -> Rc<Vec<CrateNum>> {

0 commit comments

Comments
 (0)