@@ -86,7 +86,7 @@ macro_rules! define_dep_nodes {
86
86
$( $( #[ $attr] ) * $variant) ,*
87
87
}
88
88
89
- fn dep_kind_from_label_string( label: & str ) -> Result <DepKind , ( ) > {
89
+ pub ( super ) fn dep_kind_from_label_string( label: & str ) -> Result <DepKind , ( ) > {
90
90
match label {
91
91
$( stringify!( $variant) => Ok ( DepKind :: $variant) , ) *
92
92
_ => Err ( ( ) ) ,
@@ -141,11 +141,6 @@ static_assert_size!(DepNode, 18);
141
141
static_assert_size ! ( DepNode , 24 ) ;
142
142
143
143
pub 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
-
149
144
/// Extracts the DefId corresponding to this DepNode. This will work
150
145
/// if two conditions are met:
151
146
///
@@ -170,14 +165,6 @@ pub trait DepNodeExt: Sized {
170
165
}
171
166
172
167
impl 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
-
181
168
/// Extracts the DefId corresponding to this DepNode. This will work
182
169
/// if two conditions are met:
183
170
///
0 commit comments