@@ -27,7 +27,9 @@ extern crate rustc_fs_util;
2727extern crate rustc_hir;
2828extern crate rustc_incremental;
2929extern crate rustc_index;
30+ extern crate rustc_macros;
3031extern crate rustc_metadata;
32+ extern crate rustc_query_system;
3133extern crate rustc_session;
3234extern crate rustc_span;
3335extern crate rustc_symbol_mangling;
@@ -47,6 +49,7 @@ use cranelift_codegen::isa::TargetIsa;
4749use cranelift_codegen:: settings:: { self , Configurable } ;
4850use rustc_codegen_ssa:: traits:: CodegenBackend ;
4951use rustc_codegen_ssa:: { CodegenResults , TargetConfig } ;
52+ use rustc_macros:: HashStable ;
5053use rustc_middle:: dep_graph:: { WorkProduct , WorkProductId } ;
5154use rustc_session:: Session ;
5255use rustc_session:: config:: OutputFilenames ;
@@ -125,6 +128,7 @@ impl<F: Fn() -> String> Drop for PrintOnPanic<F> {
125128
126129/// The codegen context holds any information shared between the codegen of individual functions
127130/// inside a single codegen unit with the exception of the Cranelift [`Module`](cranelift_module::Module).
131+ #[ derive( Copy , Clone , HashStable ) ]
128132struct CodegenCx {
129133 should_write_ir : bool ,
130134 //debug_context: Option<DebugContext>,
0 commit comments