@@ -18,7 +18,7 @@ impl<'tcx> DepNodeKey<'tcx> for () {
1818 }
1919
2020 #[ inline( always) ]
21- fn recover ( _: TyCtxt < ' tcx > , _: & DepNode ) -> Option < Self > {
21+ fn try_recover_key ( _: TyCtxt < ' tcx > , _: & DepNode ) -> Option < Self > {
2222 Some ( ( ) )
2323 }
2424}
@@ -40,7 +40,7 @@ impl<'tcx> DepNodeKey<'tcx> for DefId {
4040 }
4141
4242 #[ inline( always) ]
43- fn recover ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> Option < Self > {
43+ fn try_recover_key ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> Option < Self > {
4444 dep_node. extract_def_id ( tcx)
4545 }
4646}
@@ -62,7 +62,7 @@ impl<'tcx> DepNodeKey<'tcx> for LocalDefId {
6262 }
6363
6464 #[ inline( always) ]
65- fn recover ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> Option < Self > {
65+ fn try_recover_key ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> Option < Self > {
6666 dep_node. extract_def_id ( tcx) . map ( |id| id. expect_local ( ) )
6767 }
6868}
@@ -84,7 +84,7 @@ impl<'tcx> DepNodeKey<'tcx> for OwnerId {
8484 }
8585
8686 #[ inline( always) ]
87- fn recover ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> Option < Self > {
87+ fn try_recover_key ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> Option < Self > {
8888 dep_node. extract_def_id ( tcx) . map ( |id| OwnerId { def_id : id. expect_local ( ) } )
8989 }
9090}
@@ -107,7 +107,7 @@ impl<'tcx> DepNodeKey<'tcx> for CrateNum {
107107 }
108108
109109 #[ inline( always) ]
110- fn recover ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> Option < Self > {
110+ fn try_recover_key ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> Option < Self > {
111111 dep_node. extract_def_id ( tcx) . map ( |id| id. krate )
112112 }
113113}
@@ -166,7 +166,7 @@ impl<'tcx> DepNodeKey<'tcx> for HirId {
166166 }
167167
168168 #[ inline( always) ]
169- fn recover ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> Option < Self > {
169+ fn try_recover_key ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> Option < Self > {
170170 if tcx. key_fingerprint_style ( dep_node. kind ) == KeyFingerprintStyle :: HirId {
171171 let ( local_hash, local_id) = Fingerprint :: from ( dep_node. key_fingerprint ) . split ( ) ;
172172 let def_path_hash = DefPathHash :: new ( tcx. stable_crate_id ( LOCAL_CRATE ) , local_hash) ;
@@ -199,8 +199,8 @@ impl<'tcx> DepNodeKey<'tcx> for ModDefId {
199199 }
200200
201201 #[ inline( always) ]
202- fn recover ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> Option < Self > {
203- DefId :: recover ( tcx, dep_node) . map ( ModDefId :: new_unchecked)
202+ fn try_recover_key ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> Option < Self > {
203+ DefId :: try_recover_key ( tcx, dep_node) . map ( ModDefId :: new_unchecked)
204204 }
205205}
206206
@@ -221,7 +221,7 @@ impl<'tcx> DepNodeKey<'tcx> for LocalModDefId {
221221 }
222222
223223 #[ inline( always) ]
224- fn recover ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> Option < Self > {
225- LocalDefId :: recover ( tcx, dep_node) . map ( LocalModDefId :: new_unchecked)
224+ fn try_recover_key ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> Option < Self > {
225+ LocalDefId :: try_recover_key ( tcx, dep_node) . map ( LocalModDefId :: new_unchecked)
226226 }
227227}
0 commit comments