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;
@@ -1036,10 +1036,9 @@ fn typeck_item_bodies_dep_node<'tcx>(_: CrateNum) -> DepConstructor<'tcx> {
10361036 DepConstructor :: TypeckBodiesKrate
10371037}
10381038
1039- 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 > ) > )
10401040 -> DepConstructor < ' tcx > {
1041- let ( def_id, substs) = key. value ;
1042- DepConstructor :: ConstEval { def_id, substs }
1041+ DepConstructor :: ConstEval
10431042}
10441043
10451044fn mir_keys < ' tcx > ( _: CrateNum ) -> DepConstructor < ' tcx > {
@@ -1054,32 +1053,22 @@ fn relevant_trait_impls_for<'tcx>((def_id, t): (DefId, SimplifiedType)) -> DepCo
10541053 DepConstructor :: RelevantTraitImpls ( def_id, t)
10551054}
10561055
1057- fn is_copy_dep_node < ' tcx > ( key : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1058- let def_id = ty:: item_path:: characteristic_def_id_of_type ( key. value )
1059- . unwrap_or ( DefId :: local ( CRATE_DEF_INDEX ) ) ;
1060- DepConstructor :: IsCopy ( def_id)
1056+ fn is_copy_dep_node < ' tcx > ( _: ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1057+ DepConstructor :: IsCopy
10611058}
10621059
1063- fn is_sized_dep_node < ' tcx > ( key : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1064- let def_id = ty:: item_path:: characteristic_def_id_of_type ( key. value )
1065- . unwrap_or ( DefId :: local ( CRATE_DEF_INDEX ) ) ;
1066- DepConstructor :: IsSized ( def_id)
1060+ fn is_sized_dep_node < ' tcx > ( _: ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1061+ DepConstructor :: IsSized
10671062}
10681063
1069- fn is_freeze_dep_node < ' tcx > ( key : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1070- let def_id = ty:: item_path:: characteristic_def_id_of_type ( key. value )
1071- . unwrap_or ( DefId :: local ( CRATE_DEF_INDEX ) ) ;
1072- DepConstructor :: IsFreeze ( def_id)
1064+ fn is_freeze_dep_node < ' tcx > ( _: ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1065+ DepConstructor :: IsFreeze
10731066}
10741067
1075- fn needs_drop_dep_node < ' tcx > ( key : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1076- let def_id = ty:: item_path:: characteristic_def_id_of_type ( key. value )
1077- . unwrap_or ( DefId :: local ( CRATE_DEF_INDEX ) ) ;
1078- DepConstructor :: NeedsDrop ( def_id)
1068+ fn needs_drop_dep_node < ' tcx > ( _: ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1069+ DepConstructor :: NeedsDrop
10791070}
10801071
1081- fn layout_dep_node < ' tcx > ( key : ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1082- let def_id = ty:: item_path:: characteristic_def_id_of_type ( key. value )
1083- . unwrap_or ( DefId :: local ( CRATE_DEF_INDEX ) ) ;
1084- DepConstructor :: Layout ( def_id)
1072+ fn layout_dep_node < ' tcx > ( _: ty:: ParamEnvAnd < ' tcx , Ty < ' tcx > > ) -> DepConstructor < ' tcx > {
1073+ DepConstructor :: Layout
10851074}
0 commit comments