INNER CODE UNIT · Rust
target_machine_factory
EmbarkStudios/rust-gpu · crates/rustc_codegen_spirv/src/lib.rs:468
fn target_machine_factory(
&self,
_sess: &Session,
_opt_level: config::OptLevel,
_target_features: &[String],
) -> Arc<(dyn Fn(TargetMachineFactoryConfig) -> Result<(), String> + Send + Sync + 'static)>
{
Arc::new(|_| Ok(()))
}
}
struct DumpModuleOnPanic<'a, 'cx, 'tcx> {
cx: &'cx CodegenCx<'tcx>,
path: &'a Path,
}
impl Drop for DumpModuleOnPanic<'_, '_, '_> {
fn drop(&mut self) {