@@ -150,8 +150,6 @@ rustc_query_append! { [define_queries!][<'tcx>] }
150
150
/// add it to the "We don't have enough information to reconstruct..." group in
151
151
/// the match below.
152
152
pub fn force_from_dep_node < ' tcx > ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) -> bool {
153
- use crate :: dep_graph:: DepKind ;
154
-
155
153
// We must avoid ever having to call `force_from_dep_node()` for a
156
154
// `DepNode::codegen_unit`:
157
155
// Since we cannot reconstruct the query key of a `DepNode::codegen_unit`, we
@@ -166,7 +164,7 @@ pub fn force_from_dep_node<'tcx>(tcx: TyCtxt<'tcx>, dep_node: &DepNode) -> bool
166
164
// hit the cache instead of having to go through `force_from_dep_node`.
167
165
// This assertion makes sure, we actually keep applying the solution above.
168
166
debug_assert ! (
169
- dep_node. kind != DepKind :: codegen_unit,
167
+ dep_node. kind != crate :: dep_graph :: DepKind :: codegen_unit,
170
168
"calling force_from_dep_node() on DepKind::codegen_unit"
171
169
) ;
172
170
@@ -177,14 +175,14 @@ pub fn force_from_dep_node<'tcx>(tcx: TyCtxt<'tcx>, dep_node: &DepNode) -> bool
177
175
rustc_dep_node_force ! ( [ dep_node, tcx]
178
176
// These are inputs that are expected to be pre-allocated and that
179
177
// should therefore always be red or green already.
180
- DepKind :: CrateMetadata |
178
+ crate :: dep_graph :: DepKind :: CrateMetadata |
181
179
182
180
// These are anonymous nodes.
183
- DepKind :: TraitSelect |
181
+ crate :: dep_graph :: DepKind :: TraitSelect |
184
182
185
183
// We don't have enough information to reconstruct the query key of
186
184
// these.
187
- DepKind :: CompileCodegenUnit => {
185
+ crate :: dep_graph :: DepKind :: CompileCodegenUnit => {
188
186
bug!( "force_from_dep_node: encountered {:?}" , dep_node)
189
187
}
190
188
) ;
@@ -193,7 +191,5 @@ pub fn force_from_dep_node<'tcx>(tcx: TyCtxt<'tcx>, dep_node: &DepNode) -> bool
193
191
}
194
192
195
193
pub ( crate ) fn try_load_from_on_disk_cache < ' tcx > ( tcx : TyCtxt < ' tcx > , dep_node : & DepNode ) {
196
- use crate :: dep_graph:: DepKind ;
197
-
198
194
rustc_dep_node_try_load_from_on_disk_cache ! ( dep_node, tcx)
199
195
}
0 commit comments