Sync from rust a090c8659c3be0cbc7dc93c4b2c11a9cdbf8b980

This commit is contained in:
bjorn3 2021-12-16 13:52:12 +01:00
commit d084fca557
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
//! Codegen of [`asm!`] invocations.
//! Codegen of `asm!` invocations.
use crate::prelude::*;

View File

@ -208,6 +208,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
&self,
ongoing_codegen: Box<dyn Any>,
_sess: &Session,
_outputs: &OutputFilenames,
) -> Result<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>), ErrorReported> {
Ok(*ongoing_codegen
.downcast::<(CodegenResults, FxHashMap<WorkProductId, WorkProduct>)>()