Skip to content

Commit c237408

Browse files
committed
FIx cg_gcc
1 parent 64b07aa commit c237408

File tree

1 file changed

+0
-6
lines changed
  • compiler/rustc_codegen_gcc/src

1 file changed

+0
-6
lines changed

compiler/rustc_codegen_gcc/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ use gccjit::{CType, Context, OptimizationLevel};
9292
#[cfg(feature = "master")]
9393
use gccjit::{TargetInfo, Version};
9494
use rustc_ast::expand::allocator::AllocatorKind;
95-
use rustc_ast::expand::autodiff_attrs::AutoDiffItem;
9695
use rustc_codegen_ssa::back::lto::{SerializedModule, ThinModule};
9796
use rustc_codegen_ssa::back::write::{
9897
CodegenContext, FatLtoInput, ModuleConfig, TargetMachineFactoryFn,
@@ -362,12 +361,7 @@ impl WriteBackendMethods for GccCodegenBackend {
362361
_exported_symbols_for_lto: &[String],
363362
each_linked_rlib_for_lto: &[PathBuf],
364363
modules: Vec<FatLtoInput<Self>>,
365-
diff_fncs: Vec<AutoDiffItem>,
366364
) -> Result<ModuleCodegen<Self::Module>, FatalError> {
367-
if !diff_fncs.is_empty() {
368-
unimplemented!();
369-
}
370-
371365
back::lto::run_fat(cgcx, each_linked_rlib_for_lto, modules)
372366
}
373367

0 commit comments

Comments
 (0)