@@ -86,7 +86,7 @@ macro_rules! define_dep_nodes {
8686 $( $( #[ $attr] ) * $variant) ,*
8787 }
8888
89- fn dep_kind_from_label_string( label: & str ) -> Result <DepKind , ( ) > {
89+ pub ( super ) fn dep_kind_from_label_string( label: & str ) -> Result <DepKind , ( ) > {
9090 match label {
9191 $( stringify!( $variant) => Ok ( DepKind :: $variant) , ) *
9292 _ => Err ( ( ) ) ,
@@ -141,11 +141,6 @@ static_assert_size!(DepNode, 18);
141141static_assert_size ! ( DepNode , 24 ) ;
142142
143143pub trait DepNodeExt : Sized {
144- /// Construct a DepNode from the given DepKind and DefPathHash. This
145- /// method will assert that the given DepKind actually requires a
146- /// single DefId/DefPathHash parameter.
147- fn from_def_path_hash ( tcx : TyCtxt < ' _ > , def_path_hash : DefPathHash , kind : DepKind ) -> Self ;
148-
149144 /// Extracts the DefId corresponding to this DepNode. This will work
150145 /// if two conditions are met:
151146 ///
@@ -170,14 +165,6 @@ pub trait DepNodeExt: Sized {
170165}
171166
172167impl DepNodeExt for DepNode {
173- /// Construct a DepNode from the given DepKind and DefPathHash. This
174- /// method will assert that the given DepKind actually requires a
175- /// single DefId/DefPathHash parameter.
176- fn from_def_path_hash ( tcx : TyCtxt < ' _ > , def_path_hash : DefPathHash , kind : DepKind ) -> DepNode {
177- debug_assert ! ( tcx. fingerprint_style( kind) == FingerprintStyle :: DefPathHash ) ;
178- DepNode { kind, hash : def_path_hash. 0 . into ( ) }
179- }
180-
181168 /// Extracts the DefId corresponding to this DepNode. This will work
182169 /// if two conditions are met:
183170 ///
0 commit comments