From 667477392b87bac0cebe5720d4a2d466a315ebcb Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Tue, 7 Nov 2017 14:54:07 +0100 Subject: [PATCH] incr.comp.: Mark more input nodes as inputs. --- src/librustc/dep_graph/dep_node.rs | 36 +++++++++++++++--------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/librustc/dep_graph/dep_node.rs b/src/librustc/dep_graph/dep_node.rs index 70cfe57d150..3ecaa1d66a7 100644 --- a/src/librustc/dep_graph/dep_node.rs +++ b/src/librustc/dep_graph/dep_node.rs @@ -537,7 +537,7 @@ define_dep_nodes!( <'tcx> // The set of impls for a given trait. [] TraitImpls(DefId), - [] AllLocalTraitImpls, + [input] AllLocalTraitImpls, // Trait selection cache is a little funny. Given a trait // reference like `Foo: SomeTrait`, there could be @@ -588,7 +588,7 @@ define_dep_nodes!( <'tcx> [eval_always] LintLevels, [] Specializes { impl1: DefId, impl2: DefId }, [input] InScopeTraits(DefIndex), - [] ModuleExports(DefId), + [input] ModuleExports(DefId), [] IsSanitizerRuntime(CrateNum), [] IsProfilerRuntime(CrateNum), [] GetPanicStrategy(CrateNum), @@ -598,9 +598,9 @@ define_dep_nodes!( <'tcx> [] NativeLibraries(CrateNum), [] PluginRegistrarFn(CrateNum), [] DeriveRegistrarFn(CrateNum), - [] CrateDisambiguator(CrateNum), - [] CrateHash(CrateNum), - [] OriginalCrateName(CrateNum), + [input] CrateDisambiguator(CrateNum), + [input] CrateHash(CrateNum), + [input] OriginalCrateName(CrateNum), [] ImplementationsOfTrait { krate: CrateNum, trait_id: DefId }, [] AllTraitImplementations(CrateNum), @@ -608,27 +608,27 @@ define_dep_nodes!( <'tcx> [] IsDllimportForeignItem(DefId), [] IsStaticallyIncludedForeignItem(DefId), [] NativeLibraryKind(DefId), - [] LinkArgs, + [input] LinkArgs, - [] NamedRegion(DefIndex), - [] IsLateBound(DefIndex), - [] ObjectLifetimeDefaults(DefIndex), + [input] NamedRegion(DefIndex), + [input] IsLateBound(DefIndex), + [input] ObjectLifetimeDefaults(DefIndex), [] Visibility(DefId), [] DepKind(CrateNum), - [] CrateName(CrateNum), + [input] CrateName(CrateNum), [] ItemChildren(DefId), [] ExternModStmtCnum(DefId), - [] GetLangItems, + [input] GetLangItems, [] DefinedLangItems(CrateNum), [] MissingLangItems(CrateNum), [] ExternConstBody(DefId), [] VisibleParentMap, [] MissingExternCrateItem(CrateNum), [] UsedCrateSource(CrateNum), - [] PostorderCnums, - [] HasCloneClosures(CrateNum), - [] HasCopyClosures(CrateNum), + [input] PostorderCnums, + [input] HasCloneClosures(CrateNum), + [input] HasCopyClosures(CrateNum), // This query is not expected to have inputs -- as a result, it's // not a good candidate for "replay" because it's essentially a @@ -638,11 +638,11 @@ define_dep_nodes!( <'tcx> // may save a bit of time. [anon] EraseRegionsTy { ty: Ty<'tcx> }, - [] Freevars(DefId), - [] MaybeUnusedTraitImport(DefId), + [input] Freevars(DefId), + [input] MaybeUnusedTraitImport(DefId), [] MaybeUnusedExternCrates, [] StabilityIndex, - [] AllCrateNums, + [input] AllCrateNums, [] ExportedSymbols(CrateNum), [eval_always] CollectAndPartitionTranslationItems, [] ExportName(DefId), @@ -650,7 +650,7 @@ define_dep_nodes!( <'tcx> [] IsTranslatedFunction(DefId), [] CodegenUnit(InternedString), [] CompileCodegenUnit(InternedString), - [] OutputFilenames, + [input] OutputFilenames, [anon] NormalizeTy, // We use this for most things when incr. comp. is turned off. [] Null,