@@ -110,10 +110,6 @@ impl<'tcx> DepContext for TyCtxt<'tcx> {
110110 TyCtxt :: create_stable_hashing_context ( * self )
111111 }
112112
113- fn force_from_dep_node ( & self , node : & DepNode ) -> bool {
114- ty:: query:: force_from_dep_node ( * self , node)
115- }
116-
117113 /// Extracts the DefId corresponding to this DepNode. This will work
118114 /// if two conditions are met:
119115 ///
@@ -133,7 +129,7 @@ impl<'tcx> DepContext for TyCtxt<'tcx> {
133129 }
134130 }
135131
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 {
137133 // FIXME: This match is just a workaround for incremental bugs and should
138134 // be removed. https://github.com/rust-lang/rust/issues/62649 is one such
139135 // bug that must be fixed before removing this.
@@ -162,20 +158,22 @@ impl<'tcx> DepContext for TyCtxt<'tcx> {
162158 // Since the given `DefPath` does not
163159 // denote the item that previously
164160 // existed, we just fail to mark green.
165- return None ;
161+ return false ;
166162 }
167163 } else {
168164 // If the node does not exist anymore, we
169165 // just fail to mark green.
170- return None ;
166+ return false ;
171167 }
172168 }
173169 _ => {
174170 // For other kinds of nodes it's OK to be
175171 // forced.
176172 }
177173 }
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)
179177 }
180178
181179 fn has_errors_or_delayed_span_bugs ( & self ) -> bool {
0 commit comments