@@ -85,11 +85,6 @@ macro_rules! is_anon_attr {
85
85
( $attr: ident) => ( false ) ;
86
86
}
87
87
88
- macro_rules! is_input_attr {
89
- ( input) => ( true ) ;
90
- ( $attr: ident) => ( false ) ;
91
- }
92
-
93
88
macro_rules! is_eval_always_attr {
94
89
( eval_always) => ( true ) ;
95
90
( $attr: ident) => ( false ) ;
@@ -99,10 +94,6 @@ macro_rules! contains_anon_attr {
99
94
( $( $attr: ident) ,* ) => ( { $( is_anon_attr!( $attr) | ) * false } ) ;
100
95
}
101
96
102
- macro_rules! contains_input_attr {
103
- ( $( $attr: ident) ,* ) => ( { $( is_input_attr!( $attr) | ) * false } ) ;
104
- }
105
-
106
97
macro_rules! contains_eval_always_attr {
107
98
( $( $attr: ident) ,* ) => ( { $( is_eval_always_attr!( $attr) | ) * false } ) ;
108
99
}
@@ -151,7 +142,7 @@ macro_rules! define_dep_nodes {
151
142
}
152
143
}
153
144
154
- // FIXME: Make `is_anon`, `is_input`, ` is_eval_always` and `has_params` properties
145
+ // FIXME: Make `is_anon`, `is_eval_always` and `has_params` properties
155
146
// of queries
156
147
#[ inline( always) ]
157
148
pub fn is_anon( & self ) -> bool {
@@ -162,15 +153,6 @@ macro_rules! define_dep_nodes {
162
153
}
163
154
}
164
155
165
- #[ inline( always) ]
166
- pub fn is_input( & self ) -> bool {
167
- match * self {
168
- $(
169
- DepKind :: $variant => { contains_input_attr!( $( $attr) ,* ) }
170
- ) *
171
- }
172
- }
173
-
174
156
#[ inline( always) ]
175
157
pub fn is_eval_always( & self ) -> bool {
176
158
match * self {
@@ -438,17 +420,17 @@ define_dep_nodes!( <'tcx>
438
420
// suitable wrapper, you can use `tcx.dep_graph.ignore()` to gain
439
421
// access to the krate, but you must remember to add suitable
440
422
// edges yourself for the individual items that you read.
441
- [ input ] Krate ,
423
+ [ eval_always ] Krate ,
442
424
443
425
// Represents the body of a function or method. The def-id is that of the
444
426
// function/method.
445
- [ input ] HirBody ( DefId ) ,
427
+ [ eval_always ] HirBody ( DefId ) ,
446
428
447
429
// Represents the HIR node with the given node-id
448
- [ input ] Hir ( DefId ) ,
430
+ [ eval_always ] Hir ( DefId ) ,
449
431
450
432
// Represents metadata from an extern crate.
451
- [ input ] CrateMetadata ( CrateNum ) ,
433
+ [ eval_always ] CrateMetadata ( CrateNum ) ,
452
434
453
435
// Represents different phases in the compiler.
454
436
[ ] RegionScopeTree ( DefId ) ,
@@ -458,6 +440,7 @@ define_dep_nodes!( <'tcx>
458
440
[ eval_always] PrivacyAccessLevels ( CrateNum ) ,
459
441
[ eval_always] CheckPrivateInPublic ( CrateNum ) ,
460
442
[ eval_always] Analysis ( CrateNum ) ,
443
+ [ eval_always] HirMap ( CrateNum ) ,
461
444
462
445
// Represents the MIR for a fn; also used as the task node for
463
446
// things read/modify that MIR.
@@ -486,7 +469,7 @@ define_dep_nodes!( <'tcx>
486
469
487
470
[ ] Reachability ,
488
471
[ ] MirKeys ,
489
- [ eval_always ] CrateVariances ,
472
+ [ ] CrateVariances ,
490
473
491
474
// Nodes representing bits of computed IR in the tcx. Each shared
492
475
// table in the tcx (or elsewhere) maps to one of these
@@ -542,7 +525,7 @@ define_dep_nodes!( <'tcx>
542
525
// The set of impls for a given trait.
543
526
[ ] TraitImpls ( DefId ) ,
544
527
545
- [ input ] AllLocalTraitImpls ,
528
+ [ eval_always ] AllLocalTraitImpls ,
546
529
547
530
[ anon] TraitSelect ,
548
531
@@ -555,7 +538,7 @@ define_dep_nodes!( <'tcx>
555
538
// to make type debuginfo to be source location independent. Declaring
556
539
// DefSpan an input makes sure that changes to these are always detected
557
540
// regardless of HIR hashing.
558
- [ input ] DefSpan ( DefId ) ,
541
+ [ eval_always ] DefSpan ( DefId ) ,
559
542
[ ] LookupStability ( DefId ) ,
560
543
[ ] LookupDeprecationEntry ( DefId ) ,
561
544
[ ] ConstIsRvaluePromotableToStatic ( DefId ) ,
@@ -574,11 +557,11 @@ define_dep_nodes!( <'tcx>
574
557
[ ] IsCompilerBuiltins ( CrateNum ) ,
575
558
[ ] HasGlobalAllocator ( CrateNum ) ,
576
559
[ ] HasPanicHandler ( CrateNum ) ,
577
- [ input ] ExternCrate ( DefId ) ,
560
+ [ eval_always ] ExternCrate ( DefId ) ,
578
561
[ eval_always] LintLevels ,
579
562
[ ] Specializes { impl1: DefId , impl2: DefId } ,
580
- [ input ] InScopeTraits ( DefIndex ) ,
581
- [ input ] ModuleExports ( DefId ) ,
563
+ [ eval_always ] InScopeTraits ( DefIndex ) ,
564
+ [ eval_always ] ModuleExports ( DefId ) ,
582
565
[ ] IsSanitizerRuntime ( CrateNum ) ,
583
566
[ ] IsProfilerRuntime ( CrateNum ) ,
584
567
[ ] GetPanicStrategy ( CrateNum ) ,
@@ -592,10 +575,10 @@ define_dep_nodes!( <'tcx>
592
575
[ ] EntryFn ( CrateNum ) ,
593
576
[ ] PluginRegistrarFn ( CrateNum ) ,
594
577
[ ] ProcMacroDeclsStatic ( CrateNum ) ,
595
- [ input ] CrateDisambiguator ( CrateNum ) ,
596
- [ input ] CrateHash ( CrateNum ) ,
597
- [ input ] OriginalCrateName ( CrateNum ) ,
598
- [ input ] ExtraFileName ( CrateNum ) ,
578
+ [ eval_always ] CrateDisambiguator ( CrateNum ) ,
579
+ [ eval_always ] CrateHash ( CrateNum ) ,
580
+ [ eval_always ] OriginalCrateName ( CrateNum ) ,
581
+ [ eval_always ] ExtraFileName ( CrateNum ) ,
599
582
600
583
[ ] ImplementationsOfTrait { krate: CrateNum , trait_id: DefId } ,
601
584
[ ] AllTraitImplementations ( CrateNum ) ,
@@ -604,16 +587,16 @@ define_dep_nodes!( <'tcx>
604
587
[ ] IsDllimportForeignItem ( DefId ) ,
605
588
[ ] IsStaticallyIncludedForeignItem ( DefId ) ,
606
589
[ ] NativeLibraryKind ( DefId ) ,
607
- [ input ] LinkArgs ,
590
+ [ eval_always ] LinkArgs ,
608
591
609
592
[ ] ResolveLifetimes ( CrateNum ) ,
610
593
[ ] NamedRegion ( DefIndex ) ,
611
594
[ ] IsLateBound ( DefIndex ) ,
612
595
[ ] ObjectLifetimeDefaults ( DefIndex ) ,
613
596
614
597
[ ] Visibility ( DefId ) ,
615
- [ input ] DepKind ( CrateNum ) ,
616
- [ input ] CrateName ( CrateNum ) ,
598
+ [ eval_always ] DepKind ( CrateNum ) ,
599
+ [ eval_always ] CrateName ( CrateNum ) ,
617
600
[ ] ItemChildren ( DefId ) ,
618
601
[ ] ExternModStmtCnum ( DefId ) ,
619
602
[ eval_always] GetLibFeatures ,
@@ -622,9 +605,9 @@ define_dep_nodes!( <'tcx>
622
605
[ ] DefinedLangItems ( CrateNum ) ,
623
606
[ ] MissingLangItems ( CrateNum ) ,
624
607
[ ] VisibleParentMap ,
625
- [ input ] MissingExternCrateItem ( CrateNum ) ,
626
- [ input ] UsedCrateSource ( CrateNum ) ,
627
- [ input ] PostorderCnums ,
608
+ [ eval_always ] MissingExternCrateItem ( CrateNum ) ,
609
+ [ eval_always ] UsedCrateSource ( CrateNum ) ,
610
+ [ eval_always ] PostorderCnums ,
628
611
629
612
// These queries are not expected to have inputs -- as a result, they
630
613
// are not good candidates for "replay" because they are essentially
@@ -634,20 +617,20 @@ define_dep_nodes!( <'tcx>
634
617
// may save a bit of time.
635
618
[ anon] EraseRegionsTy { ty: Ty <' tcx> } ,
636
619
637
- [ input ] Freevars ( DefId ) ,
638
- [ input ] MaybeUnusedTraitImport ( DefId ) ,
639
- [ input ] MaybeUnusedExternCrates ,
640
- [ input ] NamesImportedByGlobUse ( DefId ) ,
620
+ [ eval_always ] Freevars ( DefId ) ,
621
+ [ eval_always ] MaybeUnusedTraitImport ( DefId ) ,
622
+ [ eval_always ] MaybeUnusedExternCrates ,
623
+ [ eval_always ] NamesImportedByGlobUse ( DefId ) ,
641
624
[ eval_always] StabilityIndex ,
642
625
[ eval_always] AllTraits ,
643
- [ input ] AllCrateNums ,
626
+ [ eval_always ] AllCrateNums ,
644
627
[ ] ExportedSymbols ( CrateNum ) ,
645
628
[ eval_always] CollectAndPartitionMonoItems ,
646
629
[ ] IsCodegenedItem ( DefId ) ,
647
630
[ ] CodegenUnit ( InternedString ) ,
648
631
[ ] BackendOptimizationLevel ( CrateNum ) ,
649
632
[ ] CompileCodegenUnit ( InternedString ) ,
650
- [ input ] OutputFilenames ,
633
+ [ eval_always ] OutputFilenames ,
651
634
[ ] NormalizeProjectionTy ( CanonicalProjectionGoal <' tcx>) ,
652
635
[ ] NormalizeTyAfterErasingRegions ( ParamEnvAnd <' tcx, Ty <' tcx>>) ,
653
636
[ ] ImpliedOutlivesBounds ( CanonicalTyGoal <' tcx>) ,
@@ -666,11 +649,11 @@ define_dep_nodes!( <'tcx>
666
649
[ ] SubstituteNormalizeAndTestPredicates { key: ( DefId , SubstsRef <' tcx>) } ,
667
650
[ ] MethodAutoderefSteps ( CanonicalTyGoal <' tcx>) ,
668
651
669
- [ input ] TargetFeaturesWhitelist ,
652
+ [ eval_always ] TargetFeaturesWhitelist ,
670
653
671
654
[ ] InstanceDefSizeEstimate { instance_def: InstanceDef <' tcx> } ,
672
655
673
- [ input ] Features ,
656
+ [ eval_always ] Features ,
674
657
675
658
[ ] ProgramClausesFor ( DefId ) ,
676
659
[ ] ProgramClausesForEnv ( traits:: Environment <' tcx>) ,
0 commit comments