9
9
// except according to those terms.
10
10
11
11
use 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 } ;
13
13
use hir:: def:: Def ;
14
14
use hir;
15
15
use middle:: const_val;
@@ -931,7 +931,7 @@ define_maps! { <'tcx>
931
931
/// Checks all types in the krate for overlap in their inherent impls. Reports errors.
932
932
/// Not meant to be used directly outside of coherence.
933
933
/// (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 ) -> ( ) ,
935
935
936
936
/// Results of evaluating const items or constants embedded in
937
937
/// other items (such as enum variant explicit discriminants).
@@ -1014,6 +1014,10 @@ fn crate_inherent_impls_dep_node<'tcx>(_: CrateNum) -> DepConstructor<'tcx> {
1014
1014
DepConstructor :: Coherence
1015
1015
}
1016
1016
1017
+ fn inherent_impls_overlap_check_dep_node < ' tcx > ( _: CrateNum ) -> DepConstructor < ' tcx > {
1018
+ DepConstructor :: CoherenceInherentImplOverlapCheck
1019
+ }
1020
+
1017
1021
fn reachability_dep_node < ' tcx > ( _: CrateNum ) -> DepConstructor < ' tcx > {
1018
1022
DepConstructor :: Reachability
1019
1023
}
@@ -1032,10 +1036,9 @@ fn typeck_item_bodies_dep_node<'tcx>(_: CrateNum) -> DepConstructor<'tcx> {
1032
1036
DepConstructor :: TypeckBodiesKrate
1033
1037
}
1034
1038
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 > ) > )
1036
1040
-> DepConstructor < ' tcx > {
1037
- let ( def_id, substs) = key. value ;
1038
- DepConstructor :: ConstEval { def_id, substs }
1041
+ DepConstructor :: ConstEval
1039
1042
}
1040
1043
1041
1044
fn mir_keys < ' tcx > ( _: CrateNum ) -> DepConstructor < ' tcx > {
@@ -1050,32 +1053,22 @@ fn relevant_trait_impls_for<'tcx>((def_id, t): (DefId, SimplifiedType)) -> DepCo
1050
1053
DepConstructor :: RelevantTraitImpls ( def_id, t)
1051
1054
}
1052
1055
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
1057
1058
}
1058
1059
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
1063
1062
}
1064
1063
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
1069
1066
}
1070
1067
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
1075
1070
}
1076
1071
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
1081
1074
}
0 commit comments