]> git.lizzy.rs Git - rust.git/commitdiff
Switch several crate-wide queries to use eval_always
authorWesley Wiser <wwiser@gmail.com>
Mon, 23 Oct 2017 23:08:08 +0000 (19:08 -0400)
committerWesley Wiser <wwiser@gmail.com>
Thu, 26 Oct 2017 22:47:47 +0000 (18:47 -0400)
Closes #45238

src/librustc/dep_graph/dep_node.rs
src/librustc_privacy/lib.rs

index b9657400fd27d53f8b9b376023b7de268852be9c..53a6b688a0faa1a5d1e270e6c16ba7b92cb7f0cb 100644 (file)
@@ -465,10 +465,10 @@ pub fn fingerprint_needed_for_crate_hash(self) -> bool {
 
     // Represents different phases in the compiler.
     [] RegionScopeTree(DefId),
-    [] Coherence,
-    [] CoherenceInherentImplOverlapCheck,
+    [eval_always] Coherence,
+    [eval_always] CoherenceInherentImplOverlapCheck,
     [] CoherenceCheckTrait(DefId),
-    [] PrivacyAccessLevels(CrateNum),
+    [eval_always] PrivacyAccessLevels(CrateNum),
 
     // Represents the MIR for a fn; also used as the task node for
     // things read/modify that MIR.
@@ -485,7 +485,7 @@ pub fn fingerprint_needed_for_crate_hash(self) -> bool {
 
     [] Reachability,
     [] MirKeys,
-    [] CrateVariances,
+    [eval_always] CrateVariances,
 
     // Nodes representing bits of computed IR in the tcx. Each shared
     // table in the tcx (or elsewhere) maps to one of these
@@ -515,7 +515,7 @@ pub fn fingerprint_needed_for_crate_hash(self) -> bool {
     [] DtorckConstraint(DefId),
     [] AdtDestructor(DefId),
     [] AssociatedItemDefIds(DefId),
-    [] InherentImpls(DefId),
+    [eval_always] InherentImpls(DefId),
     [] TypeckBodiesKrate,
     [] TypeckTables(DefId),
     [] HasTypeckTables(DefId),
@@ -584,7 +584,7 @@ pub fn fingerprint_needed_for_crate_hash(self) -> bool {
     [] IsCompilerBuiltins(CrateNum),
     [] HasGlobalAllocator(CrateNum),
     [] ExternCrate(DefId),
-    [] LintLevels,
+    [eval_always] LintLevels,
     [] Specializes { impl1: DefId, impl2: DefId },
     [input] InScopeTraits(DefIndex),
     [] ModuleExports(DefId),
@@ -643,7 +643,7 @@ pub fn fingerprint_needed_for_crate_hash(self) -> bool {
     [] StabilityIndex,
     [] AllCrateNums,
     [] ExportedSymbols(CrateNum),
-    [] CollectAndPartitionTranslationItems,
+    [eval_always] CollectAndPartitionTranslationItems,
     [] ExportName(DefId),
     [] ContainsExternIndicator(DefId),
     [] IsTranslatedFunction(DefId),
index e7a1dd6b043b173b51022a94877f785c0a301d35..8abf7d3d09cd87b265a3ee14c986dd76df53d9f7 100644 (file)
@@ -1563,9 +1563,7 @@ pub fn provide(providers: &mut Providers) {
 }
 
 pub fn check_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) -> Rc<AccessLevels> {
-    tcx.dep_graph.with_ignore(|| { // FIXME
-        tcx.privacy_access_levels(LOCAL_CRATE)
-    })
+    tcx.privacy_access_levels(LOCAL_CRATE)
 }
 
 fn privacy_access_levels<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,