(
&self,
ongoing_codegen: Box<dyn Any>,
sess: &Session,
_outputs: &OutputFilenames,
)
| 253 | } |
| 254 | |
| 255 | fn join_codegen( |
| 256 | &self, |
| 257 | ongoing_codegen: Box<dyn Any>, |
| 258 | sess: &Session, |
| 259 | _outputs: &OutputFilenames, |
| 260 | ) -> Result<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>), ErrorGuaranteed> { |
| 261 | let (codegen_results, work_products) = ongoing_codegen |
| 262 | .downcast::<OngoingCodegen<Self>>() |
| 263 | .expect("Expected OngoingCodegen, found Box<Any>") |
| 264 | .join(sess); |
| 265 | |
| 266 | sess.compile_status()?; |
| 267 | |
| 268 | Ok((codegen_results, work_products)) |
| 269 | } |
| 270 | |
| 271 | fn link( |
| 272 | &self, |