INNER CODE UNIT · Rust
__rustc_codegen_backend
EmbarkStudios/rust-gpu · crates/rustc_codegen_spirv/src/lib.rs:498
pub fn __rustc_codegen_backend() -> Box<dyn CodegenBackend> {
// Tweak rustc's default ICE panic hook, to direct people to `rust-gpu`.
rustc_driver::install_ice_hook(
"https://github.com/EmbarkStudios/rust-gpu/issues/new",
|handler| {
handler.note_without_error(concat!(
"`rust-gpu` version `",
env!("CARGO_PKG_VERSION"),
"`"
));
},
);
Box::new(SpirvCodegenBackend)
}