99// except according to those terms.
1010
1111use dep_graph:: { DepConstructor , DepNode , DepNodeIndex } ;
12- use hir:: def_id:: { CrateNum , CRATE_DEF_INDEX , DefId , LOCAL_CRATE } ;
12+ use hir:: def_id:: { CrateNum , DefId , LOCAL_CRATE } ;
1313use hir:: def:: Def ;
1414use hir;
1515use middle:: const_val;
@@ -931,7 +931,7 @@ define_maps! { <'tcx>
931931 /// Checks all types in the krate for overlap in their inherent impls. Reports errors.
932932 /// Not meant to be used directly outside of coherence.
933933 /// (Defined only for LOCAL_CRATE)
934- [ ] crate_inherent_impls_overlap_check: crate_inherent_impls_dep_node ( CrateNum ) -> ( ) ,
934+ [ ] crate_inherent_impls_overlap_check: inherent_impls_overlap_check_dep_node ( CrateNum ) -> ( ) ,
935935
936936 /// Results of evaluating const items or constants embedded in
937937 /// other items (such as enum variant explicit discriminants).
@@ -1014,6 +1014,10 @@ fn crate_inherent_impls_dep_node<'tcx>(_: CrateNum) -> DepConstructor<'tcx> {
10141014 DepConstructor :: Coherence
10151015}
10161016
1017+ fn inherent_impls_overlap_check_dep_node < ' tcx > ( _: CrateNum ) -> DepConstructor < ' tcx > {
1018+ DepConstructor :: CoherenceInherentImplOverlapCheck
1019+ }
1020+
10171021fn reachability_dep_node < ' tcx > ( _: CrateNum ) -> DepConstructor < ' tcx > {
10181022 DepConstructor :: Reachability
10191023}
@@ -1032,10 +1036,9 @@ fn typeck_item_bodies_dep_node<'tcx>(_: CrateNum) -> DepConstructor<'tcx> {
10321036 DepConstructor :: TypeckBodiesKrate
10331037}
10341038
1035- fn const_eval_dep_node < ' tcx > ( key : ty:: ParamEnvAnd < ' tcx , ( DefId , & ' tcx Substs < ' tcx > ) > )
1039+ fn const_eval_dep_node < ' tcx > ( _ : ty:: ParamEnvAnd < ' tcx , ( DefId , & ' tcx Substs < ' tcx > ) > )
10361040 -> DepConstructor < ' tcx > {
1037- let ( def_id, substs) = key. value ;
1038- DepConstructor :: ConstEval { def_id, substs }
1041+ DepConstructor :: ConstEval
10391042}
10401043
10411044fn mir_keys < ' tcx > ( _: CrateNum ) -> DepConstructor < ' tcx > {
@@ -1050,32 +1053,22 @@ fn relevant_trait_impls_for<'tcx>((def_id, t): (DefId, SimplifiedType)) -> DepCo
10501053 DepConstructor :: RelevantTraitImpls ( def_id, t)
10511054}
10521055
1053- fn is_copy_dep_node < ' tcx > ( key : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1054- let def_id = ty:: item_path:: characteristic_def_id_of_type ( key. value )
1055- . unwrap_or ( DefId :: local ( CRATE_DEF_INDEX ) ) ;
1056- DepConstructor :: IsCopy ( def_id)
1056+ fn is_copy_dep_node < ' tcx > ( _: ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1057+ DepConstructor :: IsCopy
10571058}
10581059
1059- fn is_sized_dep_node < ' tcx > ( key : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1060- let def_id = ty:: item_path:: characteristic_def_id_of_type ( key. value )
1061- . unwrap_or ( DefId :: local ( CRATE_DEF_INDEX ) ) ;
1062- DepConstructor :: IsSized ( def_id)
1060+ fn is_sized_dep_node < ' tcx > ( _: ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1061+ DepConstructor :: IsSized
10631062}
10641063
1065- fn is_freeze_dep_node < ' tcx > ( key : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1066- let def_id = ty:: item_path:: characteristic_def_id_of_type ( key. value )
1067- . unwrap_or ( DefId :: local ( CRATE_DEF_INDEX ) ) ;
1068- DepConstructor :: IsFreeze ( def_id)
1064+ fn is_freeze_dep_node < ' tcx > ( _: ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1065+ DepConstructor :: IsFreeze
10691066}
10701067
1071- fn needs_drop_dep_node < ' tcx > ( key : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1072- let def_id = ty:: item_path:: characteristic_def_id_of_type ( key. value )
1073- . unwrap_or ( DefId :: local ( CRATE_DEF_INDEX ) ) ;
1074- DepConstructor :: NeedsDrop ( def_id)
1068+ fn needs_drop_dep_node < ' tcx > ( _: ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1069+ DepConstructor :: NeedsDrop
10751070}
10761071
1077- fn layout_dep_node < ' tcx > ( key : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1078- let def_id = ty:: item_path:: characteristic_def_id_of_type ( key. value )
1079- . unwrap_or ( DefId :: local ( CRATE_DEF_INDEX ) ) ;
1080- DepConstructor :: Layout ( def_id)
1072+ fn layout_dep_node < ' tcx > ( _: ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1073+ DepConstructor :: Layout
10811074}
0 commit comments