@@ -110,10 +110,6 @@ impl<'tcx> DepContext for TyCtxt<'tcx> {
110
110
TyCtxt :: create_stable_hashing_context ( * self )
111
111
}
112
112
113
- fn force_from_dep_node ( & self , node : & DepNode ) -> bool {
114
- ty:: query:: force_from_dep_node ( * self , node)
115
- }
116
-
117
113
/// Extracts the DefId corresponding to this DepNode. This will work
118
114
/// if two conditions are met:
119
115
///
@@ -133,7 +129,7 @@ impl<'tcx> DepContext for TyCtxt<'tcx> {
133
129
}
134
130
}
135
131
136
- fn ensure_node_can_be_forced ( & self , dep_dep_node : & DepNode ) -> Option < ( ) > {
132
+ fn try_force_previous_green ( & self , dep_dep_node : & DepNode ) -> bool {
137
133
// FIXME: This match is just a workaround for incremental bugs and should
138
134
// be removed. https://github.com/rust-lang/rust/issues/62649 is one such
139
135
// bug that must be fixed before removing this.
@@ -162,20 +158,22 @@ impl<'tcx> DepContext for TyCtxt<'tcx> {
162
158
// Since the given `DefPath` does not
163
159
// denote the item that previously
164
160
// existed, we just fail to mark green.
165
- return None ;
161
+ return false ;
166
162
}
167
163
} else {
168
164
// If the node does not exist anymore, we
169
165
// just fail to mark green.
170
- return None ;
166
+ return false ;
171
167
}
172
168
}
173
169
_ => {
174
170
// For other kinds of nodes it's OK to be
175
171
// forced.
176
172
}
177
173
}
178
- Some ( ( ) )
174
+
175
+ debug ! ( "try_force_previous_green({:?}) --- trying to force" , dep_dep_node) ;
176
+ ty:: query:: force_from_dep_node ( * self , dep_dep_node)
179
177
}
180
178
181
179
fn has_errors_or_delayed_span_bugs ( & self ) -> bool {
0 commit comments